Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Container

Class Container

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container

Implemented interfaces:


public class

Container



Base class for widgets which contain other widgets.

Constructor Summary
protected (GtkWidget* gtkWidget)
          

Methods Summary
public char toString()
          
void dump()
          
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+.
void setFocusChain(ListG focusable_widgets)
          
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)
          /* Widget-level methods 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.
Adjustment getFocusHAdjustment()
          
void resizeChildren()
          Resizes the children
GType childType()
          Returns the type of the children supported by the container.
void setVaList(Widget child, String first_property_name, vaList var_args)
          not implemented /+ 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,.
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




protected ctor(Container)(GtkWidget* gtkWidget)

toString

public char toString()

dump

void dump()

add

void add(Widget child)
Adds any widget to this container.

Parameters:
child - the widget to be added

setBorderWidth

void setBorderWidth(int width)
Set the border width, this is an empty border

Parameters:
width - the new border width

getBorderWidth

guint getBorderWidth()
Get the border width

Returns:
the border width

remove

void remove(Widget child)
Removes a widget from this container

Parameters:
child - the widget to remove

removeAll

void removeAll()
Removes all widgets from the container

setResizeMode

void setResizeMode(ResizeMode resize_mode)
Sets the resize mode

Parameters:
resize_mode - the

getResizeMode

ResizeMode getResizeMode()
Gets the resize mode

Returns:
the resize mode

checkResize

void checkResize()
Check resize

forEach

void forEach(GtkCallback callback, gpointer callback_data)
Adds a callback to each child.
the use of direct call back function is discoureaged.

getChildren

Widget getChildren()
Returns an array of all children

Returns:
an array of all children

propagateExpose

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.

Parameters:
child -
event -

setFocusChain

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

setFocusChain

void setFocusChain(ListG focusable_widgets)

getFocusChain

bit getFocusChain(ListG focusable_widgets)
get the focus sequence for the child widget???

unsetFocusChain

void unsetFocusChain()
Removes a focus chain explicitly set with setFocusChain().
@see setFocusChain

setReallocateRedraws

void setReallocateRedraws(bit needs_redraws)
/* Widget-level methods 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.

setFocusChild

void setFocusChild(Widget child)
set Focus child

Parameters:
child -

setFocusVAdjustment

void setFocusVAdjustment(Adjustment adjustment)
Sets the vertical focus adjustment for the container.

getFocusVAdjustment

Adjustment getFocusVAdjustment()
Retrieves the vertical focus adjustment for the container.

setFocusHAdjustment

void setFocusHAdjustment(Adjustment adjustment)
Sets the horizontal focus adjustment for the container.

Parameters:
adjustment -

getFocusHAdjustment

Adjustment getFocusHAdjustment()

resizeChildren

void resizeChildren()
Resizes the children

childType

GType 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

setVaList

void setVaList(Widget child, String first_property_name, vaList var_args)
not implemented /+ 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,.
.) gtk_container_add_with_properties(cast(GtkContainer*)gtkW(), child.gtkW(), cChar(first_prop_name),null); +/ not implemented /+ void childSet(Widget child, char [] first_prop_name,...) gtk_container_child_set(cast(GtkContainer*)gtkW(), child.gtkW(), cChar(first_prop_name),null); +/ not implemented /+ void childGet(Widget child, char [] first_prop_name,...) gtk_container_child_get(cast(GtkContainer*)gtkW(), child.gtkW(), cChar(first_prop_name),null); +/ Sets child vaList

Parameters:
child -
first_property_name -
var_args -

childGetVaList

void childGetVaList(Widget child, String first_property_name, vaList var_args)
Gets child vaList

Parameters:
child -
first_property_name -
var_args -

childSetProperty

void 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

childGetProperty

Value 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

forall

void forall(GtkCallback callback, gpointer callback_data)
Probably sets a call back for all the children using direct callback from gtk is discouraged