Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::gui::widgets::InputBoxEventHandler Class Reference

Handles input box events. More...

#include <inputbox.h>

Inheritance diagram for MaxOS::gui::widgets::InputBoxEventHandler:
MaxOS::common::EventHandler< InputBoxEvents >

Public Member Functions

common::Event< InputBoxEvents > * on_event (common::Event< InputBoxEvents > *event) override
 Delegates an event to the event handler for that event type.
 
virtual void on_input_box_text_changed (const string &text)
 Event triggered when the text in the input box is changed.
 
- Public Member Functions inherited from MaxOS::common::EventHandler< InputBoxEvents >
virtual Event< InputBoxEvents > * on_event (Event< InputBoxEvents > *event)
 This function is called when an event is raised.
 

Detailed Description

Handles input box events.

Definition at line 44 of file inputbox.h.

Member Function Documentation

◆ on_event()

Event< InputBoxEvents > * InputBoxEventHandler::on_event ( common::Event< InputBoxEvents > *  event)
override

Delegates an event to the event handler for that event type.

Parameters
eventThe event triggered
Returns
The event triggered potentially modified by the handler.

Definition at line 28 of file inputbox.cpp.

28 {
29
30 switch (event->type) {
31 case InputBoxEvents::TEXT_CHANGED:
33 break;
34 }
35
36 return event;
37}
Stores the left, top, width and height of a rectangle.
Definition rectangle.h:22
virtual void on_input_box_text_changed(const string &text)
Event triggered when the text in the input box is changed.
Definition inputbox.cpp:44
Event that is triggered when the text in an input box is changed.
Definition inputbox.h:32

References on_input_box_text_changed().

◆ on_input_box_text_changed()

void InputBoxEventHandler::on_input_box_text_changed ( const string text)
virtual

Event triggered when the text in the input box is changed.

Parameters
textThe new text in the input box

Definition at line 44 of file inputbox.cpp.

44 {
45
46}

Referenced by on_event().


The documentation for this class was generated from the following files: