GtkDrawingArea
<!-- ##### SECTION Short_Description ##### -->
-a widget for custom user interface elements.
+A widget for custom user interface elements
<!-- ##### SECTION Long_Description ##### -->
<para>
<title>Simple <structname>GtkDrawingArea</structname> usage.</title>
<programlisting>
gboolean
-expose_event_callback (GdkWidget *widget, GdkEventExpose *event, gpointer data)
+expose_event_callback (GtkWidget *widget, GdkEventExpose *event, gpointer data)
{
gdk_draw_arc (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
TRUE,
0, 0, widget->allocation.width, widget->allocation.height,
0, 64 * 360);
return TRUE;
}
[...]
- GtkWidget *drawing_area = gtk_drawing_area_new (<!>);
+ GtkWidget *drawing_area = gtk_drawing_area_new (<!-- -->);
gtk_widget_set_size_request (drawing_area, 100, 100);
g_signal_connect (G_OBJECT (drawing_area), "expose_event",
G_CALLBACK (expose_event_callback), NULL);
<para>
The available routines for drawing are documented on the <link
linkend="gdk-Drawing-Primitives">GDK Drawing Primitives</link> page.
-See also gdk_pixbuf_render_to_drawable() for drawing a #GdkPixbuf.
+See also gdk_draw_pixbuf() for drawing a #GdkPixbuf.
</para>
<para>
refresh to the screen.
</para>
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
<!-- ##### STRUCT GtkDrawingArea ##### -->
<para>
The #GtkDrawingArea struct contains private data only, and
Creates a new drawing area.
</para>
+@void:
@Returns: a new #GtkDrawingArea
-<!-- ##### FUNCTION gtk_drawing_area_size ##### -->
-<para>
-(Use gtk_widget_set_size_request() instead.)
-Sets the size that the drawing area will request
-in response to a "size_request" signal. The
-drawing area may actually be allocated a size
-larger than this depending on how it is packed
-within the enclosing containers.
-</para>
-
-@darea: a #GtkDrawingArea.
-@width: the width to request.
-@height: the height to request.
-
-