Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

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 Methods


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   ,
int   ,
int   ,
int   
[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 Sat May 4 22:00:28 2002 for vdk 2.0.1 by doxygen1.2.15