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.
void apply_reflow_result (ReflowResult const &reflow_result)
constexpr auto operator== (Selection const &other) const -> bool

Public Attributes

AbsolutePosition start
 The start of the selection.
AbsolutePosition 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

◆ apply_reflow_result()

void ttx::terminal::Selection::apply_reflow_result ( ReflowResult const & reflow_result)
inline

◆ 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

◆ tag_invoke

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

Member Data Documentation

◆ end

AbsolutePosition ttx::terminal::Selection::end

The end of the selection (inclusive).

◆ start

AbsolutePosition ttx::terminal::Selection::start

The start of the selection.


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