1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Base class for #GtkHButtonBox and #GtkVButtonBox
7 <!-- ##### SECTION Long_Description ##### -->
9 The primary purpose of this class is to keep track of the various properties
10 of #GtkHButtonBox and #GtkVButtonBox widgets.
13 gtk_button_box_get_child_size() retrieves the minimum width and height
14 for widgets in a given button box. gtk_button_box_set_child_size()
15 allows those properties to be changed.
18 The internal padding of buttons can be retrieved and changed per button box using
19 gtk_button_box_get_child_ipadding() and gtk_button_box_set_child_ipadding()
23 gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and
24 change default number of pixels between buttons, respectively.
27 gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and alter the method
28 used to spread the buttons in a button box across the container, respectively.
35 <!-- ##### SECTION See_Also ##### -->
39 <term>#GtkVButtonBox</term>
40 <listitem><para>Vertical sub-class of #GtkButtonBox.</para></listitem>
43 <term>#GtkHButtonBox</term>
44 <listitem><para>Horizontal sub-class of #GtkButtonBox.</para></listitem>
49 <!-- ##### STRUCT GtkButtonBox ##### -->
51 This is a read-only struct; no members should be modified directly.
55 <!-- ##### MACRO GTK_BUTTONBOX_DEFAULT ##### -->
62 <!-- ##### MACRO gtk_button_box_get_spacing ##### -->
64 Retrieves how much space a button box is placing between each child button.
68 @Returns: the current spacing applied to the buttons in @widget.
69 <!-- # Unused Parameters # -->
70 @widget: a #GtkButtonBox.
73 <!-- ##### FUNCTION gtk_button_box_get_layout ##### -->
75 Retrieves the method being used to arrange the buttons in a button box.
78 @widget: a #GtkButtonBox.
79 @Returns: the method used to layout buttons in @widget.
82 <!-- ##### FUNCTION gtk_button_box_get_child_size ##### -->
84 Retrieves the current width and height of all child widgets in a button box.
85 @min_width and @min_height are filled with those values, respectively.
88 @widget: a #GtkButtonBox.
89 @min_width: the width of the buttons contained by @widget.
90 @min_height: the height of the buttons contained by @widget.
91 @Deprecated: Use the style properties
92 <literal>"child-min-width/-height"</literal> instead.
95 <!-- ##### FUNCTION gtk_button_box_get_child_ipadding ##### -->
97 Gets the default number of pixels that pad the buttons in a given button box.
100 @widget: a #GtkButtonBox.
101 @ipad_x: the horizontal padding used by buttons in @widget.
102 @ipad_y: the vertical padding used by buttons in @widget.
103 @Deprecated: Use the style properties
104 <literal>"child-internal-pad-x/-y"</literal> instead.
107 <!-- ##### MACRO gtk_button_box_set_spacing ##### -->
109 Sets the amount of spacing between buttons in a given button box.
114 <!-- # Unused Parameters # -->
115 @widget: a #GtkButtonBox.
116 @spacing: the number of pixels of spacing.
119 <!-- ##### FUNCTION gtk_button_box_set_layout ##### -->
121 Changes the way buttons are arranged in their container.
124 @widget: a #GtkButtonBox.
125 @layout_style: the new layout style.
128 <!-- ##### FUNCTION gtk_button_box_set_child_size ##### -->
130 Sets a new default size for the children of a given button box.
133 @widget: a #GtkButtonBox.
134 @min_width: a default width for buttons in @widget.
135 @min_height: a default height for buttons in @widget.
136 @Deprecated: Use the style properties
137 <literal>"child-min-width/-height"</literal> instead.
139 <!-- ##### FUNCTION gtk_button_box_set_child_ipadding ##### -->
141 Changes the amount of internal padding used by all buttons in a given button
145 @widget: a #GtkButtonBox.
146 @ipad_x: the horizontal padding that should be used by each button in @widget.
147 @ipad_y: the vertical padding that should be used by each button in @widget.
148 @Deprecated: Use the style properties
149 <literal>"child-internal-pad-x/-y"</literal> instead.
151 <!-- ##### FUNCTION gtk_button_box_set_child_secondary ##### -->
161 <!-- ##### ARG GtkButtonBox:layout-style ##### -->
166 <!-- ##### ARG GtkButtonBox:secondary ##### -->
171 <!-- ##### ARG GtkButtonBox:child-internal-pad-x ##### -->
176 <!-- ##### ARG GtkButtonBox:child-internal-pad-y ##### -->
181 <!-- ##### ARG GtkButtonBox:child-min-height ##### -->
186 <!-- ##### ARG GtkButtonBox:child-min-width ##### -->