pub struct PanelCommonBuilder { /* private fields */ }
Expand description
Builder for PanelCommon
.
Implementations§
Source§impl PanelCommonBuilder
impl PanelCommonBuilder
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 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 images(&mut self, value: Vec<Image>) -> &mut Self
pub fn images(&mut self, value: Vec<Image>) -> &mut Self
The images that will be displayed on the bar
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 duplicate 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