gtk.ButtonBox.ButtonBox Class Reference

Inheritance diagram for gtk.ButtonBox.ButtonBox:

gtk.Box.Box gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.HButtonBox.HButtonBox gtk.VButtonBox.VButtonBox List of all members.

Public Member Functions

GtkButtonBoxgetButtonBoxStruct ()
 this (GtkButtonBox *gtkButtonBox)
 Sets our main struct and passes it to the parent class.
GtkButtonBoxStyle getLayout ()
 Retrieves the method being used to arrange the buttons in a button box.
void getChildSize (int *minWidth, int *minHeight)
 Warning gtk_button_box_get_child_size is deprecated and should not be used in newly-written code.
void getChildIpadding (int *ipadX, int *ipadY)
 Warning gtk_button_box_get_child_ipadding is deprecated and should not be used in newly-written code.
int getChildSecondary (Widget child)
 Returns whether child should appear in a secondary group of children.
void setLayout (GtkButtonBoxStyle layoutStyle)
 Changes the way buttons are arranged in their container.
void setChildSize (int minWidth, int minHeight)
 Warning gtk_button_box_set_child_size is deprecated and should not be used in newly-written code.
void setChildIpadding (int ipadX, int ipadY)
 Warning gtk_button_box_set_child_ipadding is deprecated and should not be used in newly-written code.
void setChildSecondary (Widget child, int isSecondary)
 Sets whether child should appear in a secondary group of children.

Static Public Member Functions

static ButtonBox createActionBox (void delegate(Button) onClicked, StockID[] stocks, char[][] actions, bool vertical=false)
static ButtonBox createOkBox (void delegate(Button) onClicked)
static ButtonBox createOkCancelBox (void delegate(Button) onClicked)

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkButtonBoxgtkButtonBox
 the main Gtk struct

Constructor & Destructor Documentation

gtk.ButtonBox.ButtonBox.this ( GtkButtonBox gtkButtonBox  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

static ButtonBox gtk.ButtonBox.ButtonBox.createActionBox ( void delegate(Button onClicked,
StockID[]  stocks,
char  actions[][],
bool  vertical = false 
) [static]

static ButtonBox gtk.ButtonBox.ButtonBox.createOkBox ( void delegate(Button onClicked  )  [static]

static ButtonBox gtk.ButtonBox.ButtonBox.createOkCancelBox ( void delegate(Button onClicked  )  [static]

GtkButtonBox* gtk.ButtonBox.ButtonBox.getButtonBoxStruct (  ) 

void gtk.ButtonBox.ButtonBox.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/-y" instead. Gets the default number of pixels that pad the buttons in a given button box. widget: a GtkButtonBox. ipad_x: the horizontal padding used by buttons in widget. ipad_y: the vertical padding used by buttons in widget.

int gtk.ButtonBox.ButtonBox.getChildSecondary ( Widget  child  ) 

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

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

void gtk.ButtonBox.ButtonBox.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. widget: a GtkButtonBox. min_width: the width of the buttons contained by widget. min_height: the height of the buttons contained by widget.

GtkButtonBoxStyle gtk.ButtonBox.ButtonBox.getLayout (  ) 

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

widget: a GtkButtonBox. Returns: the method used to layout buttons in widget.

void* gtk.ButtonBox.ButtonBox.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Box.Box.

Reimplemented in gtk.HButtonBox.HButtonBox, and gtk.VButtonBox.VButtonBox.

void gtk.ButtonBox.ButtonBox.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. 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.

void gtk.ButtonBox.ButtonBox.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. widget: a GtkButtonBox child: a child of widget is_secondary: if TRUE, the child appears in a secondary group of the button box. Property Details The "layout-style" property "layout-style" GtkButtonBoxStyle : Read / Write How to layout the buttons in the box. Possible values are default, spread, edge, start and end. Default value: GTK_BUTTONBOX_DEFAULT_STYLE Child Property Details The "secondary" child property "secondary" gboolean : Read / Write If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons. Default value: FALSE Style Property Details The "child-internal-pad-x" style property "child-internal-pad-x" gint : Read Amount to increase child's size on either side. Allowed values: >= 0 Default value: 4

void gtk.ButtonBox.ButtonBox.setChildSize ( int  minWidth,
int  minHeight 
)

Warning gtk_button_box_set_child_size is deprecated and should not be used in newly-written code.

Use the style properties "child-min-width/-height" instead. Sets a new default size for the children of a given button box. widget: a GtkButtonBox. min_width: a default width for buttons in widget. min_height: a default height for buttons in widget.

void gtk.ButtonBox.ButtonBox.setLayout ( GtkButtonBoxStyle  layoutStyle  ) 

Changes the way buttons are arranged in their container.

widget: a GtkButtonBox. layout_style: the new layout style.


Member Data Documentation

GtkButtonBox* gtk.ButtonBox.ButtonBox.gtkButtonBox [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo