Synopsis
#include <gtk/gtk.h>
GtkButtonBox;
#define GTK_BUTTONBOX_DEFAULT
#define gtk_button_box_get_spacing (b)
GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget);
void gtk_button_box_get_child_size (GtkButtonBox *widget,
gint *min_width,
gint *min_height);
void gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
gint *ipad_x,
gint *ipad_y);
gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget,
GtkWidget *child);
#define gtk_button_box_set_spacing (b,s)
void gtk_button_box_set_layout (GtkButtonBox *widget,
GtkButtonBoxStyle layout_style);
void gtk_button_box_set_child_size (GtkButtonBox *widget,
gint min_width,
gint min_height);
void gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
gint ipad_x,
gint ipad_y);
void gtk_button_box_set_child_secondary (GtkButtonBox *widget,
GtkWidget *child,
gboolean is_secondary);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkButtonBox
+----GtkHButtonBox
+----GtkVButtonBox
Style Properties"child-internal-pad-x" gint : Read "child-internal-pad-y" gint : Read "child-min-height" gint : Read "child-min-width" gint : Read DescriptionThe primary purpose of this class is to keep track of the various properties of GtkHButtonBox and GtkVButtonBox widgets.
The internal padding of buttons can be retrieved and changed per button box using
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 DetailsGtkButtonBoxtypedef struct _GtkButtonBox GtkButtonBox; This is a read-only struct; no members should be modified directly. gtk_button_box_get_spacing()#define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b)) Warning
Retrieves how much space a button box is placing between each child button.
gtk_button_box_get_layout ()GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget); Retrieves the method being used to arrange the buttons in a button box.
gtk_button_box_get_child_size ()void gtk_button_box_get_child_size (GtkButtonBox *widget, gint *min_width, gint *min_height); Warning
Retrieves the current width and height of all child widgets in a button box.
gtk_button_box_get_child_ipadding ()void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, gint *ipad_x, gint *ipad_y); Warning
Gets the default number of pixels that pad the buttons in a given button box.
gtk_button_box_get_child_secondary ()gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget, GtkWidget *child);
Returns whether
Since 2.4 gtk_button_box_set_spacing()#define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s) Warning
Sets the amount of spacing between buttons in a given button box.
gtk_button_box_set_layout ()void gtk_button_box_set_layout (GtkButtonBox *widget, GtkButtonBoxStyle layout_style); Changes the way buttons are arranged in their container.
gtk_button_box_set_child_size ()void gtk_button_box_set_child_size (GtkButtonBox *widget, gint min_width, gint min_height); Warning
Sets a new default size for the children of a given button box.
gtk_button_box_set_child_ipadding ()void gtk_button_box_set_child_ipadding (GtkButtonBox *widget, gint ipad_x, gint ipad_y); Warning
Changes the amount of internal padding used by all buttons in a given button box.
gtk_button_box_set_child_secondary ()void gtk_button_box_set_child_secondary (GtkButtonBox *widget, GtkWidget *child, gboolean is_secondary);
Sets whether
This group appears after the other children if the style
is
Property DetailsThe
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||