Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ndk::button Class Reference

Inheritance diagram for ndk::button:

Inheritance graph
Collaboration diagram for ndk::button:

Collaboration graph
List of all members.

Public Member Functions

 button (const std::string &str, panel *parent=0, bool accept=true)
void select ()
void unselect ()

Protected Member Functions

virtual void set_color (ncurses::pen &)

Protected Attributes

bool selected_
event::type state_

Private Member Functions

event::result at_system (const event &)

Detailed Description

Pre-Button: Label with activation support This is a base class for Radio/Check/Push buttons

Constructor & Destructor Documentation

button::button const std::string &  str,
panel parent = 0,
bool  accept = true

See also:
NDK::Label() for details
accept additional parameter, accept or not focus buttons without focus acception are usefull for widgets like ListBox, SwitchButton

Member Function Documentation

event::result button::at_system const event  )  [private]

system event processor

ev  system event processor

Reimplemented from ndk::panel.

Reimplemented in ndk::edit.

void button::select  ) 

void button::set_color ncurses::pen &   )  [protected, virtual]

Reimplemented from ndk::mini_button.

void button::unselect  ) 

Member Data Documentation

bool ndk::button::selected_ [protected]

semaphore: are this object selected now or not

event::type ndk::button::state_ [protected]

last status

Reimplemented in ndk::switch_button< T >, and ndk::switch_button< radio >.

The documentation for this class was generated from the following files:
Generated on Fri Jun 4 16:20:53 2004 for NDK++ by doxygen 1.3.6