GtkBox Class

The GtkBox class is the base class for vertical and horizontal box container widgets in the GtkRxDlg class heirarchy. You should NOT instantiate this class directly, instead you should instantiate the children of this class. However, feel free to utilize the methods in this class to manipulate your child widgets.

This is a logical container and has no visible presence on the screen. It is used to contain other widgets.

The class heirarchy


   Object
      +---GtkWidget
         +---GtkContainer
            +---GtkBox

The methods for the GtkBox class are documented below.

GtkBox Method Table of Contents

new - Create an initialize the widget
packstart - Add a widget to the container box
packend - Add a widget to the container box


Method: new

This method creates and initializes the widget.

Example

This is a example of how to create a new box widget.


mybox = .GtkBox~new()

Method Parameters

None.

Method Results

mybox
The new GtkBox object.



Method: packstart

This method adds a widget to the container with packing instructions.

Example

This is a example of how to add a widget to the container.


myvbox~packstart(mywidget, expand, fill, padding)

Method Parameters

mywidget
The new widget to be added to the container.
expand
.true if extra space is to be allocated to the container.
fill
.true if space given by expand is actually allocated.
padding
The number of pixels to be added at one end of the container.

Method Results

None.




Method: packend

This method adds a widget to the container with packing instructions.

Example

This is a example of how to add a widget to the container.


myvbox~packend(mywidget, expand, fill, padding)

Method Parameters

mywidget
The new widget to be added to the container.
expand
.true if extra space is to be allocated to the container.
fill
.true if space given by expand is actually allocated.
padding
The number of pixels to be added at one end of the container.

Method Results

None.




Valid XHTML 1.0!