Event handler for nocl::Button events. More...
#include <ButtonHandler.hpp>


Public Member Functions | |
| virtual | ~ButtonHandler (void) |
| Destructor. More... | |
| ButtonHandler (void) | |
| Constructor. More... | |
| virtual ButtonHandler & | handle_button_events_for (Button &button) |
| Call this method for every button that needs a callback. More... | |
| virtual void | clicked (Button &button)=0 |
| Override this pure virtual in your class. More... | |
Event handler for nocl::Button events.
For example:
|
virtual |
Destructor.
| nocl::ButtonHandler::ButtonHandler | ( | void | ) |
Constructor.
|
virtual |
Call this method for every button that needs a callback.
The clicked() method will be called when button is clicked.
| nocl::Exception | Throws if the Gtk+ widget does not map to a NOCL GUI component. |
| nocl::Exception | Throws if the NOCL GUI component is not a nocl::Button. |
References clicked(), nocl::GUIComponent::gtk_widget, NOCL_WHERE, and nocl::GUIComponent::widget_to_gui_component_map().

|
pure virtual |
Override this pure virtual in your class.
Referenced by handle_button_events_for().
