Loading [MathJax]/jax/output/HTML-CSS/config.js
ttx 0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ttx::Pane Class Reference

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

Public Member Functions

 Pane (dius::SyncFile pty_controller, dius::system::ProcessHandle process, di::Function< void(Pane &)> did_exit, di::Function< void(Pane &)> did_update, di::Function< void(di::Span< byte const >)> did_selection, di::Function< void(di::StringView)> apc_passthrough)
 
 ~Pane ()
 
auto draw (Renderer &renderer) -> RenderedCursor
 
auto event (KeyEvent const &event) -> bool
 
auto event (MouseEvent const &event) -> bool
 
auto event (FocusEvent const &event) -> bool
 
auto event (PasteEvent const &event) -> bool
 
void invalidate_all ()
 
void resize (dius::tty::WindowSize const &size)
 
void scroll (Direction direction, i32 amount_in_cells)
 
auto save_state (di::PathView path) -> di::Result<>
 
void stop_capture ()
 
void exit ()
 

Static Public Member Functions

static auto create_from_replay (di::PathView replay_path, di::Optional< di::Path > save_state_path, dius::tty::WindowSize size, di::Function< void(Pane &)> did_exit, di::Function< void(Pane &)> did_update, di::Function< void(di::Span< byte const >)> did_selection, di::Function< void(di::StringView)> apc_passthrough) -> di::Result< di::Box< Pane > >
 
static auto create (CreatePaneArgs args, dius::tty::WindowSize size, di::Function< void(Pane &)> did_exit, di::Function< void(Pane &)> did_update, di::Function< void(di::Span< byte const >)> did_selection, di::Function< void(di::StringView)> apc_passthrough) -> di::Result< di::Box< Pane > >
 
static auto create_mock () -> di::Box< Pane >
 

Constructor & Destructor Documentation

◆ Pane()

ttx::Pane::Pane ( dius::SyncFile pty_controller,
dius::system::ProcessHandle process,
di::Function< void(Pane &)> did_exit,
di::Function< void(Pane &)> did_update,
di::Function< void(di::Span< byte const >)> did_selection,
di::Function< void(di::StringView)> apc_passthrough )
inlineexplicit

◆ ~Pane()

ttx::Pane::~Pane ( )

Member Function Documentation

◆ create()

auto ttx::Pane::create ( CreatePaneArgs args,
dius::tty::WindowSize size,
di::Function< void(Pane &)> did_exit,
di::Function< void(Pane &)> did_update,
di::Function< void(di::Span< byte const >)> did_selection,
di::Function< void(di::StringView)> apc_passthrough ) -> di::Result<di::Box<Pane>>
static

◆ create_from_replay()

auto ttx::Pane::create_from_replay ( di::PathView replay_path,
di::Optional< di::Path > save_state_path,
dius::tty::WindowSize size,
di::Function< void(Pane &)> did_exit,
di::Function< void(Pane &)> did_update,
di::Function< void(di::Span< byte const >)> did_selection,
di::Function< void(di::StringView)> apc_passthrough ) -> di::Result<di::Box<Pane>>
static

◆ create_mock()

auto ttx::Pane::create_mock ( ) -> di::Box<Pane>
static

◆ draw()

auto ttx::Pane::draw ( Renderer & renderer) -> RenderedCursor

◆ event() [1/4]

auto ttx::Pane::event ( FocusEvent const & event) -> bool

◆ event() [2/4]

auto ttx::Pane::event ( KeyEvent const & event) -> bool

◆ event() [3/4]

auto ttx::Pane::event ( MouseEvent const & event) -> bool

◆ event() [4/4]

auto ttx::Pane::event ( PasteEvent const & event) -> bool

◆ exit()

void ttx::Pane::exit ( )

◆ invalidate_all()

void ttx::Pane::invalidate_all ( )

◆ resize()

void ttx::Pane::resize ( dius::tty::WindowSize const & size)

◆ save_state()

auto ttx::Pane::save_state ( di::PathView path) -> di::Result<>

◆ scroll()

void ttx::Pane::scroll ( Direction direction,
i32 amount_in_cells )

◆ stop_capture()

void ttx::Pane::stop_capture ( )

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