pub struct Layout {Show 38 fields
pub id: String,
pub title: Option<String>,
pub refresh_interval: Option<u64>,
pub children: Option<Vec<MuxBox>>,
pub fill: Option<bool>,
pub fill_char: Option<char>,
pub selected_fill_char: Option<char>,
pub border: Option<bool>,
pub border_color: Option<String>,
pub selected_border_color: Option<String>,
pub bg_color: Option<String>,
pub selected_bg_color: Option<String>,
pub fg_color: Option<String>,
pub selected_fg_color: Option<String>,
pub title_fg_color: Option<String>,
pub title_bg_color: Option<String>,
pub title_position: Option<String>,
pub selected_title_bg_color: Option<String>,
pub selected_title_fg_color: Option<String>,
pub menu_fg_color: Option<String>,
pub menu_bg_color: Option<String>,
pub selected_menu_fg_color: Option<String>,
pub selected_menu_bg_color: Option<String>,
pub error_border_color: Option<String>,
pub error_bg_color: Option<String>,
pub error_fg_color: Option<String>,
pub error_title_bg_color: Option<String>,
pub error_title_fg_color: Option<String>,
pub error_selected_border_color: Option<String>,
pub error_selected_bg_color: Option<String>,
pub error_selected_fg_color: Option<String>,
pub error_selected_title_bg_color: Option<String>,
pub error_selected_title_fg_color: Option<String>,
pub overflow_behavior: Option<String>,
pub root: Option<bool>,
pub on_keypress: Option<HashMap<String, Vec<String>>>,
pub active: Option<bool>,
pub muxbox_ids_in_tab_order: Option<Vec<String>>,
}Fields§
§id: String§title: Option<String>§refresh_interval: Option<u64>§children: Option<Vec<MuxBox>>§fill: Option<bool>§fill_char: Option<char>§selected_fill_char: Option<char>§border: Option<bool>§border_color: Option<String>§selected_border_color: Option<String>§bg_color: Option<String>§selected_bg_color: Option<String>§fg_color: Option<String>§selected_fg_color: Option<String>§title_fg_color: Option<String>§title_bg_color: Option<String>§title_position: Option<String>§selected_title_bg_color: Option<String>§selected_title_fg_color: Option<String>§error_border_color: Option<String>§error_bg_color: Option<String>§error_fg_color: Option<String>§error_title_bg_color: Option<String>§error_title_fg_color: Option<String>§error_selected_border_color: Option<String>§error_selected_bg_color: Option<String>§error_selected_fg_color: Option<String>§error_selected_title_bg_color: Option<String>§error_selected_title_fg_color: Option<String>§overflow_behavior: Option<String>§root: Option<bool>§on_keypress: Option<HashMap<String, Vec<String>>>§active: Option<bool>§muxbox_ids_in_tab_order: Option<Vec<String>>Implementations§
Source§impl Layout
impl Layout
pub fn new() -> Self
pub fn get_muxbox_by_id(&self, id: &str) -> Option<&MuxBox>
pub fn get_muxbox_by_id_mut(&mut self, id: &str) -> Option<&mut MuxBox>
pub fn get_selected_muxboxes(&self) -> Vec<&MuxBox>
pub fn select_only_muxbox(&mut self, id: &str)
pub fn get_muxboxes_in_tab_order(&mut self) -> Vec<&MuxBox>
pub fn get_all_muxboxes(&self) -> Vec<&MuxBox>
pub fn select_next_muxbox(&mut self)
pub fn select_previous_muxbox(&mut self)
pub fn deselect_all_muxboxes(&mut self)
pub fn replace_muxbox_recursive( &mut self, replacement_muxbox: &MuxBox, ) -> Option<bool>
pub fn find_muxbox_with_choice(&self, choice_id: &str) -> Option<&MuxBox>
pub fn find_muxbox_at_coordinates(&self, x: u16, y: u16) -> Option<&MuxBox>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layout
impl<'de> Deserialize<'de> for Layout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Updatable for Layout
impl Updatable for Layout
fn generate_diff(&self, other: &Self) -> Vec<FieldUpdate>
fn apply_updates(&mut self, updates: Vec<FieldUpdate>)
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.