Public Member Functions | Public Attributes | Protected Member Functions

fl7::faces::Container Class Reference

#include <Container.h>

Inheritance diagram for fl7::faces::Container:
fl7::faces::Collection fl7::faces::Face fl7::faces::GroupBox

List of all members.

Public Member Functions

 Container (Shell *const shell)
virtual ~Container (void)
size_t GetChildCount () const
FaceGetChild (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 ()
FaceGetChildAt (const ml7::Vector2 &client_position) const

Public Attributes

events::EventHandler
< events::ChildEventArgs
OnAddChildEventHandler
events::EventHandler
< events::ChildEventArgs
OnRemoveChildEventHandler
friend Shell

Protected Member Functions

 Container (const unsigned face_class_id, Shell *const shell, const Config::Face &cfg)

Detailed Description

The base class for containers (windows, group boxes, etc.).


Constructor & Destructor Documentation

fl7::faces::Container::Container ( const unsigned  face_class_id,
Shell *const   shell,
const Config::Face cfg 
) [explicit, protected]

Explicit constructor.

fl7::faces::Container::Container ( Shell *const   shell  ) 

Explicit constructor.

fl7::faces::Container::~Container ( void   )  [virtual]

Destructor.


Member Function Documentation

bool fl7::faces::Container::AddChild ( Face child  ) 

Adds a given face as child face.

bool fl7::faces::Container::ContainsChild ( Face child  )  const [inline]

Checks whether a given face is contained as child face.

size_t fl7::faces::Container::FindChild ( Face child  )  const [inline]

Finds a given face if it is contained as child face and returns its index.

Face* fl7::faces::Container::GetChild ( size_t  index  )  const [inline]

Returns a child face given by its index.

Face* fl7::faces::Container::GetChildAt ( const ml7::Vector2 client_position  )  const [inline]

Returns the ("first" visible) face at a given position in client coordinates.

size_t fl7::faces::Container::GetChildCount (  )  const [inline]

Returns the number of underlying faces.

void fl7::faces::Container::RemoveAllChilds (  ) 

Removes all child faces from this container.

bool fl7::faces::Container::RemoveChild ( Face child  ) 

Removes a given child face.


Member Data Documentation

Will be called after a child has been added to this container.

Will be called after a child has been removed from this container.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines