Motoko::ControlListBox Class Reference

Class that represents a generic control list box. More...

#include <ControlListBox.h>

Inheritance diagram for Motoko::ControlListBox:

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

Public Member Functions

 ControlListBox ()
 ControlListBox (const char *name, SDL_Rect rect, ControlBackStyle backstyle, Uint32 backcolor, ControlSkin *appearance=NULL, SDL_Surface *picture=NULL, SDL_Surface *mousepointer=NULL, bool transparency=false, Uint32 selcolor=0x00000000, bool multisel=false, bool enable=true, bool visible=true)
 ControlListBox (const ControlListBox &obj)
virtual ControlListBoxoperator= (const ControlListBox &obj)
 ~ControlListBox ()
virtual void Draw (void)
 This function draw the control.
virtual bool Update (SDL_Event &event)
 This function update the control.
virtual ControlListBoxCopyFrom (const ControlListBox &obj)
 This function copies obj in the actual object.
virtual void UpdateRects (void)
 This function update the rects in the actual object.
int AddControl (Control *control)
 Add a control in the container.
void RemoveControl (const char *name)
 Remove a control in the container.
void Free (void)
 Remove all the controls in the container.
ControlGetControl (const char *name)
 Get a control in the list.
int GetSize (void)
 Get the number of controls in the list.
ControlGetControl (int pos)
 Get a pointer to a control.
virtual SDL_Surface * GetMousePointer (void)
 Get the mouse pointer of the control.
bool GetMultiSelect (void)
 Get if the control is multiselect.
list< int > * GetSelectedItems (void)
 Get the selected items of the list.
Uint32 GetSelColor (void)
 Get the color of selection of the list.
VScrollBarGetVBar (void)
 Get the VBar of the control.
virtual void SetMultiSelect (bool val)
 Set if the control is multiselect.
virtual void SetNoSelectedItems (void)
 Set no selected items of the list.
virtual void SetSelColor (Uint32 val)
 Set the color of selection of the list.
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 box, Uint32 scrolls)
 Set the back color of the control.
void SetAppearance (ControlSkin *box, ControlSkin *vscroll, ControlSkin *button)
 Set the appearance of the control.
virtual void SetBackColor (Uint32 val)
 Set the back color of the control.
void SetAppearance (ControlSkin *val)
 Set the appearance of the control.

Protected Member Functions

void UpdateValues (void)
 This function update the values of the scrollbars.
void DrawList (void)
 This function draw the items of the control.

Detailed Description

Class that represents a generic control list box.


Constructor & Destructor Documentation

Motoko::ControlListBox::ControlListBox (  ) 

ListBox constructor.

Motoko::ControlListBox::ControlListBox ( const char *  name,
SDL_Rect  rect,
ControlBackStyle  backstyle,
Uint32  backcolor,
ControlSkin appearance = NULL,
SDL_Surface *  picture = NULL,
SDL_Surface *  mousepointer = NULL,
bool  transparency = false,
Uint32  selcolor = 0x00000000,
bool  multisel = false,
bool  enable = true,
bool  visible = true 
)

ListBox constructor.

Motoko::ControlListBox::ControlListBox ( const ControlListBox obj  ) 

ControlListBox copy constructor.

Motoko::ControlListBox::~ControlListBox (  ) 

ControlListBox destructor.


Member Function Documentation

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

This function copies obj in the actual object.

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

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

ControlListBox 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