#include <ComboBox.h>
Inheritance diagram for Motoko::ComboBox:
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 ComboBox & | operator= (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 ComboBox & | CopyFrom (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. | |
ListBoxItem * | GetListItem (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. | |
ListBox * | GetList (void) |
Get the List of the control. | |
Button * | GetOpenList (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. |
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 | ( | ) |
ComboBox destructor.
This function copies obj in the actual object.
obj | Object to copy. |