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

CL_SelectionList Class Reference

#include <selection_list.h>

Inheritance diagram for CL_SelectionList:

Inheritance graph
[legend]
Collaboration diagram for CL_SelectionList:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_SelectionList (const CL_ComponentOptions &options, CL_Component *parent, CL_StyleManager_Default *style, CL_Font *font, const std::list< std::string > &selection_list)
virtual ~CL_SelectionList ()
void cancel ()

Public Attributes

CL_Signal_v1<int> sig_activated
CL_Signal_v0 sig_cancelled

Private Methods

void on_paint ()
void on_key_down (CL_Component *comp, CL_InputDevice *device, CL_Key key)
void on_mouse_move (CL_Component *comp, CL_InputDevice *device, int x, int y)
void on_scroll_change (int new_offset)

Private Attributes

CL_Slot slot_paint
CL_Slot slot_key_down
CL_Slot slot_moouse_move
CL_StyleManager_Defaultstyle
CL_Fontfont
int highlighted_option
bool has_scrollbar
unsigned int max_height
int scroll_offset
CL_Scrollbar* scrollbar
std::list<std::string> selection_list

Constructor & Destructor Documentation

CL_SelectionList::CL_SelectionList ( const CL_ComponentOptions & options,
CL_Component * parent,
CL_StyleManager_Default * style,
CL_Font * font,
const std::list< std::string > & selection_list )
 

CL_SelectionList::~CL_SelectionList ( ) [inline, virtual]
 

Definition at line 30 of file selection_list.h.


Member Function Documentation

void CL_SelectionList::cancel ( )
 

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

void CL_SelectionList::on_mouse_move ( CL_Component * comp,
CL_InputDevice * device,
int x,
int y ) [private]
 

void CL_SelectionList::on_paint ( ) [private]
 

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


Member Data Documentation

CL_Font* CL_SelectionList::font [private]
 

Definition at line 45 of file selection_list.h.

bool CL_SelectionList::has_scrollbar [private]
 

Definition at line 48 of file selection_list.h.

int CL_SelectionList::highlighted_option [private]
 

Definition at line 46 of file selection_list.h.

unsigned int CL_SelectionList::max_height [private]
 

Definition at line 49 of file selection_list.h.

int CL_SelectionList::scroll_offset [private]
 

Definition at line 50 of file selection_list.h.

CL_Scrollbar* CL_SelectionList::scrollbar [private]
 

Definition at line 52 of file selection_list.h.

std::list<std::string> CL_SelectionList::selection_list [private]
 

Definition at line 54 of file selection_list.h.

CL_Signal_v1<int> CL_SelectionList::sig_activated
 

Definition at line 34 of file selection_list.h.

CL_Signal_v0 CL_SelectionList::sig_cancelled
 

Definition at line 35 of file selection_list.h.

CL_Slot CL_SelectionList::slot_key_down [private]
 

Definition at line 42 of file selection_list.h.

CL_Slot CL_SelectionList::slot_moouse_move [private]
 

Definition at line 42 of file selection_list.h.

CL_Slot CL_SelectionList::slot_paint [private]
 

Definition at line 42 of file selection_list.h.

CL_StyleManager_Default* CL_SelectionList::style [private]
 

Definition at line 44 of file selection_list.h.


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