#[non_exhaustive]#[repr(i32)]pub enum BrushMappingMode {
Absolute = 0,
RelativeToBoundingBox = 1,
}Expand description
Noesis::BrushMappingMode: whether a Viewport/Viewbox
Rect is in absolute coordinates or relative to the bounding box. Ordinals
match the C++ enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Absolute = 0
Coordinates are absolute (local space).
RelativeToBoundingBox = 1
Coordinates are relative to the bounding box (0..=1).
Trait Implementations§
Source§impl Clone for BrushMappingMode
impl Clone for BrushMappingMode
Source§fn clone(&self) -> BrushMappingMode
fn clone(&self) -> BrushMappingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BrushMappingMode
Source§impl Debug for BrushMappingMode
impl Debug for BrushMappingMode
impl Eq for BrushMappingMode
Source§impl PartialEq for BrushMappingMode
impl PartialEq for BrushMappingMode
Source§fn eq(&self, other: &BrushMappingMode) -> bool
fn eq(&self, other: &BrushMappingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BrushMappingMode
Auto Trait Implementations§
impl Freeze for BrushMappingMode
impl RefUnwindSafe for BrushMappingMode
impl Send for BrushMappingMode
impl Sync for BrushMappingMode
impl Unpin for BrushMappingMode
impl UnsafeUnpin for BrushMappingMode
impl UnwindSafe for BrushMappingMode
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