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

Time index of this frame relative to its keyframe

Renders this frame to a particular graphics context

Attempts to retrieve the vector elements associated with this frame, if there are any

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)

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)

Implementors