Public Member Functions | |
lister (panel *parent=0) | |
virtual void | draw () |
virtual void | top () |
virtual void | bottom () |
virtual void | show () |
void | down () |
void | up () |
unsigned int | size () const |
unsigned int | current () const |
void | set_current (unsigned int num) |
button * | current_item () const |
button * | at (int num) const |
void | reset () |
template<typename ItemT> void | add (const std::string &name) |
void | add (const std::string &name) |
void | remove (unsigned int num) |
Protected Member Functions | |
void | add_item (BaseT *b) |
Private Types | |
typedef shared_ptr< BaseT > | button_ptr |
typedef std::vector< button_ptr > | button_vector |
Private Member Functions | |
event::result | at_system (const event &ev) |
event::result | at_keyboard (const keyboard &ev) |
event::result | at_mouse (const mouse &ev) |
void | hide_invisible () |
void | switch_active (unsigned int new_active) |
Private Attributes | |
button_vector | buttons_ |
unsigned int | first_ |
unsigned int | last_ |
unsigned int | active_ |
bool | focused_ |
|
smart pointer to the button |
|
list of pointers to the buttons |
|
|
|
Reimplemented in ndk::radio_group. |
|
Reimplemented in ndk::radio_group. |
|
|
|
|
|
Reimplemented in ndk::popup_menu. |
|
|
|
Reimplemented from ndk::panel. Reimplemented in ndk::popup_menu. |
|
|
|
< number of current highlighted item |
|
|
|
|
|
specific version of draw, specially for NDK engine Reimplemented from ndk::panel. |
|
|
|
|
|
|
|
set button with number num as a active
|
|
|
|
< number of items |
|
|
|
|
|
|
|
number of the current active item |
|
buttons inserted to the list |
|
number of the first visible item |
|
semaphore: we draw active button in two variants |
|
number of the last visible item |