#endif
}
-void Circulo::dibujar(std::ostream& out) const {
+void Circulo::dibujar(GtkWidget* widget) const {
//void Circulo::dibujar(GdkGC* gc, GdkDrawable *window) const {
#ifdef DEBUG
std::cerr << "En dibujar de Círculo." << std::endl;
#endif
- // Valores a cambiar del graphic context.
- //GdkGCValues values;
- //values.foreground
- //gdk_gc_set_line_attributes(
- out << "Circulo(";
- Figura::dibujar(out);
- out << ", radio(" << radio << "))";
+ gdk_draw_arc(widget->window,
+ widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ FALSE,
+ 5, 5,
+ widget->allocation.width - 10,
+ widget->allocation.height - 10,
+ 0, 64 * 360);
+
+ //Figura::dibujar(out);
}