pub struct LayoutCoordinator {
pub width: u16,
pub height: u16,
pub min_width: u16,
pub min_height: u16,
}Expand description
Layout coordinator for managing widget positioning
Fields§
§width: u16Terminal width
height: u16Terminal height
min_width: u16Minimum width requirement
min_height: u16Minimum height requirement
Implementations§
Source§impl LayoutCoordinator
impl LayoutCoordinator
Sourcepub fn layout_chat(&self) -> Result<ChatLayout>
pub fn layout_chat(&self) -> Result<ChatLayout>
Get layout for chat mode
Sourcepub fn layout_diff(&self) -> Result<DiffLayout>
pub fn layout_diff(&self) -> Result<DiffLayout>
Get layout for diff mode
Sourcepub fn layout_command(&self) -> Result<CommandLayout>
pub fn layout_command(&self) -> Result<CommandLayout>
Get layout for command mode
Sourcepub fn layout_help(&self) -> Result<HelpLayout>
pub fn layout_help(&self) -> Result<HelpLayout>
Get layout for help mode
Sourcepub fn update_size(&mut self, width: u16, height: u16)
pub fn update_size(&mut self, width: u16, height: u16)
Update terminal size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutCoordinator
impl RefUnwindSafe for LayoutCoordinator
impl Send for LayoutCoordinator
impl Sync for LayoutCoordinator
impl Unpin for LayoutCoordinator
impl UnwindSafe for LayoutCoordinator
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