Motoko::Container Class Reference

Class that represents a generic container. More...

#include <Container.h>

Inheritance diagram for Motoko::Container:

Motoko::Control Motoko::Dialog Motoko::Panel List of all members.

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 Containeroperator= (const Container &obj)
 ~Container ()
virtual ContainerCopyFrom (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.
ControlGetControl (const char *name)
 Get a control in the list.
int GetSize (void)
 Get the number of controls in the list.
ControlGetControl (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.

Detailed Description

Class that represents a generic container.


Constructor & Destructor Documentation

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 ( const Container obj  ) 

Container copy constructor.

Motoko::Container::~Container (  ) 

Container destructor.


Member Function Documentation

Container & Motoko::Container::CopyFrom ( const Container obj  )  [virtual]

This function copies obj in the actual object.

Parameters:
obj Object to copy.
Returns:
A reference to the actual object.

Container & Motoko::Container::operator= ( const Container obj  )  [virtual]

Container operator =.


The documentation for this class was generated from the following files:
Generated on Mon Jul 17 18:33:49 2006 for Motoko by  doxygen 1.4.7