ttx 0.1.0
Loading...
Searching...
No Matches
ttx::Tab Struct Reference

#include </home/runner/work/ttx/ttx/src/tab.h>

Public Member Functions

 Tab (di::String name)
 
void layout (dius::tty::WindowSize const &size, u32 row, u32 col)
 
void invalidate_all ()
 
auto remove_pane (Pane *pane) -> di::Box< Pane >
 
auto add_pane (dius::tty::WindowSize const &size, u32 row, u32 col, CreatePaneArgs args, Direction direction, RenderThread &render_thread) -> di::Result<>
 
void navigate (NavigateDirection direction)
 
auto set_active (Pane *pane) -> bool
 
auto name () const -> di::StringView
 
auto empty () const -> bool
 
auto layout_group () -> LayoutGroup &
 
auto layout_tree () const -> di::Optional< LayoutNode & >
 
auto active () const -> di::Optional< Pane & >
 
auto panes () const -> di::Ring< Pane * > const &
 
auto set_is_active (bool b) -> bool
 
auto is_active () -> bool
 

Constructor & Destructor Documentation

◆ Tab()

ttx::Tab::Tab ( di::String name)
inlineexplicit

Member Function Documentation

◆ active()

auto ttx::Tab::active ( ) const -> di::Optional<Pane&>
inline

◆ add_pane()

auto ttx::Tab::add_pane ( dius::tty::WindowSize const & size,
u32 row,
u32 col,
CreatePaneArgs args,
Direction direction,
RenderThread & render_thread ) -> di::Result<>

◆ empty()

auto ttx::Tab::empty ( ) const -> bool
inline

◆ invalidate_all()

void ttx::Tab::invalidate_all ( )

◆ is_active()

auto ttx::Tab::is_active ( ) -> bool
inline

◆ layout()

void ttx::Tab::layout ( dius::tty::WindowSize const & size,
u32 row,
u32 col )

◆ layout_group()

auto ttx::Tab::layout_group ( ) -> LayoutGroup&
inline

◆ layout_tree()

auto ttx::Tab::layout_tree ( ) const -> di::Optional<LayoutNode&>
inline

◆ name()

auto ttx::Tab::name ( ) const -> di::StringView
inline

◆ navigate()

void ttx::Tab::navigate ( NavigateDirection direction)

◆ panes()

auto ttx::Tab::panes ( ) const -> di::Ring<Pane*> const&
inline

◆ remove_pane()

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

◆ set_active()

auto ttx::Tab::set_active ( Pane * pane) -> bool

◆ set_is_active()

auto ttx::Tab::set_is_active ( bool b) -> bool

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