#include <Button.h>
Inheritance diagram for Motoko::Button:
Public Member Functions | |
Button () | |
Button (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 *over=NULL, SDL_Surface *down=NULL, ButtonArrow arrow=NoneArrow, SDL_Surface *mousepointer=NULL, AlignmentStyle alignment=Left, bool transparency=false, bool enable=true, bool visible=true) | |
Button (const Button &obj) | |
virtual Button & | operator= (const Button &obj) |
~Button () | |
virtual void | Draw (void) |
This function draw the control. | |
virtual bool | Update (SDL_Event &event) |
This function update the control. | |
virtual Button & | CopyFrom (const Button &obj) |
This function copies obj in the actual object. | |
void | UpdateRects (void) |
This function update the rects in the actual object. | |
ButtonArrow | GetArrow (void) |
Get the arrow of the control. | |
SDL_Surface * | GetPictureOver (void) |
Get the picture when the mouse is over the control. | |
SDL_Surface * | GetPictureDown (void) |
Get the picture when the mouse click 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 | SetArrow (ButtonArrow val) |
Set the arrow of the control. | |
void | SetPictureOver (SDL_Surface *val) |
Set the picture when the mouse is over the control. | |
void | SetPictureDown (SDL_Surface *val) |
Set the picture when the mouse click the control. |
Motoko::Button::Button | ( | ) |
PictureBox constructor.
Motoko::Button::Button | ( | 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 * | over = NULL , |
|||
SDL_Surface * | down = NULL , |
|||
ButtonArrow | arrow = NoneArrow , |
|||
SDL_Surface * | mousepointer = NULL , |
|||
AlignmentStyle | alignment = Left , |
|||
bool | transparency = false , |
|||
bool | enable = true , |
|||
bool | visible = true | |||
) |
PictureBox constructor.
Motoko::Button::Button | ( | const Button & | obj | ) |
PictureBox copy constructor.
Motoko::Button::~Button | ( | ) |
PictureBox destructor.
This function copies obj in the actual object.
obj | Object to copy. |
PictureBox operator =.