mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
[escher] Clean Field and Input class hierarchy:
Class hierarchy: - InputEventHandler - TextInput - EditableField derives from InputEventHandler - LayoutField, TextField and ExpressioField derives from EditableField - TextArea and TextField derives from TextInput
This commit is contained in:
13
escher/src/input_event_handler.cpp
Normal file
13
escher/src/input_event_handler.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <escher/input_event_handler.h>
|
||||
#include <escher/app.h>
|
||||
#include <escher/toolbox.h>
|
||||
#include <escher/metric.h>
|
||||
|
||||
bool InputEventHandler::handleToolboxEvent(App * app) {
|
||||
if (toolbox() != nullptr) {
|
||||
toolbox()->setSender(this);
|
||||
app->displayModalViewController(toolbox(), 0.f, 0.f, Metric::PopUpTopMargin, Metric::PopUpLeftMargin, 0, Metric::PopUpRightMargin);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user