]> Pileus Git - ~andy/gtk/commit
API: Add API to query width and height when rendering
authorBenjamin Otte <otte@redhat.com>
Tue, 14 Sep 2010 09:39:51 +0000 (11:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:34 +0000 (15:11 +0200)
commit9507670db45558ad6443b0dec08ae62aa38b26fa
tree50d091e467957a43f9e897d41dc1961973c2dec4
parentd4f08efd57207b24837a5c2d8833139acb9005ad
API: Add API to query width and height when rendering

The functions are gtk_widget_get_allocated_width() and
gtk_widget_get_allocated_height().

They are currently identical to using width/height of
gtk_widget_get_allocation(), but are introduced for ease of use (no need
to use a custom struct) and to free people from having to think about
allocation.x and allocation.y (which is where the origin of the cairo
context in GtkWidget::draw is located).
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
gtk/gtkwidget.c
gtk/gtkwidget.h