pub struct Panel {
pub draw_info: Option<PanelDrawInfo>,
pub x: f64,
pub name: &'static str,
pub visible: bool,
/* private fields */
}
Expand description
A panel on the bar
Fields§
§draw_info: Option<PanelDrawInfo>
How to draw the panel.
x: f64
The current x-coordinate of the panel
name: &'static str
The name of the panel (taken from the name of the toml table that defines it)
visible: bool
Whether the panel is visible. To set this value on startup, see
PanelCommon
.
Implementations§
Source§impl Panel
impl Panel
Sourcepub fn new(
draw_info: Option<PanelDrawInfo>,
name: &'static str,
endpoint: Option<ChannelEndpoint<Event, EventResponse>>,
visible: bool,
) -> Self
pub fn new( draw_info: Option<PanelDrawInfo>, name: &'static str, endpoint: Option<ChannelEndpoint<Event, EventResponse>>, visible: bool, ) -> Self
Create a new panel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Panel
impl !RefUnwindSafe for Panel
impl !Send for Panel
impl !Sync for Panel
impl Unpin for Panel
impl !UnwindSafe for Panel
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