public

Inheritance Graph

graph BT
	Container
	Container --> Component
	Button --> Container
	Checkbox --> Container
	Connector --> Container
	ConnectorPoint --> Container
	EditorPanel --> Container
	ListView --> Container
	Menu --> Container
	ScrollableContainer --> Container
	Scrollbar --> Container
	Slider --> Container
	TabbedPanel --> Container
	Tab --> Container
	Textarea --> Container
	TreeView --> Container
	TreeViewEntry --> Container
	Window --> Container
	click Container "classGUI_1_1Container"
	click Component "classGUI_1_1Component"
	click Button "classGUI_1_1Button"
	click Checkbox "classGUI_1_1Checkbox"
	click Connector "classGUI_1_1Connector"
	click ConnectorPoint "classGUI_1_1Connector_1_1ConnectorPoint"
	click EditorPanel "classGUI_1_1EditorPanel"
	click ListView "classGUI_1_1ListView"
	click Menu "classGUI_1_1Menu"
	click ScrollableContainer "classGUI_1_1ScrollableContainer"
	click Scrollbar "classGUI_1_1Scrollbar"
	click Slider "classGUI_1_1Slider"
	click TabbedPanel "classGUI_1_1TabbedPanel"
	click Tab "classGUI_1_1TabbedPanel_1_1Tab"
	click Textarea "classGUI_1_1Textarea"
	click TreeView "classGUI_1_1TreeView"
	click TreeViewEntry "classGUI_1_1TreeView_1_1TreeViewEntry"
	click Window "classGUI_1_1Window"

Description

Public Types

   
   
typedef Util::Reference < Container > ContainerRef

Protected Attributes

   
   
Ref firstChild
   
Ref lastChild
   
size_t contentsCount

Public Functions

   
   
  Container( GUI_Manager & gui, flag_t flags)
   
  Container( GUI_Manager & gui, const Geometry::Rect & r, flag_t flags)
   
void _addChild(const Ref & child)
   
void _insertAfter(const Ref & child, const Ref & after)
   
void _insertBefore(const Ref & child, const Ref & before)
   
void _removeChild(const Ref & child)
   
Component * getFirstChild() const
   
Component * getLastChild() const
   
void childRectChanged( Component * c)
   
void addContent(const Ref & child)
   
void removeContent(const Ref & child)
   
void clearContents()
   
void destroyContents()
   
size_t getContentsCount() const
   
void bringChildToFront( Component * c)
   
std::vector< Component * > getContents()
   
void insertAfter(const Ref & child, const Ref & after)
   
void insertBefore(const Ref & child, const Ref & after)
   
std::string toString() const
   
visitorResult_t traverseChildren( Visitor & v)
   
visitorResult_t traverseSubtree( Visitor & v)

Protected Functions

   
   
  ~Container()
   
void displayChildren(const Geometry::Rect & region, bool useScissor)
   
void copyChildrenTo( Container & target) const

Documentation

typedef
GUI::Container::ContainerRef

public
 
 
typedef Util::Reference < Container > ContainerRef

Defined in GUI/Components/Container.h:28


variable
GUI::Container::firstChild

protected
 
 
Ref firstChild

Defined in GUI/Components/Container.h:85


variable
GUI::Container::lastChild

protected
 
 
Ref lastChild

Defined in GUI/Components/Container.h:86


variable
GUI::Container::contentsCount

protected
 
 
size_t contentsCount

Defined in GUI/Components/Container.h:87


function
GUI::Container::Container

public
     
     
Container( GUI_Manager & gui,
  flag_t flags
)    

Defined in GUI/Components/Container.h:25


function
GUI::Container::Container

public
     
     
Container( GUI_Manager & gui,
  const Geometry::Rect & r,
  flag_t flags
)    

Defined in GUI/Components/Container.h:26


function
GUI::Container::_addChild

public inline
     
     
void _addChild( const Ref & child )

Defined in GUI/Components/Container.h:34


function
GUI::Container::_insertAfter

public
     
     
void _insertAfter( const Ref & child,
  const Ref & after
)    

Defined in GUI/Components/Container.h:35


function
GUI::Container::_insertBefore

public
     
     
void _insertBefore( const Ref & child,
  const Ref & before
)    

Defined in GUI/Components/Container.h:36


function
GUI::Container::_removeChild

public
     
     
void _removeChild( const Ref & child )

Defined in GUI/Components/Container.h:37


function
GUI::Container::getFirstChild

public const inline
   
   
Component * getFirstChild( ) const

Defined in GUI/Components/Container.h:39


function
GUI::Container::getLastChild

public const inline
   
   
Component * getLastChild( ) const

Defined in GUI/Components/Container.h:40


function
GUI::Container::childRectChanged

public
     
     
void childRectChanged( Component * c )

This is called by a childcwhenever its rect is changed, it’s added or it’s removed. The LAYOUT_VALID flag is cleared.

Defined in GUI/Components/Container.h:44


function
GUI::Container::addContent

public inline virtual
     
     
void addContent( const Ref & child )

Defined in GUI/Components/Container.h:47


function
GUI::Container::removeContent

public inline virtual
     
     
void removeContent( const Ref & child )

Defined in GUI/Components/Container.h:49


function
GUI::Container::clearContents

public virtual
   
   
void clearContents( )

Defined in GUI/Components/Container.h:51


function
GUI::Container::destroyContents

public
   
   
void destroyContents( )

Remove all children and mark them for removal . The childrens’ subtrees will be dissolved and their attributes will be removed.

Note: this does (or should not) not remove the internal children like scroll bars.

Defined in GUI/Components/Container.h:56


function
GUI::Container::getContentsCount

public const inline virtual
   
   
size_t getContentsCount( ) const

Defined in GUI/Components/Container.h:59


function
GUI::Container::bringChildToFront

public virtual
     
     
void bringChildToFront( Component * c )

Defined in GUI/Components/Container.h:61


function
GUI::Container::getContents

public virtual
   
   
std::vector< Component * > getContents( )

Defined in GUI/Components/Container.h:63


function
GUI::Container::insertAfter

public inline virtual
     
     
void insertAfter( const Ref & child,
  const Ref & after
)    

Defined in GUI/Components/Container.h:65


function
GUI::Container::insertBefore

public inline virtual
     
     
void insertBefore( const Ref & child,
  const Ref & after
)    

Defined in GUI/Components/Container.h:69


function
GUI::Container::toString

public const virtual
   
   
std::string toString( ) const

Defined in GUI/Components/Container.h:74


function
GUI::Container::traverseChildren

public virtual
     
     
visitorResult_t traverseChildren( Visitor & v )

Defined in GUI/Components/Container.h:75


function
GUI::Container::traverseSubtree

public virtual
     
     
visitorResult_t traverseSubtree( Visitor & v )

Defined in GUI/Components/Container.h:76


function
GUI::Container::~Container

protected virtual
   
   
~Container( )

Defined in GUI/Components/Container.h:31


function
GUI::Container::displayChildren

protected
     
     
void displayChildren( const Geometry::Rect & region,
  bool useScissor
)    

Defined in GUI/Components/Container.h:82


function
GUI::Container::copyChildrenTo

protected const
     
     
void copyChildrenTo( Container & target ) const

Defined in GUI/Components/Container.h:83