Struct flo_animation::brushes::InkBrush
[−]
[src]
pub struct InkBrush { /* fields omitted */ }
The ink brush draws a solid line with width based on pressure
Methods
impl InkBrush
[src]
pub fn new(
definition: &InkDefinition,
drawing_style: BrushDrawingStyle
) -> InkBrush
[src]
definition: &InkDefinition,
drawing_style: BrushDrawingStyle
) -> InkBrush
Creates a new ink brush with the default settings
Trait Implementations
impl Brush for InkBrush
[src]
fn brush_points_for_raw_points(&self, points: &[RawPoint]) -> Vec<BrushPoint>
[src]
Returns the brush points for rendering given a particular set of raw points Read more
fn prepare_to_render<'a>(
&'a self,
properties: &BrushProperties
) -> Box<Iterator<Item = Draw> + 'a>
[src]
&'a self,
properties: &BrushProperties
) -> Box<Iterator<Item = Draw> + 'a>
One or more brush strokes of this type are about to be rendered. This brush should set up the graphics context appropriately. Read more
fn render_brush<'a>(
&'a self,
properties: &'a BrushProperties,
points: &'a Vec<BrushPoint>
) -> Box<Iterator<Item = Draw> + 'a>
[src]
&'a self,
properties: &'a BrushProperties,
points: &'a Vec<BrushPoint>
) -> Box<Iterator<Item = Draw> + 'a>
Renders a brush stroke to the specified graphics context Read more
fn to_definition(&self) -> (BrushDefinition, BrushDrawingStyle)
[src]
Retrieves the definition for this brush