AUI Framework
develop
Cross-platform base for C++ UI apps
|
Classes# | |
struct | Selection |
Public Member Functions# | |
virtual const AString & | getText () const =0 |
virtual size_t | length () const =0 |
AString | selectedText () const |
Selection | selection () const |
bool | hasSelection () const |
virtual unsigned | cursorIndexByPos (glm::ivec2 pos)=0 |
virtual glm::ivec2 | getPosByIndex (size_t index)=0 |
virtual glm::ivec2 | getCursorPosition ()=0 |
void | selectAll () |
Select whole text in the text field. | |
void | clearSelection () |
Remove selection from the text field. | |
void | setSelection (int cursorIndex) |
void | setSelection (Selection selection) |
Protected Member Functions# | |
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) |
Protected Attributes# | |
unsigned | mCursorIndex = 0 |
AOptional< unsigned > | mCursorSelection |
|
nodiscardpure virtual |
Implemented in AAbstractTextField, and ATextArea.
|
nodiscardpure virtual |
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.
|
nodiscardpure virtual |
Implemented in AAbstractTextField, and ATextArea.
|
nodiscard |
|
nodiscardpure virtual |
Implemented in AAbstractTextField, and ATextArea.