Struct flo_anim_sqlite::SqliteAnimation
[−]
[src]
pub struct SqliteAnimation { /* fields omitted */ }
Animation that uses a SQLite database as a backing store
Methods
impl SqliteAnimation
[src]
pub fn new_in_memory() -> SqliteAnimation
[src]
Creates a new in-memory animation
pub fn new_with_file<P: AsRef<Path>>(path: P) -> Result<SqliteAnimation>
[src]
Creates an animation in a file
pub fn set_up_existing_database(sqlite: Connection) -> Result<SqliteAnimation>
[src]
Takes an existing SQLite connection and creates a new animation in it
pub fn from_existing_database(sqlite: Connection) -> Result<SqliteAnimation>
[src]
Uses an existing SQLite connection with an animation in it to create an animation object
impl SqliteAnimation
[src]
pub fn retrieve_and_clear_error(&self) -> Option<Error>
[src]
If there has been an error, retrieves what it is and clears the condition
pub fn panic_on_error(&self)
[src]
Panics if this animation has reached an error condition
pub fn perform_edits(&self, edits: Vec<AnimationEdit>)
[src]
Convenience method that performs some edits on this animation
Trait Implementations
impl Animation for SqliteAnimation
[src]
fn size(&self) -> (f64, f64)
[src]
Retrieves the frame size of this animation Read more
fn get_layer_ids(&self) -> Vec<u64>
[src]
Retrieves the IDs of the layers in this object Read more
fn duration(&self) -> Duration
[src]
Retrieves the length of this animation Read more
fn frame_length(&self) -> Duration
[src]
Retrieves the duration of a single frame Read more
fn get_layer_with_id<'a>(&'a self, layer_id: u64) -> Option<Reader<'a, Layer>>
[src]
Retrieves the layer with the specified ID from this animation Read more
fn get_log<'a>(&'a self) -> Reader<'a, EditLog<AnimationEdit>>
[src]
Retrieves the log for this animation Read more
fn edit<'a>(&'a self) -> Editor<'a, PendingEditLog<AnimationEdit>>
[src]
Retrieves an edit log that can be used to alter this animation Read more
fn edit_layer<'a>(
&'a self,
layer_id: u64
) -> Editor<'a, PendingEditLog<LayerEdit>>
[src]
&'a self,
layer_id: u64
) -> Editor<'a, PendingEditLog<LayerEdit>>
Retrieves an edit log that can be used to edit a layer in this animation Read more