Motoko::Button Class Reference

Class that represents a generic button. More...

#include <Button.h>

Inheritance diagram for Motoko::Button:

Motoko::Control Motoko::ITextControl List of all members.

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 Buttonoperator= (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 ButtonCopyFrom (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.

Detailed Description

Class that represents a generic button.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

This function copies obj in the actual object.

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

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

PictureBox 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