Top | ![]() |
![]() |
![]() |
![]() |
#define | gtk_button_box_get_spacing() |
GtkButtonBoxStyle | gtk_button_box_get_layout () |
void | gtk_button_box_get_child_size () |
void | gtk_button_box_get_child_ipadding () |
gboolean | gtk_button_box_get_child_secondary () |
#define | gtk_button_box_set_spacing() |
void | gtk_button_box_set_layout () |
void | gtk_button_box_set_child_size () |
void | gtk_button_box_set_child_ipadding () |
void | gtk_button_box_set_child_secondary () |
gint | child-internal-pad-x | Read |
gint | child-internal-pad-y | Read |
gint | child-min-height | Read |
gint | child-min-width | Read |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GtkButtonBox ├── GtkHButtonBox ╰── GtkVButtonBox
#define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b))
gtk_button_box_get_spacing
is deprecated and should not be used in newly-written code.
void gtk_button_box_get_child_size (GtkButtonBox *widget
,gint *min_width
,gint *min_height
);
gtk_button_box_get_child_size
is deprecated and should not be used in newly-written code.
void gtk_button_box_get_child_ipadding (GtkButtonBox *widget
,gint *ipad_x
,gint *ipad_y
);
gtk_button_box_get_child_ipadding
is deprecated and should not be used in newly-written code.
gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget
,GtkWidget *child
);
Returns whether child
should appear in a secondary group of children.
Since: 2.4
#define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s)
gtk_button_box_set_spacing
is deprecated and should not be used in newly-written code.
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
);
gtk_button_box_set_child_size
is deprecated and should not be used in newly-written code.
void gtk_button_box_set_child_ipadding (GtkButtonBox *widget
,gint ipad_x
,gint ipad_y
);
gtk_button_box_set_child_ipadding
is deprecated and should not be used in newly-written code.
void gtk_button_box_set_child_secondary (GtkButtonBox *widget
,GtkWidget *child
,gboolean is_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 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.
widget |
||
child |
a child of |
|
is_secondary |
if |
“layout-style”
property“layout-style” GtkButtonBoxStyle
How to lay out the buttons in the box. Possible values are: default, spread, edge, start and end.
Flags: Read / Write
Default value: GTK_BUTTONBOX_DEFAULT_STYLE
“secondary”
child property“secondary” gboolean
If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons.
Flags: Read / Write
Default value: FALSE
“child-internal-pad-x”
style property“child-internal-pad-x” gint
Amount to increase child's size on either side.
Flags: Read
Allowed values: >= 0
Default value: 4
“child-internal-pad-y”
style property“child-internal-pad-y” gint
Amount to increase child's size on the top and bottom.
Flags: Read
Allowed values: >= 0
Default value: 0
“child-min-height”
style property“child-min-height” gint
Minimum height of buttons inside the box.
Flags: Read
Allowed values: >= 0
Default value: 27
“child-min-width”
style property“child-min-width” gint
Minimum width of buttons inside the box.
Flags: Read
Allowed values: >= 0
Default value: 85