Graphics draw state used for blending, clipping and stencil rendering.
Scissor mask to use. If set, no pixel outside of this
rectangle (in screen space) will be written to as a result of rendering.
Stencil test to use. If None, no stencil testing is done.
Blend function to use. If None, blending is disabled.
Draws to stencil buffer with value 255.
This can be used for clipping.
Tests against stencil buffer with value 255.
Draws inside the shape defined by stencil buffer.
Tests against stencil buffer with value 255.
Draws outside the shape defined by stencil buffer.
Sets scissor [x, y, w, h]
.
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static