![]() |
DrawCaml
|
#include <container.h>


Public Member Functions | |
| SContainer (SLayout lay, int width=1, int height=1) | |
| void | updateWin (SWindow *win) |
| virtual void | draw (SWindow *win, int drawX, int drawY) |
| virtual void | setSize (int sizeX, int sizeY) |
| void | removeElem (SElement *elt) |
| void | addElem (SElement *elt, int posX=-1, int posY=-1) |
| void | setBgColor (string bgColor) |
Public Attributes | |
| SLayout | mLayout |
| vector< SElement * > | mElements |
| string | mBgColorStr = "white" |
| XColor | mBgColor |
Public Attributes inherited from SElement | |
| int | mPosX |
| int | mPosY |
| int | mSizeX = 0 |
| int | mSizeY = 0 |
| SWindow * | mWin |
Class used to manage other elements. Code for Drawcaml.dcontainer
| void SContainer::addElem | ( | SElement * | elt, |
| int | posX = -1, |
||
| int | posY = -1 |
||
| ) |
Add an element from the container. (Be careful to call draw after to see the changes)
|
virtual |
| void SContainer::removeElem | ( | SElement * | elt | ) |
Remove an element from the container. (Be careful to call draw after to see the changes)
| void SContainer::setBgColor | ( | string | bgColor | ) |
Set the background color of the container.
|
virtual |
Set the size of the container
Reimplemented from SElement.
| void SContainer::updateWin | ( | SWindow * | win | ) |
Re-generate the color according to the GC of the window.
| vector<SElement*> SContainer::mElements |
Elements managed by the container
| SLayout SContainer::mLayout |
Layout of the container