GtkContainer Class

The GtkContainer class is the base class for 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

The methods for the GtkContainer class are documented below.

GtkContainer Method Table of Contents

new - Create and initialize the widget
add - Add a widget to a container
remove - Remove a widget from a container
borderwidth = - Set the internal border width


Method: new

This method creates and initializes the widget.

Example

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


mycontainer = .GtkContainer~new()

Method Parameters

None.

Method Results

The new GtkContainer object.




Method: add

This method adds a widget to a container.

Example

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


mycontainer~add(mywidget)

Method Parameters

mywidget
The widget to be added to the container.

Method Results

None.




Method: remove

This method removes a widget from a container.

Example

This is a example of how to remove a widget from a container.


mycontainer~remove(mywidget)

Method Parameters

mywidget
The widget to be removed from the container.

Method Results

None.




Method: borderwidth=

This method adds/creates an empty space border around the contained widget.

Example

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


width = 10
mycontainer~setborderwidth = width

Method Parameters

width
The new border width (in pixels) to be added to the container.

Method Results

None.




Valid XHTML 1.0!