diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-03-05 15:20:20 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-04-23 05:50:38 +0200 |
commit | 9a42942afbe9f535e44413c5bfe49a44577cf238 (patch) | |
tree | 0e5d281dd53800fabad297b69551d35a90cefa61 /gtk/gtkbox.h | |
parent | 1e1cf89e4f6234ff364e13c378706b1330ebb2d5 (diff) | |
download | gtk+-9a42942afbe9f535e44413c5bfe49a44577cf238.tar.gz |
GtkBox: Add baseline alignment for horizontal boxes
Report a baseline based height and baseline whenever there
are children with ALIGN_BASELINE.
Assign baseline to childen in size_allocate. Either the one inherited
from the parent if set, or otherwise calculate one based on any
ALIGN_BASELINE children.
Diffstat (limited to 'gtk/gtkbox.h')
-rw-r--r-- | gtk/gtkbox.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h index d51ccf08b6..e93c97f86f 100644 --- a/gtk/gtkbox.h +++ b/gtk/gtkbox.h @@ -89,6 +89,11 @@ gboolean gtk_box_get_homogeneous (GtkBox *box); void gtk_box_set_spacing (GtkBox *box, gint spacing); gint gtk_box_get_spacing (GtkBox *box); +GDK_AVAILABLE_IN_3_10 +void gtk_box_set_baseline_position (GtkBox *box, + GtkBaselinePosition position); +GDK_AVAILABLE_IN_3_10 +GtkBaselinePosition gtk_box_get_baseline_position (GtkBox *box); void gtk_box_reorder_child (GtkBox *box, GtkWidget *child, |