#include <ControlListBox.h>
Inheritance diagram for Motoko::ControlListBox:
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 ControlListBox & | operator= (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 ControlListBox & | CopyFrom (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. | |
Control * | GetControl (const char *name) |
Get a control in the list. | |
int | GetSize (void) |
Get the number of controls in the list. | |
Control * | GetControl (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. | |
VScrollBar * | GetVBar (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. |
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.
ControlListBox & Motoko::ControlListBox::CopyFrom | ( | const ControlListBox & | obj | ) | [virtual] |
This function copies obj in the actual object.
obj | Object to copy. |
ControlListBox & Motoko::ControlListBox::operator= | ( | const ControlListBox & | obj | ) | [virtual] |
ControlListBox operator =.