#include <Control.h>
Inheritance diagram for Motoko::Control:
Public Member Functions | |
Control () | |
Control (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) | |
Control (const Control &obj) | |
virtual Control & | operator= (const Control &obj) |
~Control () | |
virtual Control & | CopyFrom (const Control &obj) |
This function copies obj in the actual object. | |
virtual bool | IsCursorOver (void) |
This function looks if the cursor is over the control. | |
void | GetFocus (void) |
This function is to get the focus for the control. | |
SDL_KEY_EVENT | GetKeyDown (void) |
Get the key down function of the control. | |
SDL_KEY_EVENT | GetKeyUp (void) |
Get the key up function of the control. | |
SDL_MOUSEMOTION_EVENT | GetMouseMotion (void) |
Get the mouse motion function of the control. | |
SDL_MOUSEBUTTON_EVENT | GetMouseButtonDown (void) |
Get the mouse button down function of the control. | |
SDL_MOUSEBUTTON_EVENT | GetMouseButtonUp (void) |
Get the mouse button up function of the control. | |
void | SetKeyDown (SDL_KEY_EVENT val) |
Set the key down function of the control. | |
void | SetKeyUp (SDL_KEY_EVENT val) |
Set the key up function of the control. | |
void | SetMouseMotion (SDL_MOUSEMOTION_EVENT val) |
Set the mouse motion function of the control. | |
void | SetMouseButtonDown (SDL_MOUSEBUTTON_EVENT val) |
Set the mouse button down function of the control. | |
void | SetMouseButtonUp (SDL_MOUSEBUTTON_EVENT val) |
Set the mouse button up function of the control. | |
const char * | GetName (void) |
Get the name of the control. | |
Sint16 | GetX (void) |
Get the coordinate X of the control. | |
Sint16 | GetY (void) |
Get the coordinate Y of the control. | |
Uint16 | GetWidth (void) |
Get the width of the control. | |
Uint16 | GetHeight (void) |
Get the height of the control. | |
ControlBackStyle | GetBackStyle (void) |
Get the back style of the control. | |
ControlSkin * | GetAppearance (void) |
Get the appearance of the control. | |
Uint32 | GetBackColor (void) |
Get the back color of the control. | |
SDL_Surface * | GetPicture (void) |
Get the picture of the control. | |
virtual SDL_Surface * | GetMousePointer (void) |
Get the mouse pointer of the control. | |
bool | GetEnable (void) |
Get if the control is enable. | |
bool | GetVisible (void) |
Get if the control is visible. | |
bool | GetTransparency (void) |
Get if the control is transparent. | |
const char * | GetType (void) |
Get the type of the control. | |
virtual void | SetName (const char *val) |
Set the name 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 | SetWidth (Uint16 val) |
Set the width of the control. | |
virtual void | SetHeight (Uint16 val) |
Set the height of the control. | |
virtual void | SetRect (SDL_Rect &val) |
Set the rect of the control. | |
virtual void | SetBackStyle (ControlBackStyle val) |
Set the back style of the control. | |
virtual void | SetAppearance (ControlSkin *val) |
Set the appearance of the control. | |
virtual void | SetBackColor (Uint32 val) |
Set the back color of the control. | |
virtual void | SetPicture (SDL_Surface *val) |
Set the picture of the control. | |
virtual void | SetMousePointer (SDL_Surface *val) |
Set the mouse pointer of the control. | |
virtual void | SetEnable (bool val) |
Set if the control is enable. | |
virtual void | SetVisible (bool val) |
Set if the control is visible. | |
virtual void | SetTransparency (bool val) |
Set if the control is transparent. |
Motoko::Control::Control | ( | ) |
Control constructor.
Motoko::Control::Control | ( | 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 | |||
) |
Control constructor.
Motoko::Control::~Control | ( | ) |
Control destructor.
This function copies obj in the actual object.
obj | Object to copy. |