mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
21 lines
490 B
C++
21 lines
490 B
C++
#ifndef SHARED_EXPRESSION_TEXT_FIELD_DELEGATE_H
|
|
#define SHARED_EXPRESSION_TEXT_FIELD_DELEGATE_H
|
|
|
|
#include <escher.h>
|
|
#include <poincare.h>
|
|
|
|
namespace Shared {
|
|
|
|
class ExpressionTextFieldDelegate : public TextFieldDelegate {
|
|
public:
|
|
virtual Poincare::Context * localContext() = 0;
|
|
virtual const char * XNT();
|
|
bool textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) override;
|
|
private:
|
|
bool cursorInToken(TextField * textField, const char * token);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|