Struct lazybar_core::bar::PanelDrawInfo
source · pub struct PanelDrawInfo {
pub width: i32,
pub height: i32,
pub dependence: Dependence,
pub draw_fn: PanelDrawFn,
}
Expand description
Information describing how to draw/redraw a Panel
.
Fields§
§width: i32
The width in pixels of the panel.
height: i32
The height in pixels of the panel.
dependence: Dependence
When the panel should be hidden
draw_fn: PanelDrawFn
A FnMut
that draws the panel to the cairo::Context
, starting at
(0, 0). Translating the Context is the responsibility of functions in
this module.
Implementations§
source§impl PanelDrawInfo
impl PanelDrawInfo
sourcepub const fn new(
dims: (i32, i32),
dependence: Dependence,
draw_fn: PanelDrawFn,
) -> Self
pub const fn new( dims: (i32, i32), dependence: Dependence, draw_fn: PanelDrawFn, ) -> Self
Creates a new PanelDrawInfo
from its components.
Auto Trait Implementations§
impl Freeze for PanelDrawInfo
impl !RefUnwindSafe for PanelDrawInfo
impl !Send for PanelDrawInfo
impl !Sync for PanelDrawInfo
impl Unpin for PanelDrawInfo
impl !UnwindSafe for PanelDrawInfo
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