Motoko::Dialog Class Reference

Class that represents a generic dialog. More...

#include <Dialog.h>

Inheritance diagram for Motoko::Dialog:

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

Public Member Functions

 Dialog ()
 Dialog (const char *name, SDL_Rect rect, ControlBackStyle backstyle, Uint32 backcolor, Uint32 titlecolor, const char *text, CRM32Pro_CFont *font, ControlSkin *appearance=NULL, SDL_Surface *picture=NULL, SDL_Surface *mousepointer=NULL, AlignmentStyle alignment=Left, bool transparency=false, bool enable=true, bool visible=true)
 Dialog (const Dialog &obj)
virtual Dialogoperator= (const Dialog &obj)
 ~Dialog ()
virtual void Draw (void)
 This function draw the control.
virtual bool Update (SDL_Event &event)
 This function update the control.
virtual DialogCopyFrom (const Dialog &obj)
 This function copies obj in the actual object.
virtual void UpdateRects (void)
 This function update the rects in the actual object.
Uint32 GetTitleColor (void)
 Get the title color of the control.
ButtonGetClose (void)
 Get the close button 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 SetTitleColor (Uint32 val)
 Set the title color of the control.
virtual void SetName (const char *val)
 Set the name of the control.
virtual void SetBackStyle (ControlBackStyle val)
 Set the back style of the control.
virtual void SetBackColor (Uint32 dialog, Uint32 button)
 Set the back color of the control.
void SetAppearance (ControlSkin *dialog, ControlSkin *button)
 Set the appearance of the control.
virtual void SetBackColor (Uint32 val)
 Set the back color of the control.
virtual void SetAppearance (ControlSkin *val)
 Set the appearance of the control.

Detailed Description

Class that represents a generic dialog.


Constructor & Destructor Documentation

Motoko::Dialog::Dialog (  ) 

Dialog constructor.

Motoko::Dialog::Dialog ( const char *  name,
SDL_Rect  rect,
ControlBackStyle  backstyle,
Uint32  backcolor,
Uint32  titlecolor,
const char *  text,
CRM32Pro_CFont *  font,
ControlSkin appearance = NULL,
SDL_Surface *  picture = NULL,
SDL_Surface *  mousepointer = NULL,
AlignmentStyle  alignment = Left,
bool  transparency = false,
bool  enable = true,
bool  visible = true 
)

Dialog constructor.

Motoko::Dialog::Dialog ( const Dialog obj  ) 

Dialog copy constructor.

Motoko::Dialog::~Dialog (  ) 

Dialog destructor.


Member Function Documentation

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

This function copies obj in the actual object.

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

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

Dialog operator =.


The documentation for this class was generated from the following files:
Generated on Mon Jul 17 18:33:50 2006 for Motoko by  doxygen 1.4.7