pub struct GizmoItem {
pub channel: &'static str,
pub role: GizmoRole,
pub shape: GizmoShape,
pub color: Rgb,
pub clip: PxRect,
}Expand description
A gizmo in the frame: its channel’s id and role (for the snapshot), its shape, the colour the debug skin gave its role, and the part of the frame it is drawn in.
Fields§
§channel: &'static strThe id of its channel (grid).
role: GizmoRoleWhat it shows.
shape: GizmoShapeIts shape.
color: RgbIts colour.
clip: PxRectThe pixels it may draw in: its shape’s bounds
to start with (a label’s: the cells its text was printed in),
clipped to the buffer when added.
Implementations§
Trait Implementations§
impl Copy for GizmoItem
impl Eq for GizmoItem
impl StructuralPartialEq for GizmoItem
Auto Trait Implementations§
impl Freeze for GizmoItem
impl RefUnwindSafe for GizmoItem
impl Send for GizmoItem
impl Sync for GizmoItem
impl Unpin for GizmoItem
impl UnsafeUnpin for GizmoItem
impl UnwindSafe for GizmoItem
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