1 #ifndef ESCHER_TEXT_INPUT_H 2 #define ESCHER_TEXT_INPUT_H 32 virtual const char *
text()
const = 0;
47 int numberOfSubviews()
const override;
48 View * subviewAtIndex(
int index)
override;
49 virtual size_t editedTextLength()
const = 0;
bool setCursorLocation(int location)
void setTextColor(KDColor textColor)
void setTextColor(KDColor textColor)
size_t cursorLocation() const
KDColor m_backgroundColor
void setBackgroundColor(KDColor backgroundColor)
size_t cursorLocation() const
virtual bool removeChar()=0
Responder * parentResponder() const
KDColor backgroundColor() const
KDText::FontSize m_fontSize
void setBackgroundColor(KDColor backgroundColor)
TextCursorView m_cursorView
virtual bool handleEventWithText(const char *text, bool indenting=false)=0
virtual void scrollToCursor()
void setCursorLocation(int cursorLocation)
Toolbox * toolbox() override
virtual bool removeEndOfLine()
bool insertTextAtLocation(const char *textBuffer, int location)
ContentView * contentView()
virtual KDRect characterFrameAtIndex(size_t index) const =0
const char * text() const
virtual const char * text() const =0
void reloadRectFromCursorPosition(size_t index, bool lineBreak=false)
virtual bool removeEndOfLine()=0
virtual const ContentView * nonEditableContentView() const =0
KDColor backgroundColor() const
ContentView(KDText::FontSize size, KDColor textColor, KDColor backgroundColor)
TextInput(Responder *parentResponder, View *contentView)
virtual bool insertTextAtLocation(const char *text, int location)=0
virtual void layoutSubviews() override