Struct femtovg::CompositeOperationState
source · pub struct CompositeOperationState { /* private fields */ }
Expand description
Determines how a new (“source”) data is displayed against an existing (“destination”) data.
Implementations§
source§impl CompositeOperationState
impl CompositeOperationState
sourcepub fn new(op: CompositeOperation) -> Self
pub fn new(op: CompositeOperation) -> Self
Creates a new CompositeOperationState from the provided CompositeOperation
sourcepub fn with_blend_factors(
src_factor: BlendFactor,
dst_factor: BlendFactor,
) -> Self
pub fn with_blend_factors( src_factor: BlendFactor, dst_factor: BlendFactor, ) -> Self
Creates a new CompositeOperationState with source and destination blend factors.
Trait Implementations§
source§impl Clone for CompositeOperationState
impl Clone for CompositeOperationState
source§fn clone(&self) -> CompositeOperationState
fn clone(&self) -> CompositeOperationState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompositeOperationState
impl Debug for CompositeOperationState
source§impl Default for CompositeOperationState
impl Default for CompositeOperationState
source§impl Hash for CompositeOperationState
impl Hash for CompositeOperationState
source§impl PartialEq for CompositeOperationState
impl PartialEq for CompositeOperationState
source§fn eq(&self, other: &CompositeOperationState) -> bool
fn eq(&self, other: &CompositeOperationState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompositeOperationState
impl PartialOrd for CompositeOperationState
source§fn partial_cmp(&self, other: &CompositeOperationState) -> Option<Ordering>
fn partial_cmp(&self, other: &CompositeOperationState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CompositeOperationState
impl Eq for CompositeOperationState
impl StructuralPartialEq for CompositeOperationState
Auto Trait Implementations§
impl Freeze for CompositeOperationState
impl RefUnwindSafe for CompositeOperationState
impl Send for CompositeOperationState
impl Sync for CompositeOperationState
impl Unpin for CompositeOperationState
impl UnwindSafe for CompositeOperationState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)