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

CL_ListBox_Generic Class Reference

#include <listbox_generic.h>

Collaboration diagram for CL_ListBox_Generic:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_ListBox_Generic (CL_ListBox *self, const CL_ComponentOptions &options, CL_StyleManager *style)
 ~CL_ListBox_Generic ()
int get_count () const
std::list<std::string>& get_items ()
std::string get_text (int index) const
std::string get_current_text () const
int get_current_item () const
bool is_selected (int index) const
int get_item_height () const
int get_top_item () const
int insert_item (const std::string &text, int index)
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)
void clear ()

Public Attributes

int max_visible_items
CL_Componentclient_area
CL_Signal_v1<int> sig_highlighted
CL_Signal_v1<int> sig_activated

Static Public Methods

CL_ComponentOptions create_options (const CL_Rect &pos)

Protected Methods

void update_scrollbar ()

Protected Attributes

int highlighted_item
int item_height
int scroll_offset
bool has_scrollbar
CL_ListBoxlistbox
CL_ScrollBarscrollbar
std::list<std::string> items

Private Methods

void on_key_down (CL_Component *comp, CL_InputDevice *device, CL_Key key)
void on_scroll_change (int new_offset)
void on_child_add (CL_Component *child)
void on_child_remove (CL_Component *child)

Private Attributes

CL_Slot slot_on_key_down
CL_Slot slot_on_scroll_change
CL_Slot slot_child_add
CL_Slot slot_child_remove

Constructor & Destructor Documentation

CL_ListBox_Generic::CL_ListBox_Generic ( CL_ListBox * self,
const CL_ComponentOptions & options,
CL_StyleManager * style )
 

CL_ListBox_Generic::~CL_ListBox_Generic ( ) [inline]
 

Definition at line 34 of file listbox_generic.h.


Member Function Documentation

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

void CL_ListBox_Generic::clear ( )
 

void CL_ListBox_Generic::clear_selection ( )
 

CL_ComponentOptions CL_ListBox_Generic::create_options ( const CL_Rect & pos ) [static]
 

int CL_ListBox_Generic::get_count ( ) const
 

int CL_ListBox_Generic::get_current_item ( ) const
 

std::string CL_ListBox_Generic::get_current_text ( ) const
 

int CL_ListBox_Generic::get_item_height ( ) const
 

std::list<std::string>& CL_ListBox_Generic::get_items ( )
 

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

int CL_ListBox_Generic::get_top_item ( ) const
 

int CL_ListBox_Generic::insert_item ( const std::string & text,
int index )
 

bool CL_ListBox_Generic::is_selected ( int index ) const
 

void CL_ListBox_Generic::on_child_add ( CL_Component * child ) [private]
 

void CL_ListBox_Generic::on_child_remove ( CL_Component * child ) [private]
 

void CL_ListBox_Generic::on_key_down ( CL_Component * comp,
CL_InputDevice * device,
CL_Key key ) [private]
 

void CL_ListBox_Generic::on_scroll_change ( int new_offset ) [private]
 

void CL_ListBox_Generic::remove_item ( int index )
 

void CL_ListBox_Generic::set_current_item ( int index )
 

void CL_ListBox_Generic::set_item_height ( int height )
 

void CL_ListBox_Generic::set_max_visible_items ( int count )
 

void CL_ListBox_Generic::set_top_item ( int index )
 

void CL_ListBox_Generic::sort ( bool ascending )
 

void CL_ListBox_Generic::update_scrollbar ( ) [protected]
 


Member Data Documentation

CL_Component* CL_ListBox_Generic::client_area
 

Definition at line 51 of file listbox_generic.h.

bool CL_ListBox_Generic::has_scrollbar [protected]
 

Definition at line 96 of file listbox_generic.h.

int CL_ListBox_Generic::highlighted_item [protected]
 

Definition at line 92 of file listbox_generic.h.

int CL_ListBox_Generic::item_height [protected]
 

Definition at line 93 of file listbox_generic.h.

std::list<std::string> CL_ListBox_Generic::items [protected]
 

Definition at line 101 of file listbox_generic.h.

CL_ListBox* CL_ListBox_Generic::listbox [protected]
 

Definition at line 98 of file listbox_generic.h.

int CL_ListBox_Generic::max_visible_items
 

Definition at line 49 of file listbox_generic.h.

int CL_ListBox_Generic::scroll_offset [protected]
 

Definition at line 94 of file listbox_generic.h.

CL_ScrollBar* CL_ListBox_Generic::scrollbar [protected]
 

Definition at line 99 of file listbox_generic.h.

CL_Signal_v1<int> CL_ListBox_Generic::sig_activated
 

Definition at line 73 of file listbox_generic.h.

CL_Signal_v1<int> CL_ListBox_Generic::sig_highlighted
 

Definition at line 72 of file listbox_generic.h.

CL_Slot CL_ListBox_Generic::slot_child_add [private]
 

Definition at line 79 of file listbox_generic.h.

CL_Slot CL_ListBox_Generic::slot_child_remove [private]
 

Definition at line 79 of file listbox_generic.h.

CL_Slot CL_ListBox_Generic::slot_on_key_down [private]
 

Definition at line 77 of file listbox_generic.h.

CL_Slot CL_ListBox_Generic::slot_on_scroll_change [private]
 

Definition at line 78 of file listbox_generic.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