TextEdit.diff
CtrlLib/TextEdit.h (kopia robocza) | ||
---|---|---|
147 | 147 |
int GetCursorLine() { return GetLine(GetCursor()); } |
148 | 148 | |
149 | 149 |
void SetSelection(int anchor = 0, int cursor = INT_MAX); |
150 |
bool IsSelection() const { return anchor >= 0 && !rectsel; }
|
|
151 |
bool IsRectSelection() const { return anchor >= 0 && rectsel; }
|
|
152 |
bool IsAnySelection() const { return anchor >= 0; } |
|
150 |
bool IsSelection() const { return IsAnySelection() && !rectsel; }
|
|
151 |
bool IsRectSelection() const { return IsAnySelection() && rectsel; }
|
|
152 |
bool IsAnySelection() const { return anchor >= 0 && anchor != cursor; }
|
|
153 | 153 |
bool GetSelection(int& l, int& h) const; |
154 | 154 |
String GetSelection(byte charset = CHARSET_DEFAULT) const; |
155 | 155 |
WString GetSelectionW() const; |