Motoko::CheckButton Class Reference

Class that represents a generic label box. More...

#include <CheckButton.h>

Inheritance diagram for Motoko::CheckButton:

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

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 CheckButtonoperator= (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 CheckButtonCopyFrom (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.

Detailed Description

Class that represents a generic label box.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

This function copies obj in the actual object.

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

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

CheckButton 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