|
HikoGUI
A low latency retained GUI
|
Public Member Functions | |
| editable_text (text_style style) | |
| operator std::string () const noexcept | |
| editable_text & | operator= (std::string_view str) noexcept |
| void | updateshaped_text () noexcept |
| Update the shaped text after changed to text. | |
| shaped_text | shapedText () const noexcept |
| void | setWidth (float _width) noexcept |
| void | setCurrentStyle (text_style style) noexcept |
| void | setStyleOfAll (text_style 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 |
| aarectangle | partialgraphemeCaret () const noexcept |
| Get carets at the cursor position. | |
| aarectangle | leftToRightCaret () const noexcept |
| Get carets at the cursor position. | |
| std::vector< aarectangle > | selectionRectangles () const noexcept |
| Get a set of rectangles for which text is selected. | |
| void | deleteSelection () noexcept |
| Delete a selection. | |
| ssize_t | characterIndexAtPosition (point2 position) const noexcept |
| void | setmouse_cursorAtCoordinate (point2 coordinate) noexcept |
| void | selectWordAtCoordinate (point2 coordinate) noexcept |
| void | selectParagraphAtCoordinate (point2 coordinate) noexcept |
| void | dragmouse_cursorAtCoordinate (point2 coordinate) noexcept |
| void | dragWordAtCoordinate (point2 coordinate) noexcept |
| void | dragParagraphAtCoordinate (point2 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 |
| bool | handle_event (command 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.