1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
A container for arranging buttons horizontally
7
<!-- ##### SECTION Long_Description ##### -->
9
A button box should be used to provide a consistent layout of buttons
10
throughout your application. The layout/spacing can be altered by the
11
programmer, or if desired, by the user to alter the 'feel' of a
12
program to a small degree.
15
A #GtkHButtonBox is created with gtk_hbutton_box_new(). Buttons are
16
packed into a button box the same way widgets are added to any other
17
container, using gtk_container_add(). You can also use
18
gtk_box_pack_start() or gtk_box_pack_end(), but for button boxes both
19
these functions work just like gtk_container_add(), ie., they pack the
20
button in a way that depends on the current layout style and on
21
whether the button has had gtk_button_box_set_child_secondary() called
26
The spacing between buttons can be set with gtk_box_set_spacing(). The
27
arrangement and layout of the buttons can be changed with
28
gtk_button_box_set_layout().
31
<!-- ##### SECTION See_Also ##### -->
36
<listitem><para>Used to pack widgets into button boxes.</para></listitem>
37
</varlistentry><varlistentry>
38
<term>#GtkButtonBox</term>
39
<listitem><para>Provides functions for controlling button boxes.</para></listitem>
42
<term>#GtkVButtonBox</term>
43
<listitem><para>Pack buttons vertically</para></listitem>
48
<!-- ##### SECTION Stability_Level ##### -->
51
<!-- ##### SECTION Image ##### -->
54
<!-- ##### STRUCT GtkHButtonBox ##### -->
56
GtkHButtonBox does not contain any public fields.
60
<!-- ##### FUNCTION gtk_hbutton_box_new ##### -->
62
Creates a new horizontal button box.
66
@Returns: a new button box #GtkWidget.
69
<!-- ##### FUNCTION gtk_hbutton_box_get_spacing_default ##### -->
71
Retrieves the current default spacing for horizontal button boxes. This is the number of pixels
72
to be placed between the buttons when they are arranged.
76
@Returns: the default number of pixels between buttons.
79
<!-- ##### FUNCTION gtk_hbutton_box_get_layout_default ##### -->
81
Retrieves the current layout used to arrange buttons in button box widgets.
85
@Returns: the current #GtkButtonBoxStyle.
88
<!-- ##### FUNCTION gtk_hbutton_box_set_spacing_default ##### -->
90
Changes the default spacing that is placed between widgets in an
91
horizontal button box.
94
@spacing: an integer value.
97
<!-- ##### FUNCTION gtk_hbutton_box_set_layout_default ##### -->
99
Sets a new layout mode that will be used by all button boxes.
102
@layout: a new #GtkButtonBoxStyle.