#include <Collection.h>
Public Types | |
| typedef std::vector< Face * > | Childs |
| typedef std::vector< Face * > ::iterator | ChildIterator |
Public Member Functions | |
| float | GetChildLeft () const |
| float | GetChildTop () const |
| float | GetChildRight () const |
| float | GetChildBottom () const |
| float | GetChildWidth () const |
| float | GetChildHeight () const |
| virtual ml7::Vector2 | GetChildOffset () const |
| virtual ml7::Vector2 | GetChildSize () const |
Protected Member Functions | |
| Collection (const unsigned face_class_id, Shell *const shell, const Config::Face &cfg) | |
| virtual | ~Collection (void) |
| size_t | _GetChildCount () const |
| Face * | _GetChild (size_t index) const |
| size_t | _FindChild (Face *child) const |
| bool | _ContainsChild (Face *child) const |
| bool | _AddChild (Face *child) |
| bool | _RemoveChild (Face *child) |
| void | _RemoveAllChilds () |
| Face * | _GetChildAt (const ml7::Vector2 &client_position) const |
| void | InitializeChildFaces () |
Protected Attributes | |
| float | _child_left |
| float | _child_top |
| float | _child_right |
| float | _child_bottom |
The base class for collections (containers such as windows, group boxes, etc.; and fusions like scroll bars, drop down boxes, etc.).
| typedef std::vector<Face*>::iterator fl7::faces::Collection::ChildIterator |
| typedef std::vector<Face*> fl7::faces::Collection::Childs |
| fl7::faces::Collection::Collection | ( | const unsigned | face_class_id, | |
| Shell *const | shell, | |||
| const Config::Face & | cfg | |||
| ) | [explicit, protected] |
Explicit constructor.
| fl7::faces::Collection::~Collection | ( | void | ) | [protected, virtual] |
Destructor.
| bool fl7::faces::Collection::_AddChild | ( | Face * | child | ) | [protected] |
Adds a given face as child face.
| bool fl7::faces::Collection::_ContainsChild | ( | Face * | child | ) | const [protected] |
Checks whether a given face is contained as child face.
| size_t fl7::faces::Collection::_FindChild | ( | Face * | child | ) | const [protected] |
Finds a given face if it is contained as child face and returns its index.
| Face* fl7::faces::Collection::_GetChild | ( | size_t | index | ) | const [inline, protected] |
Returns a child face given by its index.
| Face * fl7::faces::Collection::_GetChildAt | ( | const ml7::Vector2 & | client_position | ) | const [protected] |
Returns the ("first" visible) face at a given position in client coordinates.
| size_t fl7::faces::Collection::_GetChildCount | ( | ) | const [inline, protected] |
Returns the number of underlying faces.
| void fl7::faces::Collection::_RemoveAllChilds | ( | ) | [protected] |
Removes all child faces from this container.
| bool fl7::faces::Collection::_RemoveChild | ( | Face * | child | ) | [protected] |
Removes a given child face.
| float fl7::faces::Collection::GetChildBottom | ( | ) | const [inline] |
Returns the bottom offset of the child area.
| float fl7::faces::Collection::GetChildHeight | ( | ) | const [inline] |
Returns the height of the child area.
| float fl7::faces::Collection::GetChildLeft | ( | ) | const [inline] |
Returns the left offset of the child area.
| virtual ml7::Vector2 fl7::faces::Collection::GetChildOffset | ( | ) | const [inline, virtual] |
Returns the offset of the child area in relation to the upper-left corner.
| float fl7::faces::Collection::GetChildRight | ( | ) | const [inline] |
Returns the right offset of the child area.
| virtual ml7::Vector2 fl7::faces::Collection::GetChildSize | ( | ) | const [inline, virtual] |
Returns the size of the child area.
| float fl7::faces::Collection::GetChildTop | ( | ) | const [inline] |
Returns the top offset of the child area.
| float fl7::faces::Collection::GetChildWidth | ( | ) | const [inline] |
Returns the width of the child area.
| void fl7::faces::Collection::InitializeChildFaces | ( | ) | [protected] |
Call this method from the constructors of derived classes for initialization purposes of the child faces of this collection. This method also calls UpdateDisplay automatically. Unfortunately, InitializeChildFaces cannot be called automatically from the constructor of this collection base class, because it would then be called earlier than the constructor of any derived class. So, the concrete object instance would not have been constructed completely.
float fl7::faces::Collection::_child_bottom [protected] |
The bottom offset of the child area.
float fl7::faces::Collection::_child_left [protected] |
The left offset of the child area.
float fl7::faces::Collection::_child_right [protected] |
The right offset of the child area.
float fl7::faces::Collection::_child_top [protected] |
The top offset of the child area.
1.7.1