pub enum Clip {
Enabled {
x: u32,
y: u32,
width: u32,
height: u32,
},
Disabled,
}
Expand description
Defines the rectangle of pixels to write to in a render call.
Only render inside the defined rectangle of the screen/render target.
Fields of Enabled
The distance in pixels from the left edge of the screen/render target.
The distance in pixels from the top edge of the screen/render target.
The width of the rectangle.
The height of the rectangle.
Render inside the entire screen/render target.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,