Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_ComboBox Class Reference

clanGUI="Controls". More...

#include <combobox.h>

Inheritance diagram for CL_ComboBox:

Inheritance graph
[legend]
Collaboration diagram for CL_ComboBox:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_ComboBox (const CL_ComponentOptions &options, CL_Component *parent, CL_StyleManager *style=NULL)
 Construction:.

 CL_ComboBox (const CL_Rect &pos, CL_Component *parent, CL_StyleManager *style=NULL)
virtual ~CL_ComboBox ()
int get_count () const
 Attributes:.

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
int insert_item (const std::string &text, int index=-1)
 Operations:.

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 ()
CL_Signal_v1<int>& sig_activated ()
 Signals:.

CL_Signal_v1<int>& sig_highlighted ()
 param: int index - The position of the item in the popup list.


Private Methods

 CL_ComboBox (const CL_ComboBox &copy)
 param: int index - The position of the item in the popup list. Implementation:.


Private Attributes

class CL_ComboBox_Genericimpl
 Implementation:.


Detailed Description

clanGUI="Controls".

Definition at line 16 of file combobox.h.


Constructor & Destructor Documentation

CL_ComboBox::CL_ComboBox ( const CL_ComponentOptions & options,
CL_Component * parent,
CL_StyleManager * style = NULL )
 

Construction:.

CL_ComboBox::CL_ComboBox ( const CL_Rect & pos,
CL_Component * parent,
CL_StyleManager * style = NULL )
 

virtual CL_ComboBox::~CL_ComboBox ( ) [virtual]
 

CL_ComboBox::CL_ComboBox ( const CL_ComboBox & copy ) [inline, private]
 

param: int index - The position of the item in the popup list. Implementation:.

Definition at line 90 of file combobox.h.


Member Function Documentation

void CL_ComboBox::change_item ( const std::string & text,
int index )
 

void CL_ComboBox::clear ( )
 

void CL_ComboBox::clear_selection ( )
 

int CL_ComboBox::get_count ( ) const
 

Attributes:.

int CL_ComboBox::get_current_item ( ) const
 

std::string CL_ComboBox::get_current_text ( ) const
 

std::list<std::string>& CL_ComboBox::get_items ( ) const
 

std::string CL_ComboBox::get_text ( int index ) const
 

int CL_ComboBox::insert_item ( const std::string & text,
int index = -1 )
 

Operations:.

bool CL_ComboBox::is_selected ( int index ) const
 

void CL_ComboBox::remove_item ( int index )
 

void CL_ComboBox::set_current_item ( int index )
 

CL_Signal_v1< int > & CL_ComboBox::sig_activated ( )
 

Signals:.

CL_Signal_v1< int > & CL_ComboBox::sig_highlighted ( )
 

param: int index - The position of the item in the popup list.

void CL_ComboBox::sort ( bool ascending = true )
 


Member Data Documentation

class CL_ComboBox_Generic* CL_ComboBox::impl [private]
 

Implementation:.

Reimplemented from CL_Component.

Definition at line 91 of file combobox.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:45 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001