Struct flo_animation::brushes::BrushPreview
[−]
[src]
pub struct BrushPreview { /* fields omitted */ }
The brush preview structure is used to create and render a brush preview
Methods
impl BrushPreview
[src]
pub fn new() -> BrushPreview
[src]
pub fn select_brush(
&mut self,
brush: &BrushDefinition,
drawing_style: BrushDrawingStyle
)
[src]
&mut self,
brush: &BrushDefinition,
drawing_style: BrushDrawingStyle
)
Chooses the brush that we should draw with
pub fn set_brush_properties(&mut self, properties: &BrushProperties)
[src]
Sets the properties for the current brush
(Always sets the 'changed' flag)
pub fn continue_brush_stroke(&mut self, point: RawPoint)
[src]
Continues the current brush stroke
pub fn cancel_brush_stroke(&mut self)
[src]
Clears the preview
pub fn brush_definition_element(&self) -> BrushDefinitionElement
[src]
Creates the definition element for the current brush stroke
pub fn brush_properties_element(&self) -> BrushPropertiesElement
[src]
Creates the properties element for the current brush stroke
pub fn brush_element(&self) -> BrushElement
[src]
Creates the brush element for the current brush stroke
pub fn draw_current_brush_stroke(
&self,
gc: &mut GraphicsPrimitives,
update_brush_definition: bool,
update_properties: bool
)
[src]
&self,
gc: &mut GraphicsPrimitives,
update_brush_definition: bool,
update_properties: bool
)
Draws this preview brush stroke to the specified graphics object
pub fn commit_to_animation(
&mut self,
update_brush_definition: bool,
update_properties: bool,
when: Duration,
layer_id: u64,
animation: &Animation
)
[src]
&mut self,
update_brush_definition: bool,
update_properties: bool,
when: Duration,
layer_id: u64,
animation: &Animation
)
Commits this preview to an animation