glictList Class Reference

Inheritance diagram for glictList:

glictPanel glictContainer

List of all members.


Detailed Description

Definition at line 25 of file list.h.


Public Member Functions

void AddObject (glictContainer *object)
 Adds an object as a child.
 glictList ()
void RemoveObject (glictContainer *object)
 Removes an object that's a child.
void SetWidth (float w)
 Sets object's width.
 ~glictList ()

Member Function Documentation

void glictList::AddObject ( glictContainer obj  )  [virtual]

Adds an object as a child.

Parameters:
obj Pointer to object to add as a child. Simply inserts the passed object pointer into a vector/list of objects, also giving the child object a "this" as a parent, so the child knows who gave birth to it. Also tells it to ResetTransformations, which'd be incorrect at display, but lets us get rid of it at init time. (Oh, dear, no more biology...)
See also:
RemoveObject

Reimplemented from glictContainer.

Definition at line 27 of file list.cpp.

References glictContainer::AddObject(), glictContainer::objects, glictPanel::SetVirtualSize(), SetWidth(), and glictContainer::width.

void glictList::RemoveObject ( glictContainer object  )  [virtual]

Removes an object that's a child.

Parameters:
obj Pointer to object to remove.
Adds the object to delayed-remove vector, which means the object will be removed upon next call to CPaint() before real painting. Note: object stored in pointer is not touched and if dynamically created it must be manually cleaned up.

See also:
AddObject(glictContainer* obj)

Reimplemented from glictContainer.

Definition at line 38 of file list.cpp.

References glictContainer::objects, glictContainer::RemoveObject(), and glictContainer::SetHeight().

void glictList::SetWidth ( float  w  )  [virtual]

Sets object's width.

Parameters:
w Width to which the object should be set.
This function sets up the current object's height and the object's boundaries properly, to whatever values they should be set.
See also:
SetHeight(float h), GetSize(glictSize* size)

Reimplemented from glictContainer.

Definition at line 55 of file list.cpp.

References glictPos::h, glictContainer::height, glictContainer::objects, glictContainer::SetWidth(), and glictContainer::virtualsize.

Referenced by AddObject().


The documentation for this class was generated from the following files:
SourceForge.net Logo
generated with doxygen 1.5.3 on Mon Oct 29 18:09:27 2007