GtkButtonBox
Synopsis
#include <gtk/gtk.h>
struct 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);
#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);
|
Details
struct GtkButtonBox
This is a read-only struct; no members should be modified directly.
GTK_BUTTONBOX_DEFAULT
#define GTK_BUTTONBOX_DEFAULT -1 |
Used internally only.
gtk_button_box_get_spacing()
#define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b)) |
Warning |
gtk_button_box_get_spacing is deprecated and should not be used in newly-written code. |
Retrieves how much space a button box is placing between each child button.
gtk_button_box_get_layout ()
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 |
gtk_button_box_get_child_size is deprecated and should not be used in newly-written code. |
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.
gtk_button_box_get_child_ipadding ()
void gtk_button_box_get_child_ipadding
(GtkButtonBox *widget,
gint *ipad_x,
gint *ipad_y); |
Warning |
gtk_button_box_get_child_ipadding is deprecated and should not be used in newly-written code. |
Gets the default number of pixels that pad the buttons in a given button box.
gtk_button_box_set_spacing()
#define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s) |
Warning |
gtk_button_box_set_spacing is deprecated and should not be used in newly-written code. |
Sets the amount of spacing between buttons in a given button box.
gtk_button_box_set_layout ()
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 |
gtk_button_box_set_child_size is deprecated and should not be used in newly-written code. |
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 |
gtk_button_box_set_child_ipadding is deprecated and should not be used in newly-written code. |
Changes the amount of internal padding used by all buttons in a given button
box.
gtk_button_box_set_child_secondary ()
Sets whether child should appear in a secondary group of children.
A typical use of a secondary child is the help button in a dialog.
This group appears after the other children if the style
is GTK_BUTTONBOX_START, GTK_BUTTONBOX_SPREAD or
GTK_BUTTONBOX_EDGE, and before the the other children if the style
is GTK_BUTTONBOX_END. For horizontal button boxes, the definition
of before/after depends on direction of the widget (see
gtk_widget_set_direction()). If the style is GTK_BUTTONBOX_START
or GTK_BUTTONBOX_END, then the secondary children are aligned at
the other end of the button box from the main children. For the
other styles, they appear immediately next to the main children.