Struct flo_animation::BrushDefinitionElement
[−]
[src]
pub struct BrushDefinitionElement { /* fields omitted */ }
Element representing selecting a new brush definition
Methods
impl BrushDefinitionElement
[src]
pub fn new(
id: ElementId,
new_definition: BrushDefinition,
drawing_style: BrushDrawingStyle
) -> BrushDefinitionElement
[src]
id: ElementId,
new_definition: BrushDefinition,
drawing_style: BrushDrawingStyle
) -> BrushDefinitionElement
Creates a new brush properties vector element
pub fn definition<'a>(&'a self) -> &'a BrushDefinition
[src]
Retrieves the brush definition for this element
pub fn drawing_style(&self) -> BrushDrawingStyle
[src]
Retrieves the drawing style for this element
Trait Implementations
impl Clone for BrushDefinitionElement
[src]
fn clone(&self) -> BrushDefinitionElement
[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 VectorElement for BrushDefinitionElement
[src]
fn id(&self) -> ElementId
[src]
The ID of this vector element
fn render(&self, gc: &mut GraphicsPrimitives, properties: &VectorProperties)
[src]
Renders this vector element
fn update_properties(&self, properties: &mut VectorProperties)
[src]
Updates the vector properties for future elements
fn to_path(&self, _properties: &VectorProperties) -> Option<Vec<Path>>
[src]
Retrieves the paths for this element, if there are any