ttx 0.1.0
Loading...
Searching...
No Matches
ttx::LayoutGroup Class Reference

#include </home/runner/work/ttx/ttx/lib/include/ttx/layout.h>

Public Member Functions

constexpr auto direction () const -> Direction
 
constexpr auto empty () const -> bool
 
constexpr auto single () const -> bool
 
constexpr auto relative_size () -> i64 &
 
auto split (dius::tty::WindowSize const &size, u32 row_offset, u32 col_offset, Pane *reference, Direction direction) -> di::Tuple< di::Box< LayoutNode >, di::Optional< LayoutEntry & >, di::Optional< di::Box< Pane > & > >
 
auto remove_pane (Pane *pane) -> di::Box< Pane >
 
auto resize (LayoutNode &root, Pane *pane, ResizeDirection direction, i32 amount_in_cells) -> bool
 
auto layout (dius::tty::WindowSize const &size, u32 row_offset, u32 col_offset) -> di::Box< LayoutNode >
 

Friends

struct FindPaneInLayoutGroup
 

Member Function Documentation

◆ direction()

auto ttx::LayoutGroup::direction ( ) const -> Direction
inlineconstexpr

◆ empty()

auto ttx::LayoutGroup::empty ( ) const -> bool
inlineconstexpr

◆ layout()

auto ttx::LayoutGroup::layout ( dius::tty::WindowSize const & size,
u32 row_offset,
u32 col_offset ) -> di::Box<LayoutNode>

◆ relative_size()

auto ttx::LayoutGroup::relative_size ( ) -> i64&
inlineconstexpr

◆ remove_pane()

auto ttx::LayoutGroup::remove_pane ( Pane * pane) -> di::Box<Pane>

◆ resize()

auto ttx::LayoutGroup::resize ( LayoutNode & root,
Pane * pane,
ResizeDirection direction,
i32 amount_in_cells ) -> bool

◆ single()

auto ttx::LayoutGroup::single ( ) const -> bool
inlineconstexpr

◆ split()

auto ttx::LayoutGroup::split ( dius::tty::WindowSize const & size,
u32 row_offset,
u32 col_offset,
Pane * reference,
Direction direction ) -> di::Tuple<di::Box<LayoutNode>, di::Optional<LayoutEntry&>, di::Optional<di::Box<Pane>&>>

Friends And Related Symbol Documentation

◆ FindPaneInLayoutGroup

friend struct FindPaneInLayoutGroup
friend

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