Numworks Epsilon  1.4.1
Graphing Calculator Operating System
text_field_delegate.h
Go to the documentation of this file.
1 #ifndef ESCHER_TEXT_FIELD_DELEGATE_H
2 #define ESCHER_TEXT_FIELD_DELEGATE_H
3 
5 
6 class TextField;
7 
9 public:
10  virtual bool textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) = 0;
11  virtual bool textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) = 0;
12  virtual bool textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) { return false; };
13  virtual bool textFieldDidAbortEditing(TextField * textField, const char * text) {return false;};
14  virtual bool textFieldDidHandleEvent(TextField * textField, bool returnValue, bool textHasChanged) { return returnValue; };
15 };
16 
17 #endif
virtual bool textFieldDidReceiveEvent(TextField *textField, Ion::Events::Event event)=0
virtual bool textFieldDidAbortEditing(TextField *textField, const char *text)
virtual bool textFieldDidHandleEvent(TextField *textField, bool returnValue, bool textHasChanged)
virtual bool textFieldDidFinishEditing(TextField *textField, const char *text, Ion::Events::Event event)
virtual bool textFieldShouldFinishEditing(TextField *textField, Ion::Events::Event event)=0