nxt::height_t struct

Strong type for vertical extents measured in terminal lines.

Public functions

auto count() const →  std::size_t constexpr noexcept
Return the raw line count.
auto operator+=(height_t other) →  height_t& constexpr noexcept
auto operator-=(height_t other) →  height_t& constexpr noexcept

Public variables

std::size_t v
Number of lines.

Friends

auto operator<=>(height_t, height_t) →  auto defaulted constexpr noexcept
auto operator==(height_t, height_t) →  bool defaulted constexpr noexcept