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 () |
void glictList::AddObject | ( | glictContainer * | obj | ) | [virtual] |
Adds an object as a child.
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...) |
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.
obj | Pointer to object to remove. |
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.
w | Width to which the object should be set. |
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().