#include <Container.h>
Inheritance diagram for Motoko::Container:
Public Member Functions | |
Container () | |
Container (const char *name, SDL_Rect rect, ControlBackStyle backstyle, Uint32 backcolor, ControlSkin *appearance=NULL, SDL_Surface *picture=NULL, SDL_Surface *mousepointer=NULL, bool transparency=false, bool enable=true, bool visible=true) | |
Container (const Container &obj) | |
virtual Container & | operator= (const Container &obj) |
~Container () | |
virtual Container & | CopyFrom (const Container &obj) |
This function copies obj in the actual object. | |
int | AddControl (Control *control) |
Add a control in the container. | |
int | AddControlRel (Control *control) |
Add a control in the container. | |
void | RemoveControl (const char *name) |
Remove a control in the container. | |
void | Free (void) |
Remove all the controls in the container. | |
Control * | GetControl (const char *name) |
Get a control in the list. | |
int | GetSize (void) |
Get the number of controls in the list. | |
Control * | GetControl (int pos) |
Get a pointer to a control. | |
virtual SDL_Surface * | GetMousePointer (void) |
Get the mouse pointer of the control. | |
virtual void | SetX (Sint16 val) |
Set the coordinate X of the control. | |
virtual void | SetY (Sint16 val) |
Set the coordinate Y of the control. | |
virtual void | SetRect (SDL_Rect &val) |
Set the rect of the control. | |
Protected Member Functions | |
void | UpdateIncX (Sint16 inc) |
This function update the controls of the container. | |
void | UpdateIncY (Sint16 inc) |
This function update the controls of the container. |
Motoko::Container::Container | ( | ) |
Container constructor.
Motoko::Container::Container | ( | const char * | name, | |
SDL_Rect | rect, | |||
ControlBackStyle | backstyle, | |||
Uint32 | backcolor, | |||
ControlSkin * | appearance = NULL , |
|||
SDL_Surface * | picture = NULL , |
|||
SDL_Surface * | mousepointer = NULL , |
|||
bool | transparency = false , |
|||
bool | enable = true , |
|||
bool | visible = true | |||
) |
Container constructor.
Motoko::Container::~Container | ( | ) |
Container destructor.
This function copies obj in the actual object.
obj | Object to copy. |