Public Member Functions | |
Container () | |
Container (const Container &rhs) | |
Container & | operator= (const Container &rhs) |
void | swap (Container &rhs) throw () |
virtual | ~Container () |
bool | isContainer () const |
virtual bool | isRootContainer () const |
bool | hasChildren () const |
void | setEnabled (bool enable) |
virtual const util::Dimension & | getPreferredSize () const |
virtual void | remove (Component *component) |
void | removeAll () |
Component * | getChild (int n) const |
int | getNumberOfChildren () const |
virtual void | add (Component *comp, int constraints=-1) |
void | setLayout (layout::LayoutManager *newLayout) |
void | validate () |
virtual void | updateComponent (float deltaTime) |
Protected Member Functions | |
void | addImpl (Component *component, int constraints) |
void | removeImpl (Component *component) |
virtual void | paintComponent (Graphics &g) |
void | paintChildren (Container *parent, Graphics &g) |
virtual void | paintChildren (Graphics &g) |
|
Constructor. |
|
Copy constructor. |
|
Destructor. |
|
Assignment operator. |
|
Returns true if this Component is a Container or not. Reimplemented from ui::Component. |
|
Returns wether this Container is a top level Container. Reimplemented from ui::Component. Reimplemented in ui::Window. |
|
Returns true if this container has children. |
|
Enables or disables this Component. Disabling the Component makes this Component ignore any user input (that is, mouse and key events generated by a user). Reimplemented from ui::Component. |
|
Returns the preferred size for this Container. Reimplemented from ui::Component. |
|
Remove the specified Component. Reimplemented in ui::Window. |
|
Remove all containers children. |
|
Returns the Component at n. N means the depth level of the Container.
|
|
Returns the number of components in the container.
|
|
Add a Component to this Container with given constraint. Can be overridden to create custom containers.
Reimplemented in ui::Window. |
|
Sets the LayoutManager for this Container.
|
|
Validates this Component. Reimplemented from ui::Component. |
|
Update, for time based motion. After updating, it calls all the update methods on it's children.
Reimplemented from ui::Component. Reimplemented in ui::Window. |
|
Add a Component to this Container. This method should not be overridden, as it is used by add(Component *comp). |
|
Removes a Component from this Container. This is the implementation of the normal remove function (which can be overridden). |
|
Paint this Component and it's children.
Reimplemented from ui::Component. |
|
Paints the Children of this Container. |
|
Draws all the child components of this element. Method can be overridden to enhance or modify the drawing routine. Reimplemented from ui::Component. Reimplemented in ui::Window. |