pub struct TuiRenderer { /* private fields */ }
Expand description
Handles all rendering operations for the TUI
Implementations§
Source§impl TuiRenderer
impl TuiRenderer
pub fn new() -> Self
Sourcepub fn render_status_line(
f: &mut Frame<'_>,
area: Rect,
mode: AppMode,
buffer: &dyn BufferAPI,
message: &str,
)
pub fn render_status_line( f: &mut Frame<'_>, area: Rect, mode: AppMode, buffer: &dyn BufferAPI, message: &str, )
Render the main status line at the bottom of the screen
Sourcepub fn render_table(
f: &mut Frame<'_>,
area: Rect,
results: &QueryResponse,
_selected_row: Option<usize>,
_current_column: usize,
_pinned_columns: &[usize],
)
pub fn render_table( f: &mut Frame<'_>, area: Rect, results: &QueryResponse, _selected_row: Option<usize>, _current_column: usize, _pinned_columns: &[usize], )
Render the results table
Sourcepub fn render_help(f: &mut Frame<'_>, area: Rect, scroll_offset: u16)
pub fn render_help(f: &mut Frame<'_>, area: Rect, scroll_offset: u16)
Render the help screen
Sourcepub fn render_debug(
f: &mut Frame<'_>,
area: Rect,
debug_content: &str,
scroll_offset: u16,
)
pub fn render_debug( f: &mut Frame<'_>, area: Rect, debug_content: &str, scroll_offset: u16, )
Render the debug view
Sourcepub fn render_history(
f: &mut Frame<'_>,
area: Rect,
history_items: &[String],
selected_index: usize,
)
pub fn render_history( f: &mut Frame<'_>, area: Rect, history_items: &[String], selected_index: usize, )
Render the history view
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiRenderer
impl RefUnwindSafe for TuiRenderer
impl Send for TuiRenderer
impl Sync for TuiRenderer
impl Unpin for TuiRenderer
impl UnwindSafe for TuiRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more