mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
20 lines
598 B
C++
20 lines
598 B
C++
#ifndef ESCHER_INPUT_EVENT_HANDLER_H
|
|
#define ESCHER_INPUT_EVENT_HANDLER_H
|
|
|
|
#include <ion/events.h>
|
|
|
|
// See TODO in EditableField
|
|
|
|
class InputEventHandlerDelegate;
|
|
|
|
class InputEventHandler {
|
|
public:
|
|
InputEventHandler(InputEventHandlerDelegate * inputEventHandlerdelegate) : m_inputEventHandlerDelegate(inputEventHandlerdelegate) {}
|
|
virtual bool handleEventWithText(const char * text, bool indentation = false, bool forceCursorRightOfText = false) { return false; }
|
|
protected:
|
|
bool handleBoxEvent(Ion::Events::Event event);
|
|
InputEventHandlerDelegate * m_inputEventHandlerDelegate;
|
|
};
|
|
|
|
#endif
|