pub struct BarConfigBuilder { /* private fields */ }
Expand description
Builder for BarConfig
.
Implementations§
Source§impl BarConfigBuilder
impl BarConfigBuilder
pub fn left(self, value: Vec<Box<dyn PanelConfig>>) -> Self
pub fn center(self, value: Vec<Box<dyn PanelConfig>>) -> Self
pub fn right(self, value: Vec<Box<dyn PanelConfig>>) -> Self
Sourcepub fn position(self, value: Position) -> Self
pub fn position(self, value: Position) -> Self
Whether the bar should be rendered at the top or bottom of the screen
Sourcepub fn transparent(self, value: bool) -> Self
pub fn transparent(self, value: bool) -> Self
Whether the bar can be transparent. The background color still applies!
Sourcepub fn bg(self, value: Color) -> Self
pub fn bg(self, value: Color) -> Self
The background color. Supports transparency if transparent
is
true.
Sourcepub fn margins(self, value: Margins) -> Self
pub fn margins(self, value: Margins) -> Self
The minimum gaps between the edges of the screen and panel
sections. See Margins
for details.
Sourcepub fn attrs(self, value: Attrs) -> Self
pub fn attrs(self, value: Attrs) -> Self
The default attributes of panels on the bar. See Attrs
for
details.
Sourcepub fn reverse_scroll(self, value: bool) -> Self
pub fn reverse_scroll(self, value: bool) -> Self
Whether to reverse the scrolling direction for panel events.
Sourcepub fn ipc(self, value: bool) -> Self
pub fn ipc(self, value: bool) -> Self
Whether inter-process communication (via Unix socket) is enabled.
See crate::ipc
for details.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BarConfigBuilder
impl !RefUnwindSafe for BarConfigBuilder
impl !Send for BarConfigBuilder
impl !Sync for BarConfigBuilder
impl Unpin for BarConfigBuilder
impl !UnwindSafe for BarConfigBuilder
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