Struct flo_animation::InkDefinition
[−]
[src]
pub struct InkDefinition { pub min_width: f32, pub max_width: f32, pub scale_up_distance: f32, }
Ink brushes are solid lines of varying width. This defines how they behave.
The actual behaviour is implemented by the InkBrush
structure.
Fields
min_width: f32
Width at pressure 0%
max_width: f32
Width at pressure 100%
scale_up_distance: f32
Methods
impl InkDefinition
[src]
pub fn default() -> InkDefinition
[src]
Creates the default ink definition
pub fn default_eraser() -> InkDefinition
[src]
Creates the default ink definition for the eraser brush
Trait Implementations
impl Clone for InkDefinition
[src]
fn clone(&self) -> InkDefinition
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for InkDefinition
[src]
fn eq(&self, __arg_0: &InkDefinition) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InkDefinition) -> bool
[src]
This method tests for !=
.