#[non_exhaustive]pub enum Gizmo {
Rect {
rect: PxRect,
},
Line {
from: (i32, i32),
to: (i32, i32),
},
Cross {
at: (i32, i32),
size: u8,
},
Circle {
center: (i32, i32),
radius: u16,
},
Label {
at: (i32, i32),
text: String,
},
}Expand description
A shape the debug view draws over the frame, in console pixels, like
the frame’s items. Its colour comes from its role
(GizmoRole::color), never from the screen.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rect
The outline of a rectangle, one pixel wide, inside it.
Line
A line one pixel wide, both ends drawn.
Cross
A plus, size pixels each way from its centre.
Circle
The outline of a circle, 2 × radius + 1 pixels across.
Label
Text, ASCII only (debug tools are English only), in the glyph
cells from the one holding pixel at, in the frame’s font. Up to
LABEL_MAX characters are kept.
Trait Implementations§
impl Eq for Gizmo
impl StructuralPartialEq for Gizmo
Auto Trait Implementations§
impl Freeze for Gizmo
impl RefUnwindSafe for Gizmo
impl Send for Gizmo
impl Sync for Gizmo
impl Unpin for Gizmo
impl UnsafeUnpin for Gizmo
impl UnwindSafe for Gizmo
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