Struct lazybar_core::PanelCommonBuilder
source · pub struct PanelCommonBuilder { /* private fields */ }
Expand description
Builder for PanelCommon
.
Implementations§
source§impl PanelCommonBuilder
impl PanelCommonBuilder
sourcepub fn formats(&mut self, value: Vec<String>) -> &mut Self
pub fn formats(&mut self, value: Vec<String>) -> &mut Self
The format strings used by the panel
sourcepub fn dependence(&mut self, value: Dependence) -> &mut Self
pub fn dependence(&mut self, value: Dependence) -> &mut Self
Whether the panel depends on its neighbors
sourcepub fn attrs(&mut self, value: Vec<Attrs>) -> &mut Self
pub fn attrs(&mut self, value: Vec<Attrs>) -> &mut Self
The instances of Attrs
used by the panel
sourcepub fn actions(&mut self, value: Actions) -> &mut Self
pub fn actions(&mut self, value: Actions) -> &mut Self
The events that should be run on mouse events
sourcepub fn ramps(&mut self, value: Vec<Ramp>) -> &mut Self
pub fn ramps(&mut self, value: Vec<Ramp>) -> &mut Self
The ramps that are available for use in format strings
sourcepub fn visible(&mut self, value: bool) -> &mut Self
pub fn visible(&mut self, value: bool) -> &mut Self
Whether the panel should be visible on startup
sourcepub fn build(&self) -> Result<PanelCommon, PanelCommonBuilderError>
pub fn build(&self) -> Result<PanelCommon, PanelCommonBuilderError>
Trait Implementations§
source§impl Clone for PanelCommonBuilder
impl Clone for PanelCommonBuilder
source§fn clone(&self) -> PanelCommonBuilder
fn clone(&self) -> PanelCommonBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PanelCommonBuilder
impl RefUnwindSafe for PanelCommonBuilder
impl Send for PanelCommonBuilder
impl Sync for PanelCommonBuilder
impl Unpin for PanelCommonBuilder
impl UnwindSafe for PanelCommonBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)