#include <CheckButton.h>
Inheritance diagram for Motoko::CheckButton:
Public Member Functions | |
CheckButton () | |
CheckButton (const char *name, SDL_Rect rect, ControlBackStyle backstyle, Uint32 backcolor, const char *text, CRM32Pro_CFont *font, ControlSkin *appearance=NULL, SDL_Surface *picture=NULL, SDL_Surface *mousepointer=NULL, AlignmentStyle alignment=Left, SDL_Surface *picturechecked=NULL, bool checked=false, bool transparency=false, bool enable=true, bool visible=true) | |
CheckButton (const CheckButton &obj) | |
virtual CheckButton & | operator= (const CheckButton &obj) |
~CheckButton () | |
virtual void | Draw (void) |
This function draw the control. | |
virtual bool | Update (SDL_Event &event) |
This function update the control. | |
virtual CheckButton & | CopyFrom (const CheckButton &obj) |
This function copies obj in the actual object. | |
void | UpdateRects (void) |
This function update the rects in the actual object. | |
bool | GetValue (void) |
Get the value of the control. | |
SDL_Surface * | GetPictureChecked (void) |
Get the picture when the value is true 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. | |
void | SetValue (bool val) |
Set the value of the control. | |
void | SetPictureChecked (SDL_Surface *val) |
Set the picture when the value is true the control. |
Motoko::CheckButton::CheckButton | ( | ) |
CheckButton constructor.
Motoko::CheckButton::CheckButton | ( | const char * | name, | |
SDL_Rect | rect, | |||
ControlBackStyle | backstyle, | |||
Uint32 | backcolor, | |||
const char * | text, | |||
CRM32Pro_CFont * | font, | |||
ControlSkin * | appearance = NULL , |
|||
SDL_Surface * | picture = NULL , |
|||
SDL_Surface * | mousepointer = NULL , |
|||
AlignmentStyle | alignment = Left , |
|||
SDL_Surface * | picturechecked = NULL , |
|||
bool | checked = false , |
|||
bool | transparency = false , |
|||
bool | enable = true , |
|||
bool | visible = true | |||
) |
CheckButton constructor.
Motoko::CheckButton::CheckButton | ( | const CheckButton & | obj | ) |
CheckButton copy constructor.
Motoko::CheckButton::~CheckButton | ( | ) |
CheckButton destructor.
CheckButton & Motoko::CheckButton::CopyFrom | ( | const CheckButton & | obj | ) | [virtual] |
This function copies obj in the actual object.
obj | Object to copy. |
CheckButton & Motoko::CheckButton::operator= | ( | const CheckButton & | obj | ) | [virtual] |
CheckButton operator =.