Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | Related Pages

VDKObjectContainer Class Reference

Containers base class. More...

#include <widcontain.h>

Inheritance diagram for VDKObjectContainer:

VDKObject VDKNotCopyAble VDKBox VDKEventBox VDKFixed VDKFrame VDKHandleBox VDKMenu VDKMenubar VDKNotebook VDKPaned VDKRadioButtonGroup VDKScrolled VDKTable VDKTextView VDKToolbar List of all members.

Public Member Functions


Detailed Description

Containers base class.

This class provides a container widget, common class for specialized containers such as VDKBox, VDKTable etc. User should not construct explicitely this kind of object.


Member Function Documentation

void VDKObjectContainer::Add VDKObject obj,
int  justify = l_justify,
int  expand = TRUE,
int  fill = TRUE,
int  padding = 0
[virtual]
 

Add an object.

Reimplemented from VDKObject.

Reimplemented in VDKBox, VDKEventBox, VDKFixed, VDKFrame, VDKHandleBox, VDKMenu, VDKMenubar, VDKNotebook, VDKPaned, VDKRadioButtonGroup, VDKScrolled, VDKTable, and VDKToolbar.

int VDKObjectContainer::BorderWidth int  w = -1  )  [inline]
 

Sets container border width

Parameters:
w returns border width if is < 0

VDKObject * VDKObjectContainer::FindTag int  tag  ) 
 

Find an object with Tag==tag, NULL if fails

Parameters:
tag value to be searched

void VDKObjectContainer::ForEachDo void(*  action)(VDKObject *)  ) 
 

Apply user defined functions to each contained object

void VDKObjectContainer::RemoveObject VDKObject obj  )  [inline]
 

Remove an object from container, object will be destroyed

Parameters:
obj object to be removed

void VDKObjectContainer::RemoveObjectFromContainer VDKObject obj  )  [virtual]
 

This function will remove an object from a container without destroying it.

Parameters:
obj object to be removed Tip: should be used to reparent an widget, or it will leak. Example:
    // remove from source container
    // referencing it otherwise will be destroyed by gtk+
    source->RemoveObjectFromContainer(widget);
    // add to target container
    target->Add(widget);
    // set target as parent to redirect signal flow
    widget->Parent(target);     
    // unref widget again (or it will leak)
    gtk_widget_unref(widget->Widget());

void VDKObjectContainer::RemoveObjects  ) 
 

Remove all objects from container destroying them


The documentation for this class was generated from the following files:
Generated on Wed Aug 6 11:01:58 2003 for vdk 2.0.3 by doxygen 1.3.2