![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Combobox component
Contained in: global
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
public function member index: |
||
Construction: |
||
CL_ComboBox | (CL_Component* parent, CL_StyleManager* style = NULL); | |
CL_ComboBox | (const CL_Rect& pos, CL_Component* parent, CL_StyleManager* style = NULL); | |
virtual | ~CL_ComboBox | (); |
Attributes: |
||
int | get_count | () const; |
std::list<std::string>& | get_items | () const; |
std::string | get_current_text | () const; |
std::string | get_text | (int index) const; |
int | get_current_item | () const; |
bool | is_selected | (int index) const; |
Operations: |
||
int | insert_item | (const std::string& text, int index = -1); |
void | remove_item | (int index); |
void | change_item | (const std::string& text, int index); |
void | set_current_item | (int index); |
void | clear_selection | (); |
void | sort | (bool ascending = true); |
void | clear | (); |
Signals: |
||
CL_Signal_v1<int>& | sig_activated | (); |
CL_Signal_v1<int>& | sig_highlighted | (); |
private function member index: |
||
Implementation: |
||
CL_ComboBox | (const CL_ComboBox& copy); | |
int index - The position of the item in the popup list.
int index - The position of the item in the popup list.