mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
Textedit improvements
This commit is contained in:
@@ -41,6 +41,7 @@ public:
|
||||
void setCursorPos(int pos);
|
||||
void setSelection(int start, int end);
|
||||
void setCursorVisible(bool enable) { m_cursorVisible = enable; }
|
||||
void setChangeCursorImage(bool enable) { m_changeCursorImage = enable; }
|
||||
void setTextHidden(bool hidden);
|
||||
void setValidCharacters(const std::string validCharacters) { m_validCharacters = validCharacters; }
|
||||
void setShiftNavigation(bool enable) { m_shiftNavigation = enable; }
|
||||
@@ -81,6 +82,7 @@ public:
|
||||
Color getSelectionBackgroundColor() { return m_selectionBackgroundColor; }
|
||||
bool hasSelection() { return m_selectionEnd - m_selectionStart > 0; }
|
||||
bool isCursorVisible() { return m_cursorVisible; }
|
||||
bool isChangingCursorImage() { return m_changeCursorImage; }
|
||||
bool isTextHidden() { return m_textHidden; }
|
||||
bool isShiftNavigation() { return m_shiftNavigation; }
|
||||
bool isMultiline() { return m_multiline; }
|
||||
@@ -118,6 +120,7 @@ private:
|
||||
bool m_cursorInRange;
|
||||
bool m_cursorVisible;
|
||||
bool m_editable;
|
||||
bool m_changeCursorImage;
|
||||
std::string m_validCharacters;
|
||||
uint m_maxLength;
|
||||
bool m_updatesEnabled;
|
||||
|
||||
Reference in New Issue
Block a user