ttx 0.1.0
Loading...
Searching...
No Matches
ttx::terminal::Selection Struct Reference

Represents the visual selection of a terminal. More...

#include <ttx/terminal/selection.h>

Public Member Functions

constexpr auto normalize () const -> Selection
 Normalize the selection so that start <= end.
 
constexpr auto operator== (Selection const &other) const -> bool
 

Public Attributes

SelectionPoint start
 The start of the selection.
 
SelectionPoint end
 The end of the selection (inclusive)
 

Friends

constexpr friend auto tag_invoke (di::Tag< di::reflect >, di::InPlaceType< Selection >)
 

Detailed Description

Represents the visual selection of a terminal.

Member Function Documentation

◆ normalize()

auto ttx::terminal::Selection::normalize ( ) const -> Selection
inlineconstexpr

Normalize the selection so that start <= end.

◆ operator==()

auto ttx::terminal::Selection::operator== ( Selection const & other) const -> bool
inlineconstexpr

Friends And Related Symbol Documentation

◆ tag_invoke

friend auto tag_invoke ( di::Tag< di::reflect > ,
di::InPlaceType< Selection >  )
friend

Member Data Documentation

◆ end

SelectionPoint ttx::terminal::Selection::end

The end of the selection (inclusive)

◆ start

SelectionPoint ttx::terminal::Selection::start

The start of the selection.


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