Container Class Reference

Inheritance diagram for Container:

Widget Bin Box Layout List MenuShell Paned Socket Table Toolbar Tree TreeView List of all members.

Detailed Description

Base class for widgets which contain other widgets.


Public Member Functions

void add (Widget child)
 Adds any widget to this container.
void setBorderWidth (int width)
 Set the border width, this is an empty border.
guint getBorderWidth ()
 Get the border width.
void remove (Widget child)
 Removes a widget from this container.
void removeAll ()
 Removes all widgets from the container.
void setResizeMode (ResizeMode resize_mode)
 Sets the resize mode.
ResizeMode getResizeMode ()
 Gets the resize mode.
void checkResize ()
 Check resize.
void forEach (GtkCallback callback, gpointer callback_data)
 Adds a callback to each child.
Widget[] getChildren ()
 Returns an array of all children.
void propagateExpose (Widget child, EventExpose event)
 When a container receives an expose event, it must send synthetic expose events to all children that don't have their own GdkWindows.
void setFocusChain (Widget[] widgets)
 Sets a focus chain, overriding the one computed automatically by GTK+.
bit getFocusChain (ListG focusable_widgets)
 get the focus sequence for the child widget???
void unsetFocusChain ()
 Removes a focus chain explicitly set with setFocusChain().
void setReallocateRedraws (bit needs_redraws)
 Sets the reallocate_redraws flag of the container to the given value.
void setFocusChild (Widget child)
 set Focus child
void setFocusVAdjustment (Adjustment adjustment)
 Sets the vertical focus adjustment for the container.
Adjustment getFocusVAdjustment ()
 Retrieves the vertical focus adjustment for the container.
void setFocusHAdjustment (Adjustment adjustment)
 Sets the horizontal focus adjustment for the container.
void resizeChildren ()
 Resizes the children.
GType childType ()
 Returns the type of the children supported by the container.
void gtk_container_class_install_child_property (GtkContainerClass *cclass, guint property_id, GParamSpec *pspec)
 not implemented
GParamSpec * gtk_container_class_find_child_property (GObjectClass *cclass, gchar *property_name)
 not implemented
void addWithProperties (Widget child, char[] first_prop_name,...)
 not implemented
void childSet (Widget child, char[] first_prop_name,...)
 not implemented
void childGet (Widget child, char[] first_prop_name,...)
 not implemented
void setVaList (Widget child, String first_property_name, vaList var_args)
 Sets child vaList.
void childGetVaList (Widget child, String first_property_name, vaList var_args)
 Gets child vaList.
void childSetProperty (Widget child, String property_name, GValue *value)
 Gets property for a child.
Value childGetProperty (Widget child, String property_name, Value value)
 Gets property for a child.
void forall (GtkCallback callback, gpointer callback_data)
 Probably sets a call back for all the children using direct callback from gtk is discouraged.


Member Function Documentation

void Container.add Widget  child  ) 
 

Adds any widget to this container.

Parameters:
child the widget to be added

void Container.addWithProperties Widget  child,
char[]  first_prop_name,
  ...
 

not implemented

void Container.checkResize  ) 
 

Check resize.

void Container.childGet Widget  child,
char[]  first_prop_name,
  ...
 

not implemented

Value Container.childGetProperty Widget  child,
String  property_name,
Value  value
 

Gets property for a child.

Isn't this a bit dumb? we already have the child... I'm missing somthing...

Parameters:
child 
property_name 
value the value to be changed
Returns:
the same Value object passed in with the changed values

void Container.childGetVaList Widget  child,
String  first_property_name,
vaList  var_args
 

Gets child vaList.

Parameters:
child 
first_property_name 
var_args 

void Container.childSet Widget  child,
char[]  first_prop_name,
  ...
 

not implemented

void Container.childSetProperty Widget  child,
String  property_name,
GValue *  value
 

Gets property for a child.

Isn't this a bit dumb? we already have the child... I'm missing somthing...

Parameters:
child 
property_name 
value the value to be changed
Returns:
the same Value object passed in with the changed values

GType Container.childType  ) 
 

Returns the type of the children supported by the container.

Note that this may return TYPE_NONE to indicate that no more children can be added, e.g. for a Paned which already has two children.

Returns:
the child type

void Container.forall GtkCallback  callback,
gpointer  callback_data
 

Probably sets a call back for all the children using direct callback from gtk is discouraged.

void Container.forEach GtkCallback  callback,
gpointer  callback_data
 

Adds a callback to each child.

the use of direct call back function is discoureaged.

guint Container.getBorderWidth  ) 
 

Get the border width.

Returns:
the border width

Widget [] Container.getChildren  ) 
 

Returns an array of all children.

Returns:
an array of all children

bit Container.getFocusChain ListG  focusable_widgets  ) 
 

get the focus sequence for the child widget???

Adjustment Container.getFocusVAdjustment  ) 
 

Retrieves the vertical focus adjustment for the container.

ResizeMode Container.getResizeMode  ) 
 

Gets the resize mode.

Returns:
the resize mode

GParamSpec* Container.gtk_container_class_find_child_property GObjectClass *  cclass,
gchar *  property_name
 

not implemented

void Container.gtk_container_class_install_child_property GtkContainerClass *  cclass,
guint  property_id,
GParamSpec *  pspec
 

not implemented

void Container.propagateExpose Widget  child,
EventExpose  event
 

When a container receives an expose event, it must send synthetic expose events to all children that don't have their own GdkWindows.

Parameters:
child 
event 

void Container.remove Widget  child  ) 
 

Removes a widget from this container.

Parameters:
child the widget to remove

void Container.removeAll  ) 
 

Removes all widgets from the container.

Reimplemented in Table.

void Container.resizeChildren  ) 
 

Resizes the children.

void Container.setBorderWidth int  width  ) 
 

Set the border width, this is an empty border.

Parameters:
width the new border width

void Container.setFocusChain Widget[]  widgets  ) 
 

Sets a focus chain, overriding the one computed automatically by GTK+.

In principle each widget in the chain should be a descendant of the container, but this is not enforced by this method, since it's allowed to set the focus chain before you pack the widgets, or have a widget in the chain that isn't always packed. The necessary checks are done when the focus chain is actually traversed.

void Container.setFocusChild Widget  child  ) 
 

set Focus child

Parameters:
child 

void Container.setFocusHAdjustment Adjustment  adjustment  ) 
 

Sets the horizontal focus adjustment for the container.

Parameters:
adjustment 

void Container.setFocusVAdjustment Adjustment  adjustment  ) 
 

Sets the vertical focus adjustment for the container.

void Container.setReallocateRedraws bit  needs_redraws  ) 
 

Sets the reallocate_redraws flag of the container to the given value.

Containers requesting reallocation redraws get automatically redrawn if any of their children changed allocation.

Parameters:
needs_redraws the new value for the container's reallocate_redraws flag.

void Container.setResizeMode ResizeMode  resize_mode  ) 
 

Sets the resize mode.

Parameters:
resize_mode the

void Container.setVaList Widget  child,
String  first_property_name,
vaList  var_args
 

Sets child vaList.

Parameters:
child 
first_property_name 
var_args 

void Container.unsetFocusChain  ) 
 

Removes a focus chain explicitly set with setFocusChain().

See also:
setFocusChain


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