pub struct Gizmos { /* private fields */ }Expand description
What one frame hands in: the gizmos of the channels that are on, in
the order they were pushed, and every channel offered, on or off. It
knows the frame’s pixels (frame), so a helper can keep
its gizmos on it.
Implementations§
Source§impl Gizmos
impl Gizmos
Sourcepub fn within(self, pixels: PxRect) -> Self
pub fn within(self, pixels: PxRect) -> Self
The same list for a frame of pixels (the buffer’s
pixel_bounds).
Sourcepub fn frame(&self) -> PxRect
pub fn frame(&self) -> PxRect
The frame’s pixels: what a helper keeps its gizmos inside. Nearly
all of i32 unless the list was told (within);
the game tells it the buffer’s.
Sourcepub fn with_on<'a>(ids: impl IntoIterator<Item = &'a str>) -> Self
pub fn with_on<'a>(ids: impl IntoIterator<Item = &'a str>) -> Self
A frame’s list with the channels of these ids on.
Sourcepub fn channel_on(&mut self, channel: Channel) -> bool
pub fn channel_on(&mut self, channel: Channel) -> bool
Whether channel is on, which also offers it (the debug menu lists
it). A channel’s helper asks first and does nothing more when it is
off.
Trait Implementations§
impl Eq for Gizmos
impl StructuralPartialEq for Gizmos
Auto Trait Implementations§
impl Freeze for Gizmos
impl RefUnwindSafe for Gizmos
impl Send for Gizmos
impl Sync for Gizmos
impl Unpin for Gizmos
impl UnsafeUnpin for Gizmos
impl UnwindSafe for Gizmos
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