VCF::Container Class Reference
A Container is a Component that is implemented when a Control wants to be able to contain other child controls within itself. More...
#include <vcf/ApplicationKit/Container.h>
Inheritance diagram for VCF::Container:

Public Member Functions | |
| Container () | |
| Container (Component *owner) | |
| virtual | ~Container () |
| virtual void | add (Control *child)=0 |
| adds a child control to this container | |
| virtual void | add (Control *child, const AlignmentType &alignment)=0 |
| adds a child control using the specified AlignmentType. | |
| virtual void | insertBeforeControl (Control *child, const AlignmentType &alignment, Control *beforeControl)=0 |
| inserts a child control into this container before the control specified in beforeControl. | |
| virtual void | insertAtIndex (Control *child, const AlignmentType &alignment, const uint32 &index)=0 |
| inserts a child control into this container after the specified index. | |
| virtual void | sendControlToFront (Control *child)=0 |
| Sends the specified child to the first position in containers list. | |
| virtual void | sendControlToBack (Control *child)=0 |
| Sends the specified child to the last position in containers list. | |
| virtual void | remove (Control *child)=0 |
| removes the child control from the container - does NOT delete the control | |
| virtual void | clear ()=0 |
| removes all child controls | |
| virtual Enumerator< Control * > * | getChildren ()=0 |
| returns an Enumerator of controls that represents all the children in this container. | |
| virtual void | paintChildren (GraphicsContext *context)=0 |
| Paints all children of this container. | |
| virtual uint32 | getChildCount ()=0 |
| returns the numer of child controls that this container has. | |
| virtual Control * | findControl (const String &controlName)=0 |
| searches through all the child controls of this container. | |
| virtual void | resizeChildren (Control *control)=0 |
| resizes all the children, according to their alignment types and anchor values. | |
| virtual Control * | getControlAtIndex (const uint32 &index)=0 |
| virtual int32 | getControlIndex (Control *control)=0 |
| virtual void | updateTabOrder (Control *child, uint32 &newTabOrder)=0 |
| virtual void | getTabList (std::vector< Control * > &tabList)=0 |
| virtual void | setContainerControl (Control *control)=0 |
| Sets the control that this container is attached to and responds to events from. | |
| virtual Control * | getContainerControl ()=0 |
Detailed Description
A Container is a Component that is implemented when a Control wants to be able to contain other child controls within itself.A container can have child controls added or removed, and supports searching all of it's child controls by name. In addition a container has methods for enumerating all of it's children and a method for explicitly resizing all of the children
Constructor & Destructor Documentation
|
|
|
|
|
|
|
|
|
Member Function Documentation
|
||||||||||||
|
adds a child control using the specified AlignmentType. The child's alignment also will get set to this value.
Implemented in VCF::AbstractContainer. |
|
|
adds a child control to this container
Implemented in VCF::AbstractContainer. |
|
|
removes all child controls
Implemented in VCF::AbstractContainer. |
|
|
searches through all the child controls of this container. The first child control whose name matches the name passed in is returned as a result of the search. If the container ahs no children, or none of the child controls have a name that matches then NULL is returned.
Implemented in VCF::AbstractContainer. |
|
|
returns the numer of child controls that this container has.
Implemented in VCF::AbstractContainer. |
|
|
returns an Enumerator of controls that represents all the children in this container.
Implemented in VCF::AbstractContainer. |
|
|
Implemented in VCF::AbstractContainer. |
|
|
Implemented in VCF::AbstractContainer. |
|
|
Implemented in VCF::AbstractContainer. |
|
|
Implemented in VCF::AbstractContainer. |
|
||||||||||||||||
|
inserts a child control into this container after the specified index. If the child is already present then it's order in the container list is modified accordingly. If the index specified is not within the container list's bounds then the child is added at the end of the list Implemented in VCF::AbstractContainer. |
|
||||||||||||||||
|
inserts a child control into this container before the control specified in beforeControl. If the child is already present then it's order in the container list is modified accordingly. If the beforeControl control is not found in the list of children then the child is added at the beginning of the list Implemented in VCF::AbstractContainer. |
|
|
Paints all children of this container.
Implemented in VCF::AbstractContainer. |
|
|
removes the child control from the container - does NOT delete the control
Implemented in VCF::AbstractContainer. |
|
|
resizes all the children, according to their alignment types and anchor values. Usually called by the implementing container control when it is resized.
Implemented in VCF::ColumnLayoutContainer, VCF::StandardContainer, VCF::DesignTimeContainer, and VCF::HorizontalLayoutContainer. |
|
|
Sends the specified child to the last position in containers list.
Implemented in VCF::AbstractContainer. |
|
|
Sends the specified child to the first position in containers list.
Implemented in VCF::AbstractContainer. |
|
|
Sets the control that this container is attached to and responds to events from.
Implemented in VCF::AbstractContainer. |
|
||||||||||||
|
Implemented in VCF::AbstractContainer. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/Container.h
