summaryrefslogtreecommitdiff
path: root/gtk/gtkenums.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-03-05 15:20:20 +0100
committerAlexander Larsson <alexl@redhat.com>2013-04-23 05:50:38 +0200
commit9a42942afbe9f535e44413c5bfe49a44577cf238 (patch)
tree0e5d281dd53800fabad297b69551d35a90cefa61 /gtk/gtkenums.h
parent1e1cf89e4f6234ff364e13c378706b1330ebb2d5 (diff)
downloadgtk+-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/gtkenums.h')
-rw-r--r--gtk/gtkenums.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 9df69a89d5..82f5a0a010 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -132,6 +132,28 @@ typedef enum
} GtkAttachOptions;
/**
+ * GtkBaselinePosition:
+ * @GTK_BASELINE_POSITION_TOP: Align the baseline at the top
+ * @GTK_BASELINE_POSITION_CENTER: Center the baseline
+ * @GTK_BASELINE_POSITION_BOTTOM: Align the baseline at the bottom
+ *
+ * Whenever a container has some form of natural row it may align
+ * children in that row along a common typographical baseline. If
+ * the amount of verical space in the row is taller than the total
+ * requested height of the baseline-aligned children then it can use a
+ * #GtkBaselinePosition to select where to put the baseline inside the
+ * extra availible space.
+ *
+ * Since: 3.10
+ */
+typedef enum
+{
+ GTK_BASELINE_POSITION_TOP,
+ GTK_BASELINE_POSITION_CENTER,
+ GTK_BASELINE_POSITION_BOTTOM
+} GtkBaselinePosition;
+
+/**
* GtkButtonBoxStyle:
* @GTK_BUTTONBOX_DEFAULT_STYLE: Default packing.
* @GTK_BUTTONBOX_SPREAD: Buttons are evenly spread across the box.