|
HikoGUI
A low latency retained GUI
|
Public Member Functions | |
| EditableText (TextStyle style) | |
| void | updateShapedText () noexcept |
| Update the shaped text after changed to text. | |
| ShapedText | shapedText () const noexcept |
| void | setWidth (float _width) noexcept |
| void | setCurrentStyle (TextStyle style) noexcept |
| void | setStyleOfAll (TextStyle style) noexcept |
| Change the text style of all graphemes. | |
| size_t | size () const noexcept |
| decltype(auto) | it (ssize_t index) noexcept |
| Return the text iterator at index. | |
| decltype(auto) | cit (ssize_t index) const noexcept |
| Return the text iterator at index. | |
| decltype(auto) | it (ssize_t index) const noexcept |
| aarect | partialGraphemeCaret () const noexcept |
| Get carets at the cursor position. | |
| aarect | leftToRightCaret () const noexcept |
| Get carets at the cursor position. | |
| std::vector< aarect > | selectionRectangles () const noexcept |
| Get a set of rectangles for which text is selected. | |
| void | deleteSelection () noexcept |
| Delete a selection. | |
| ssize_t | characterIndexAtPosition (vec position) const noexcept |
| void | setCursorAtCoordinate (vec coordinate) noexcept |
| void | selectWordAtCoordinate (vec coordinate) noexcept |
| void | selectParagraphAtCoordinate (vec coordinate) noexcept |
| void | dragCursorAtCoordinate (vec coordinate) noexcept |
| void | dragWordAtCoordinate (vec coordinate) noexcept |
| void | dragParagraphAtCoordinate (vec coordinate) noexcept |
| void | cancelPartialGrapheme () noexcept |
| void | insertPartialGrapheme (Grapheme character) noexcept |
| void | insertGrapheme (Grapheme character) noexcept |
| void | handlePaste (std::string str) noexcept |
| std::string | handleCopy () noexcept |
| std::string | handleCut () noexcept |
| void | handleCommand (string_ltag command) noexcept |
Find the nearest character at position and return it's index.
|
inlinenoexcept |
Return the text iterator at index.
|
inlinenoexcept |
Delete a selection.
This function should be called when a selection is active while new text is being inserted.
|
inlinenoexcept |
insert character at the cursor position. Selected text will be deleted.
|
inlinenoexcept |
Insert a temporary partial character. This partial character is currently being constructed by the operating system.
Since the insertion has not been completed any selected text should not yet be deleted.
|
inlinenoexcept |
Return the text iterator at index.
|
inlinenoexcept |
Get carets at the cursor position.
|
inlinenoexcept |
Get carets at the cursor position.
|
inlinenoexcept |
Get a set of rectangles for which text is selected.
|
inlinenoexcept |
Change the text style of all graphemes.
|
inlinenoexcept |
Update the shaped text after changed to text.