Struct conrod_piston::draw::DrawState [−][src]
pub struct DrawState { pub scissor: Option<[u32; 4]>, pub stencil: Option<Stencil>, pub blend: Option<Blend>, }
Expand description
Graphics draw state used for blending, clipping and stencil rendering.
Fields
scissor: Option<[u32; 4]>
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: Option<Stencil>
Stencil test to use. If None, no stencil testing is done.
blend: Option<Blend>
Blend function to use. If None, blending is disabled.
Implementations
impl DrawState
[src]
impl DrawState
[src]pub fn new_clip() -> DrawState
[src]
pub fn new_clip() -> DrawState
[src]Draws to stencil buffer with value 255. This can be used for clipping.
For nested clipping, clear the stencil buffer and use DrawState::new_increment
.
pub fn new_increment() -> DrawState
[src]
pub fn new_increment() -> DrawState
[src]Increases stencil buffer. This can be used for nested clipping.
pub fn new_inside() -> DrawState
[src]
pub fn new_inside() -> DrawState
[src]Tests against stencil buffer with value 255. Draws inside the shape defined by stencil buffer.
pub fn new_outside() -> DrawState
[src]
pub fn new_outside() -> DrawState
[src]Tests against stencil buffer with value 255. Draws outside the shape defined by stencil buffer.
Trait Implementations
impl PartialOrd<DrawState> for DrawState
[src]
impl PartialOrd<DrawState> for DrawState
[src]pub fn partial_cmp(&self, other: &DrawState) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &DrawState) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for DrawState
[src]
impl StructuralPartialEq for DrawState
[src]
Auto Trait Implementations
impl RefUnwindSafe for DrawState
impl Send for DrawState
impl Sync for DrawState
impl Unpin for DrawState
impl UnwindSafe for DrawState
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,