|
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 | ) |
|
|
nodiscardpure virtual |
◆ getCursorPosition()
virtual glm::ivec2 ACursorSelectable::getCursorPosition |
( |
| ) |
|
|
nodiscardpure 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.
◆ getText()
virtual const AString & ACursorSelectable::getText |
( |
| ) |
const |
|
nodiscardpure 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.
◆ hasSelection()
bool ACursorSelectable::hasSelection |
( |
| ) |
const |
|
nodiscard |
- Returns
- true if selection is present.
◆ length()
virtual size_t ACursorSelectable::length |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ selection()
The documentation for this class was generated from the following files: