VButtonBox

Description A button box should be used to provide a consistent layout of buttons throughout your application. The layout/spacing can be altered by the programmer, or if desired, by the user to alter the 'feel' of a program to a small degree. A GtkVButtonBox is created with gtk_vbutton_box_new(). Buttons are packed into a button box the same way widgets are added to any other container, using gtk_container_add(). You can also use gtk_box_pack_start() or gtk_box_pack_end(), but for button boxes both these functions work just like gtk_container_add(), ie., they pack the button in a way that depends on the current layout style and on whether the button has had gtk_button_box_set_child_secondary() called on it. The spacing between buttons can be set with gtk_box_set_spacing(). The arrangement and layout of the buttons can be changed with gtk_button_box_set_layout().

Constructors

this
this(GtkVButtonBox* gtkVButtonBox)

Sets our main struct and passes it to the parent class

this
this()

Creates a new vertical button box.

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getVButtonBoxStruct
GtkVButtonBox* getVButtonBoxStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

createActionBox
VButtonBox createActionBox()

Creates a new vertical button box and sets standart values for it's comon parameters

getLayoutDefault
GtkButtonBoxStyle getLayoutDefault()

Warning gtk_vbutton_box_get_layout_default has been deprecated since version 2.0 and should not be used in newly-written code. Use gtk_button_box_get_layout() instead. Retrieves the current layout used to arrange buttons in button box widgets.

getSpacingDefault
int getSpacingDefault()

Warning gtk_vbutton_box_get_spacing_default has been deprecated since version 2.0 and should not be used in newly-written code. Use gtk_box_get_spacing() instead. Retrieves the current default spacing for vertical button boxes. This is the number of pixels to be placed between the buttons when they are arranged.

setLayoutDefault
void setLayoutDefault(GtkButtonBoxStyle layout)

Warning gtk_vbutton_box_set_layout_default has been deprecated since version 2.0 and should not be used in newly-written code. Use gtk_button_box_set_layout() instead. Sets a new layout mode that will be used by all button boxes.

setSpacingDefault
void setSpacingDefault(int spacing)

Warning gtk_vbutton_box_set_spacing_default has been deprecated since version 2.0 and should not be used in newly-written code. Use gtk_box_set_spacing() instead. Changes the default spacing that is placed between widgets in an vertical button box.

Variables

gtkVButtonBox
GtkVButtonBox* gtkVButtonBox;

the main Gtk struct

Inherited Members

From ButtonBox

gtkButtonBox
GtkButtonBox* gtkButtonBox;

the main Gtk struct

getButtonBoxStruct
GtkButtonBox* getButtonBoxStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
createActionBox
ButtonBox createActionBox(void delegate(Button) onClicked, StockID[] stocks, string[] actions, bool vertical)
createOkBox
ButtonBox createOkBox(void delegate(Button) onClicked)
createOkCancelBox
ButtonBox createOkCancelBox(void delegate(Button) onClicked)
getLayout
GtkButtonBoxStyle getLayout()

Retrieves the method being used to arrange the buttons in a button box.

getChildSize
void getChildSize(int minWidth, int minHeight)

Warning gtk_button_box_get_child_size is deprecated and should not be used in newly-written code. Use the style properties "child-min-width/-height" instead. 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.

getChildIpadding
void getChildIpadding(int ipadX, int ipadY)

Warning gtk_button_box_get_child_ipadding is deprecated and should not be used in newly-written code. Use the style properties "child-internal-pad-x" and "child-internal-pad-y" instead. Gets the default number of pixels that pad the buttons in a given button box.

getChildSecondary
int getChildSecondary(Widget child)

Returns whether child should appear in a secondary group of children. Since 2.4

setLayout
void setLayout(GtkButtonBoxStyle layoutStyle)

Changes the way buttons are arranged in their container.

setChildSize
void setChildSize(int minWidth, int minHeight)

Warning gtk_button_box_set_child_size is deprecated and should not be used in newly-written code. This is not supported anymore and can only be set through the theme

setChildIpadding
void setChildIpadding(int ipadX, int ipadY)

Warning gtk_button_box_set_child_ipadding is deprecated and should not be used in newly-written code. Use the style properties "child-internal-pad-x/-y" instead. Changes the amount of internal padding used by all buttons in a given button box.

setChildSecondary
void setChildSecondary(Widget child, int isSecondary)

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.

Meta