Struct three_d::core::ScissorBox
source · [−]Expand description
Defines the part of the screen or render target that is rendered to. All pixels outside of the scissor box will not be modified. All values should be given in physical pixels.
Fields
x: i32The distance in pixels from the left edge of the target.
y: i32The distance in pixels from the bottom edge of the target.
width: u32The width of the box.
height: u32The height of the box.
Implementations
sourceimpl ScissorBox
impl ScissorBox
sourcepub fn new_at_origo(width: u32, height: u32) -> Self
pub fn new_at_origo(width: u32, height: u32) -> Self
Creates a new scissor box which starts at origo (x and y are both zero).
Trait Implementations
sourceimpl Clone for ScissorBox
impl Clone for ScissorBox
sourcefn clone(&self) -> ScissorBox
fn clone(&self) -> ScissorBox
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ScissorBox
impl Debug for ScissorBox
sourceimpl From<ScissorBox> for Viewport
impl From<ScissorBox> for Viewport
sourcefn from(viewport: ScissorBox) -> Self
fn from(viewport: ScissorBox) -> Self
Converts to this type from the input type.
sourceimpl From<Viewport> for ScissorBox
impl From<Viewport> for ScissorBox
sourceimpl PartialEq<ScissorBox> for ScissorBox
impl PartialEq<ScissorBox> for ScissorBox
sourcefn eq(&self, other: &ScissorBox) -> bool
fn eq(&self, other: &ScissorBox) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ScissorBox) -> bool
fn ne(&self, other: &ScissorBox) -> bool
This method tests for !=.
impl Copy for ScissorBox
impl StructuralPartialEq for ScissorBox
Auto Trait Implementations
impl RefUnwindSafe for ScissorBox
impl Send for ScissorBox
impl Sync for ScissorBox
impl Unpin for ScissorBox
impl UnwindSafe for ScissorBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more