pub struct Layer { /* private fields */ }Implementations§
Source§impl Layer
impl Layer
pub fn new(resolution: Resolution) -> Self
pub fn from_file(resolution: Resolution, path: &Path) -> Result<Self>
pub fn update(&mut self, frame_count: usize) -> Result<()>
pub fn add_linear_gradient(&mut self, gradient: LinearGradient)
pub fn get_linear_gradient(&self, id: &str) -> Option<Paint>
Trait Implementations§
Source§impl LayerLogic for Layer
impl LayerLogic for Layer
fn rtree(&self) -> Option<&Tree>
fn rtree_mut(&mut self) -> Option<&mut Tree>
fn add_to_defs(&mut self, kind: NodeKind) -> Result<Node>
fn add_to_root(&mut self, kind: NodeKind) -> Result<Node>
fn fill_with_link(&self, id: &str) -> Option<Fill>
fn add_animation<T: Animation + 'static>(&mut self, animation: T)
fn add_effect<T: EffectLogic + 'static>(&mut self, effect: T)
Auto Trait Implementations§
impl Freeze for Layer
impl !RefUnwindSafe for Layer
impl !Send for Layer
impl !Sync for Layer
impl Unpin for Layer
impl !UnwindSafe for Layer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more