1999-09-22 21:30:57 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkButtonBox
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2007-06-11 03:41:27 +00:00
|
|
|
Base class for GtkHButtonBox and GtkVButtonBox
|
1999-09-22 21:30:57 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
The primary purpose of this class is to keep track of the various properties
|
|
|
|
of #GtkHButtonBox and #GtkVButtonBox widgets.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
gtk_button_box_get_child_size() retrieves the minimum width and height
|
|
|
|
for widgets in a given button box. gtk_button_box_set_child_size()
|
|
|
|
allows those properties to be changed.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The internal padding of buttons can be retrieved and changed per button box using
|
|
|
|
gtk_button_box_get_child_ipadding() and gtk_button_box_set_child_ipadding()
|
|
|
|
respectively.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
gtk_button_box_get_spacing() and gtk_button_box_set_spacing() retrieve and
|
|
|
|
change default number of pixels between buttons, respectively.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
gtk_button_box_get_layout() and gtk_button_box_set_layout() retrieve and alter the method
|
|
|
|
used to spread the buttons in a button box across the container, respectively.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2005-04-07 19:39:10 +00:00
|
|
|
The main purpose of GtkButtonBox is to make sure the children have all the same size.
|
|
|
|
Therefore it ignores the homogeneous property which it inherited from GtkBox, and always
|
|
|
|
behaves as if homogeneous was %TRUE.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkVButtonBox</term>
|
|
|
|
<listitem><para>Vertical sub-class of #GtkButtonBox.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkHButtonBox</term>
|
|
|
|
<listitem><para>Horizontal sub-class of #GtkButtonBox.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
2005-06-10 04:24:30 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
1999-09-22 21:30:57 +00:00
|
|
|
<!-- ##### STRUCT GtkButtonBox ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
This is a read-only struct; no members should be modified directly.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkButtonBox:layout-style ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkButtonBox:secondary ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkButtonBox:child-internal-pad-x ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkButtonBox:child-internal-pad-y ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkButtonBox:child-min-height ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkButtonBox:child-min-width ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
1999-09-22 21:30:57 +00:00
|
|
|
<!-- ##### MACRO GTK_BUTTONBOX_DEFAULT ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Used internally only.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-03-07 21:10:44 +00:00
|
|
|
<!-- ##### MACRO gtk_button_box_get_spacing ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Retrieves how much space a button box is placing between each child button.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
2005-06-10 04:24:30 +00:00
|
|
|
@b: a #GtkButtonBox
|
2008-11-29 06:57:55 +00:00
|
|
|
@Returns: the current spacing applied to the buttons in @widget
|
|
|
|
@Deprecated: Use gtk_box_get_spacing() instead.
|
1999-09-22 21:30:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_button_box_get_layout ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Retrieves the method being used to arrange the buttons in a button box.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget: a #GtkButtonBox.
|
|
|
|
@Returns: the method used to layout buttons in @widget.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_button_box_get_child_size ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Retrieves the current width and height of all child widgets in a button box.
|
|
|
|
@min_width and @min_height are filled with those values, respectively.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget: a #GtkButtonBox.
|
|
|
|
@min_width: the width of the buttons contained by @widget.
|
|
|
|
@min_height: the height of the buttons contained by @widget.
|
2002-12-08 01:03:03 +00:00
|
|
|
@Deprecated: Use the style properties
|
|
|
|
<literal>"child-min-width/-height"</literal> instead.
|
1999-09-22 21:30:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_button_box_get_child_ipadding ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Gets the default number of pixels that pad the buttons in a given button box.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget: a #GtkButtonBox.
|
|
|
|
@ipad_x: the horizontal padding used by buttons in @widget.
|
|
|
|
@ipad_y: the vertical padding used by buttons in @widget.
|
2008-11-29 06:57:55 +00:00
|
|
|
@Deprecated: Use the style properties
|
|
|
|
"<link linkend="GtkButtonBox--s-child-internal-pad-x">child-internal-pad-x</link>"
|
|
|
|
and
|
|
|
|
"<link linkend="GtkButtonBox--s-child-internal-pad-y">child-internal-pad-y</link>"
|
|
|
|
instead.
|
1999-09-22 21:30:57 +00:00
|
|
|
|
|
|
|
|
2003-07-28 16:08:20 +00:00
|
|
|
<!-- ##### FUNCTION gtk_button_box_get_child_secondary ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget:
|
|
|
|
@child:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-03-07 21:10:44 +00:00
|
|
|
<!-- ##### MACRO gtk_button_box_set_spacing ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Sets the amount of spacing between buttons in a given button box.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
2008-11-29 06:57:55 +00:00
|
|
|
@b: a #GtkButtonBox
|
|
|
|
@s: the number of pixels of spacing
|
|
|
|
@Deprecated: Use gtk_box_set_spacing() instead.
|
1999-09-22 21:30:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_button_box_set_layout ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Changes the way buttons are arranged in their container.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget: a #GtkButtonBox.
|
|
|
|
@layout_style: the new layout style.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_button_box_set_child_size ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Sets a new default size for the children of a given button box.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
2008-11-29 06:57:55 +00:00
|
|
|
@widget: a #GtkButtonBox
|
|
|
|
@min_width: a default width for buttons in @widget
|
|
|
|
@min_height: a default height for buttons in @widget
|
2002-12-08 01:03:03 +00:00
|
|
|
@Deprecated: Use the style properties
|
2008-11-29 06:57:55 +00:00
|
|
|
"<link linkend="GtkButtonBox--s-child-min-width">child-min-width</link>"
|
|
|
|
and
|
|
|
|
"<link linkend="GtkButtonBox--s-child-min-height">child-min-height</link>"
|
|
|
|
instead.
|
1999-09-22 21:30:57 +00:00
|
|
|
|
2002-12-12 00:26:22 +00:00
|
|
|
|
1999-09-22 21:30:57 +00:00
|
|
|
<!-- ##### FUNCTION gtk_button_box_set_child_ipadding ##### -->
|
2001-12-31 00:05:30 +00:00
|
|
|
<para>
|
|
|
|
Changes the amount of internal padding used by all buttons in a given button
|
|
|
|
box.
|
1999-09-22 21:30:57 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget: a #GtkButtonBox.
|
|
|
|
@ipad_x: the horizontal padding that should be used by each button in @widget.
|
|
|
|
@ipad_y: the vertical padding that should be used by each button in @widget.
|
2002-12-08 01:03:03 +00:00
|
|
|
@Deprecated: Use the style properties
|
|
|
|
<literal>"child-internal-pad-x/-y"</literal> instead.
|
1999-09-22 21:30:57 +00:00
|
|
|
|
2002-12-12 00:26:22 +00:00
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
<!-- ##### FUNCTION gtk_button_box_set_child_secondary ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@widget:
|
|
|
|
@child:
|
|
|
|
@is_secondary:
|
|
|
|
|
|
|
|
|