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

CL_ListBox Class Reference

clanGUI="Controls". More...

#include <listbox.h>

Inheritance diagram for CL_ListBox:

Inheritance graph
[legend]
Collaboration diagram for CL_ListBox:

Collaboration graph
[legend]
List of all members.

Public Methods

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

 CL_ListBox (const CL_Rect &pos, CL_Component *parent, CL_StyleManager *style=NULL)
virtual ~CL_ListBox ()
CL_Componentget_client_area () const
 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
int get_item_height () const
int get_top_item () const
int get_max_visible_items () const
bool has_scrollbar () 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 set_item_height (int height)
void set_max_visible_items (int count)
void set_top_item (int index)
void sort (bool ascending=true)
void clear ()
CL_Signal_v1<int>& sig_highlighted ()
 Signals:.

CL_Signal_v1<int>& sig_activated ()

Private Methods

 CL_ListBox (const CL_ListBox &copy)
 Implementation:.


Private Attributes

class CL_ListBox_Genericimpl
 Implementation:.


Detailed Description

clanGUI="Controls".

Definition at line 16 of file listbox.h.


Constructor & Destructor Documentation

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

Construction:.

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

virtual CL_ListBox::~CL_ListBox ( ) [virtual]
 

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

Implementation:.

Definition at line 116 of file listbox.h.


Member Function Documentation

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

void CL_ListBox::clear ( )
 

void CL_ListBox::clear_selection ( )
 

CL_Component * CL_ListBox::get_client_area ( ) const
 

Attributes:.

int CL_ListBox::get_count ( ) const
 

int CL_ListBox::get_current_item ( ) const
 

std::string CL_ListBox::get_current_text ( ) const
 

int CL_ListBox::get_item_height ( ) const
 

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

int CL_ListBox::get_max_visible_items ( ) const
 

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

int CL_ListBox::get_top_item ( ) const
 

bool CL_ListBox::has_scrollbar ( ) const
 

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

Operations:.

bool CL_ListBox::is_selected ( int index ) const
 

void CL_ListBox::remove_item ( int index )
 

void CL_ListBox::set_current_item ( int index )
 

void CL_ListBox::set_item_height ( int height )
 

void CL_ListBox::set_max_visible_items ( int count )
 

void CL_ListBox::set_top_item ( int index )
 

CL_Signal_v1<int>& CL_ListBox::sig_activated ( )
 

CL_Signal_v1< int > & CL_ListBox::sig_highlighted ( )
 

Signals:.

void CL_ListBox::sort ( bool ascending = true )
 


Member Data Documentation

class CL_ListBox_Generic* CL_ListBox::impl [private]
 

Implementation:.

Reimplemented from CL_Component.

Definition at line 117 of file listbox.h.


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