pub struct StatusDeck {
pub sections: Vec<StatusDeckSection>,
pub tokens: ThemeTokens,
pub row_limit: Option<usize>,
pub visibility: RightPaneVisibility,
pub region_id: Option<WidgetId>,
}Fields§
§sections: Vec<StatusDeckSection>§tokens: ThemeTokens§row_limit: Option<usize>§visibility: RightPaneVisibility§region_id: Option<WidgetId>Implementations§
Source§impl StatusDeck
impl StatusDeck
pub fn new() -> Self
pub fn with_tokens(self, tokens: ThemeTokens) -> Self
pub fn with_region_id(self, id: impl Into<WidgetId>) -> Self
pub fn with_row_limit(self, limit: usize) -> Self
pub fn with_visibility(self, visibility: RightPaneVisibility) -> Self
pub fn with_section(self, section: StatusDeckSection) -> Self
pub fn add_section(&mut self, section: StatusDeckSection)
pub fn set_pane_visible(&mut self, pane: &str, visible: bool)
pub fn pane_visible(&self, pane: &str) -> bool
pub fn render_with_interaction( &self, buffer: &mut Buffer, area: Rect, layer: &mut InteractionLayer, )
Trait Implementations§
Source§impl Clone for StatusDeck
impl Clone for StatusDeck
Source§fn clone(&self) -> StatusDeck
fn clone(&self) -> StatusDeck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusDeck
impl Debug for StatusDeck
Source§impl Default for StatusDeck
impl Default for StatusDeck
Auto Trait Implementations§
impl Freeze for StatusDeck
impl RefUnwindSafe for StatusDeck
impl Send for StatusDeck
impl Sync for StatusDeck
impl Unpin for StatusDeck
impl UnsafeUnpin for StatusDeck
impl UnwindSafe for StatusDeck
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