gtk.Box.Box Class Reference

Inheritance diagram for gtk.Box.Box:

gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.ButtonBox.ButtonBox gtk.HBox.HBox gtk.VBox.VBox gtk.HButtonBox.HButtonBox gtk.VButtonBox.VButtonBox gtk.FileChooserButton.FileChooserButton gtk.Statusbar.Statusbar gtk.ColorSelection.ColorSelection gtk.FileChooserWidget.FileChooserWidget gtk.FontSelection.FontSelection gtk.GammaCurve.GammaCurve List of all members.

Public Member Functions

GtkBoxgetBoxStruct ()
 this (GtkBox *gtkBox)
 Sets our main struct and passes it to the parent class.
void packStart (Widget child, int expand, int fill, uint padding)
 Adds child to box, packed with reference to the start of box.
void packEnd (Widget child, int expand, int fill, uint padding)
 Adds child to box, packed with reference to the end of box.
void packStartDefaults (Widget widget)
 Adds widget to box, packed with reference to the start of box.
void packEndDefaults (Widget widget)
 Adds widget to box, packed with reference to the end of box.
int getHomogeneous ()
 Returns whether the box is homogeneous (all children are the same size).
void setHomogeneous (int homogeneous)
 Sets the homogeneous field of GtkBox, controlling whether or not all children of box are given equal space in the box.
int getSpacing ()
 Gets the value set by gtk_box_set_spacing().
void setSpacing (int spacing)
 Sets the spacing field of GtkBox, which is the number of pixels to place between children of box.
void reorderChild (Widget child, int position)
 Moves child to a new position in the list of box children.
void queryChildPacking (Widget child, int *expand, int *fill, uint *padding, GtkPackType *packType)
 Returns information about how child is packed into box.
void setChildPacking (Widget child, int expand, int fill, uint padding, GtkPackType packType)
 Sets the way child is packed into box.

Protected Member Functions

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

Protected Attributes

GtkBoxgtkBox
 the main Gtk struct

Constructor & Destructor Documentation

gtk.Box.Box.this ( GtkBox gtkBox  ) 

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


Member Function Documentation

GtkBox* gtk.Box.Box.getBoxStruct (  ) 

int gtk.Box.Box.getHomogeneous (  ) 

Returns whether the box is homogeneous (all children are the same size).

See gtk_box_set_homogeneous(). box: a GtkBox Returns: TRUE if the box is homogeneous.

int gtk.Box.Box.getSpacing (  ) 

Gets the value set by gtk_box_set_spacing().

box: a GtkBox Returns: spacing between children

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

the main Gtk struct as a void*

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ButtonBox.ButtonBox, gtk.ColorSelection.ColorSelection, gtk.FileChooserButton.FileChooserButton, gtk.FileChooserWidget.FileChooserWidget, gtk.FontSelection.FontSelection, gtk.GammaCurve.GammaCurve, gtk.HBox.HBox, gtk.HButtonBox.HButtonBox, gtk.Statusbar.Statusbar, gtk.VBox.VBox, and gtk.VButtonBox.VButtonBox.

void gtk.Box.Box.packEnd ( Widget  child,
int  expand,
int  fill,
uint  padding 
)

Adds child to box, packed with reference to the end of box.

The child is packed after (away from end of) any other child packed with reference to the end of box. box: a GtkBox. child: the GtkWidget to be added to box. expand: TRUE if the new child is to be given extra space allocated to box. The extra space will be divided evenly between all children of box that use this option. fill: TRUE if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to FALSE. A child is always allocated the full height of a GtkHBox and the full width of a GtkVBox. This option affects the other dimension. padding: extra space in pixels to put between this child and its neighbors, over and above the global amount specified by spacing in GtkBox. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box.

void gtk.Box.Box.packEndDefaults ( Widget  widget  ) 

Adds widget to box, packed with reference to the end of box.

The child is packed after (away from end of) any other child packed with reference to the end of box. Parameters for how to pack the child widget, expand, fill, and padding in GtkBoxChild, are given their default values, TRUE, TRUE, and 0, respectively. box: a GtkBox. widget: the GtkWidget to be added to box.

void gtk.Box.Box.packStart ( Widget  child,
int  expand,
int  fill,
uint  padding 
)

Adds child to box, packed with reference to the start of box.

The child is packed after any other child packed with reference to the start of box. box: a GtkBox. child: the GtkWidget to be added to box. expand: TRUE if the new child is to be given extra space allocated to box. The extra space will be divided evenly between all children of box that use this option. fill: TRUE if space given to child by the expand option is actually allocated to child, rather than just padding it. This parameter has no effect if expand is set to FALSE. A child is always allocated the full height of a GtkHBox and the full width of a GtkVBox. This option affects the other dimension. padding: extra space in pixels to put between this child and its neighbors, over and above the global amount specified by spacing in GtkBox. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box.

void gtk.Box.Box.packStartDefaults ( Widget  widget  ) 

Adds widget to box, packed with reference to the start of box.

The child is packed after any other child packed with reference to the start of box. Parameters for how to pack the child widget, expand, fill, and padding in GtkBoxChild, are given their default values, TRUE, TRUE, and 0, respectively. box: a GtkBox. widget: the GtkWidget to be added to box.

void gtk.Box.Box.queryChildPacking ( Widget  child,
int expand,
int fill,
uint padding,
GtkPackType packType 
)

Returns information about how child is packed into box.

box: a GtkBox. child: the GtkWidget of the child to query. expand: the returned value of the expand field in GtkBoxChild. fill: the returned value of the fill field in GtkBoxChild. padding: the returned value of the padding field in GtkBoxChild. pack_type: the returned value of the pack field in GtkBoxChild.

void gtk.Box.Box.reorderChild ( Widget  child,
int  position 
)

Moves child to a new position in the list of box children.

The list is the children field of GtkBox, and contains both widgets packed GTK_PACK_START as well as widgets packed GTK_PACK_END, in the order that these widgets were added to box. A widget's position in the box children list determines where the widget is packed into box. A child widget at some position in the list will be packed just after all other widgets of the same packing type that appear earlier in the list. box: a GtkBox. child: the GtkWidget to move. position: the new position for child in the children list of GtkBox, starting from 0. If negative, indicates the end of the list.

void gtk.Box.Box.setChildPacking ( Widget  child,
int  expand,
int  fill,
uint  padding,
GtkPackType  packType 
)

Sets the way child is packed into box.

box: a GtkBox. child: the GtkWidget of the child to set. expand: the new value of the expand field in GtkBoxChild. fill: the new value of the fill field in GtkBoxChild. padding: the new value of the padding field in GtkBoxChild. pack_type: the new value of the pack field in GtkBoxChild. Property Details The "homogeneous" property "homogeneous" gboolean : Read / Write Whether the children should all be the same size. Default value: FALSE

void gtk.Box.Box.setHomogeneous ( int  homogeneous  ) 

Sets the homogeneous field of GtkBox, controlling whether or not all children of box are given equal space in the box.

box: a GtkBox. homogeneous: a boolean value, TRUE to create equal allotments, FALSE for variable allotments.

void gtk.Box.Box.setSpacing ( int  spacing  ) 

Sets the spacing field of GtkBox, which is the number of pixels to place between children of box.

box: a GtkBox. spacing: the number of pixels to put between children.


Member Data Documentation

GtkBox* gtk.Box.Box.gtkBox [protected]

the main Gtk struct


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