mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
21 lines
539 B
C++
21 lines
539 B
C++
#ifndef SHARED_TEXT_FIELD_DELEGATE_H
|
|
#define SHARED_TEXT_FIELD_DELEGATE_H
|
|
|
|
#include "text_field_delegate_app.h"
|
|
|
|
namespace Shared {
|
|
|
|
class TextFieldDelegate : public ::TextFieldDelegate {
|
|
public:
|
|
bool textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) override;
|
|
bool textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) override;
|
|
protected:
|
|
TextFieldDelegateApp * textFieldDelegateApp() const {
|
|
return static_cast<TextFieldDelegateApp *>(Container::activeApp());
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|