HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Friends
v1::text_selection Class Reference

Public Member Functions

constexpr text_selection (text_selection const &) noexcept=default
 
constexpr text_selection (text_selection &&) noexcept=default
 
constexpr text_selectionoperator= (text_selection const &) noexcept=default
 
constexpr text_selectionoperator= (text_selection &&) noexcept=default
 
constexpr text_selectionresize (size_t size) noexcept
 
constexpr text_cursor cursor () const noexcept
 
constexpr std::pair< text_cursor, text_cursorselection (size_t size) const noexcept
 Return the selection of characters.
 
constexpr std::pair< size_t, size_t > selection_indices () const noexcept
 Get the text indices for the selection.
 
constexpr bool empty () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr text_selectionclear_selection (size_t size) noexcept
 
constexpr text_selectionset_cursor (text_cursor new_cursor) noexcept
 
constexpr text_selectionoperator= (text_cursor const &rhs) noexcept
 
constexpr void start_selection (text_cursor new_cursor, text_cursor first, text_cursor last) noexcept
 
constexpr void start_selection (text_cursor new_cursor, std::pair< text_cursor, text_cursor > selection) noexcept
 
constexpr void drag_selection (text_cursor drag_cursor) noexcept
 
constexpr void drag_selection (text_cursor drag_cursor, text_cursor first, text_cursor last) noexcept
 
constexpr void drag_selection (text_cursor drag_cursor, std::pair< text_cursor, text_cursor > selection) noexcept
 

Friends

constexpr friend bool operator== (text_selection const &, text_selection const &) noexcept=default
 

Member Function Documentation

◆ selection()

constexpr std::pair< text_cursor, text_cursor > v1::text_selection::selection ( size_t size) const
inlineconstexprnoexcept

Return the selection of characters.

Parameters
sizeThe size of the text.
Returns
Cursor before the first character, Cursor after the last character.

◆ selection_indices()

constexpr std::pair< size_t, size_t > v1::text_selection::selection_indices ( ) const
inlineconstexprnoexcept

Get the text indices for the selection.


The documentation for this class was generated from the following file: