pub struct SceneCommand { /* private fields */ }Expand description
Draw command with layer and stable insertion order metadata.
Implementations§
Source§impl SceneCommand
impl SceneCommand
Sourcepub fn depth(&self) -> f32
pub fn depth(&self) -> f32
Returns caller-defined pseudo-depth captured by this command.
Depth affects camera projection only. Commands on one layer retain their insertion order regardless of depth.
Sourcepub fn screen_clip(&self) -> Option<ScreenClipRect>
pub fn screen_clip(&self) -> Option<ScreenClipRect>
Returns the optional clip captured when the command was appended.
Sourcepub fn command(&self) -> &DrawCommand
pub fn command(&self) -> &DrawCommand
Returns the visual primitive stored by this command.
Trait Implementations§
Source§impl Clone for SceneCommand
impl Clone for SceneCommand
Source§fn clone(&self) -> SceneCommand
fn clone(&self) -> SceneCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneCommand
impl RefUnwindSafe for SceneCommand
impl Send for SceneCommand
impl Sync for SceneCommand
impl Unpin for SceneCommand
impl UnsafeUnpin for SceneCommand
impl UnwindSafe for SceneCommand
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