diff options
Diffstat (limited to 'src/FbTk/TextBox.hh')
-rw-r--r-- | src/FbTk/TextBox.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/TextBox.hh b/src/FbTk/TextBox.hh index a3b857f..20f3610 100644 --- a/src/FbTk/TextBox.hh +++ b/src/FbTk/TextBox.hh | |||
@@ -58,6 +58,7 @@ public: | |||
58 | void exposeEvent(XExposeEvent &event); | 58 | void exposeEvent(XExposeEvent &event); |
59 | void buttonPressEvent(XButtonEvent &event); | 59 | void buttonPressEvent(XButtonEvent &event); |
60 | void keyPressEvent(XKeyEvent &event); | 60 | void keyPressEvent(XKeyEvent &event); |
61 | void handleEvent(XEvent &event); | ||
61 | 62 | ||
62 | const FbString &text() const { return m_text.logical(); } | 63 | const FbString &text() const { return m_text.logical(); } |
63 | const Font &font() const { return *m_font; } | 64 | const Font &font() const { return *m_font; } |
@@ -79,10 +80,14 @@ private: | |||
79 | 80 | ||
80 | void adjustPos(); | 81 | void adjustPos(); |
81 | 82 | ||
83 | typedef struct { std::string::size_type begin, end; } StringRange; | ||
84 | StringRange charRange(std::string::size_type pos) const; | ||
85 | |||
82 | const FbTk::Font *m_font; | 86 | const FbTk::Font *m_font; |
83 | BiDiString m_text; | 87 | BiDiString m_text; |
84 | GC m_gc; | 88 | GC m_gc; |
85 | std::string::size_type m_cursor_pos, m_start_pos, m_end_pos, m_select_pos; | 89 | std::string::size_type m_cursor_pos, m_start_pos, m_end_pos, m_select_pos; |
90 | XIC m_xic; | ||
86 | }; | 91 | }; |
87 | 92 | ||
88 | } // end namespace FbTk | 93 | } // end namespace FbTk |