|
virtual bool | isLButtonPressed ()=0 |
|
virtual AString | getDisplayText ()=0 |
|
virtual void | cursorSelectableRedraw ()=0 |
|
virtual void | onSelectionChanged ()=0 |
|
void | handleMouseDoubleClicked (const APointerPressedEvent &event) |
|
void | handleMousePressed (const APointerPressedEvent &event) |
|
void | handleMouseReleased (const APointerReleasedEvent &event) |
|
void | handleMouseMove (const glm::ivec2 &pos) |
|
template<aui::invocable Callback> |
void | drawSelectionBeforeAndAfter (IRenderer &render, std::span< ARect< int > > rects, Callback &&drawText) |
|
|
unsigned | mCursorIndex = 0 |
|
AOptional< unsigned > | mCursorSelection |
|
◆ cursorIndexByPos()
virtual unsigned ACursorSelectable::cursorIndexByPos |
( |
glm::ivec2 |
pos | ) |
|
|
pure virtual |
◆ getCursorPosition()
virtual glm::ivec2 ACursorSelectable::getCursorPosition |
( |
| ) |
|
|
pure virtual |
- Returns
- Cursor position relative to this view.
Returns position relative to top left corner of the view. That is, if implementation supports scrolling (i.e., ATextField) the returned position does not include overflowed contents.
Implemented in AAbstractTextField, and ATextArea.
◆ hasSelection()
bool ACursorSelectable::hasSelection |
( |
| ) |
const |
- Returns
- true if selection is present.
◆ length()
virtual size_t ACursorSelectable::length |
( |
| ) |
const |
|
pure virtual |
◆ selection()
◆ text()
virtual const AString & ACursorSelectable::text |
( |
| ) |
const |
|
pure virtual |
- Returns
- Text field text.
- Performance note
- If text length is needed, use textLength() function instead. On some implementations it's faster that text().
Implemented in AAbstractTextField, and ATextArea.
The documentation for this class was generated from the following files: