Trait flo_animation::Frame
[−]
[src]
pub trait Frame: Send + Sync { fn time_index(&self) -> Duration; fn render_to(&self, gc: &mut GraphicsPrimitives); fn vector_elements<'a>(
&'a self
) -> Option<Box<Iterator<Item = Vector> + 'a>>; fn active_brush(&self) -> Option<(BrushDefinition, BrushDrawingStyle)>; fn active_brush_properties(&self) -> Option<BrushProperties>; }
Represents a single frame in a layer of an animation
Required Methods
fn time_index(&self) -> Duration
Time index of this frame relative to its keyframe
fn render_to(&self, gc: &mut GraphicsPrimitives)
Renders this frame to a particular graphics context
fn vector_elements<'a>(&'a self) -> Option<Box<Iterator<Item = Vector> + 'a>>
Attempts to retrieve the vector elements associated with this frame, if there are any
fn active_brush(&self) -> Option<(BrushDefinition, BrushDrawingStyle)>
The brush that is active after all the elements are drawn in this frame
(If new elements are added to the layer at the time index of this frame, this is the brush that will be used)
fn active_brush_properties(&self) -> Option<BrushProperties>
The brush properties that are active after all the elements are drawn in this frame.
(If new elements are added to the layer at the time index of this frame, these are the properties that will be used)