Motoko::ComboBox Class Reference

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

#include <ComboBox.h>

Inheritance diagram for Motoko::ComboBox:

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

Public Member Functions

 ComboBox ()
 ComboBox (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, bool transparency=false, bool enable=true, bool visible=true)
 ComboBox (const ComboBox &obj)
virtual ComboBoxoperator= (const ComboBox &obj)
 ~ComboBox ()
virtual void Draw (void)
 This function draw the control.
virtual bool Update (SDL_Event &event)
 This function update the control.
virtual ComboBoxCopyFrom (const ComboBox &obj)
 This function copies obj in the actual object.
virtual bool IsCursorOver (void)
 This function looks if the cursor is over the control.
virtual void UpdateRects (void)
 This function update the rects in the actual object.
bool AddListItem (string text)
 Add an item in the list.
bool AddListItem (string text, Uint32 color)
 Add an item in the list.
void DelListItem (int i)
 Erase an item in the list.
void ClearListItems (void)
 Erase all the items in the list.
ListBoxItemGetListItem (int i)
 Get an item of the list.
list< int > * GetSelectedItems (void)
 Get the selected items of the list.
Uint32 GetSelColor (void)
 Get the color of selection of the list.
Uint16 GetListHeight (void)
 Get the height of the list.
Uint32 GetSelBackColor (void)
 Get the selected color of the combo.
ListBoxGetList (void)
 Get the List of the control.
ButtonGetOpenList (void)
 Get the OpenList of the control.
virtual void SetListItem (int i, ListBoxItem *val)
 Set an item of the list.
virtual void SetListItem (int i, string text, Uint32 color)
 Set an item of the list.
virtual void SetListItem (int i, string text)
 Set an item of the list.
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 SetListHeight (Uint16 val)
 Set the height of the list.
virtual void SetSelBackColor (Uint32 val)
 Set the selected color of the combo.
virtual void SetFont (CRM32Pro_CFont *val)
 Set the font 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 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.

Detailed Description

Class that represents a generic combo box.


Constructor & Destructor Documentation

Motoko::ComboBox::ComboBox (  ) 

ComboBox constructor.

Motoko::ComboBox::ComboBox ( 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,
bool  transparency = false,
bool  enable = true,
bool  visible = true 
)

ComboBox constructor.

Motoko::ComboBox::ComboBox ( const ComboBox obj  ) 

ComboBox copy constructor.

Motoko::ComboBox::~ComboBox (  ) 

ComboBox destructor.


Member Function Documentation

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

This function copies obj in the actual object.

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

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

ComboBox 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