pub struct GrabOptions {
pub brush: Brush,
pub direction: [f32; 3],
}Expand description
Options for grab.
Fields§
§brush: BrushThe brush to apply.
direction: [f32; 3]The drag vector in local coordinates: each region vertex moves
strength * falloff * direction. Must be finite; a zero vector moves
nothing.
Implementations§
Source§impl GrabOptions
impl GrabOptions
Sourcepub fn builder() -> GrabOptionsBuilder
pub fn builder() -> GrabOptionsBuilder
A builder for GrabOptions: the default brush until set, no drag.
Trait Implementations§
Source§impl Clone for GrabOptions
impl Clone for GrabOptions
Source§fn clone(&self) -> GrabOptions
fn clone(&self) -> GrabOptions
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 GrabOptions
Source§impl Debug for GrabOptions
impl Debug for GrabOptions
Source§impl Default for GrabOptions
impl Default for GrabOptions
Source§fn default() -> GrabOptions
fn default() -> GrabOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for GrabOptions
impl PartialEq for GrabOptions
impl StructuralPartialEq for GrabOptions
Auto Trait Implementations§
impl Freeze for GrabOptions
impl RefUnwindSafe for GrabOptions
impl Send for GrabOptions
impl Sync for GrabOptions
impl Unpin for GrabOptions
impl UnsafeUnpin for GrabOptions
impl UnwindSafe for GrabOptions
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