Struct shanimation_rs::renderable::RenderableParams
source · pub struct RenderableParams {
pub scale: Point<f64>,
pub position: Point<f64>,
pub size: Point<f64>,
pub rotation: f64,
/* private fields */
}Fields§
§scale: Point<f64>§position: Point<f64>§size: Point<f64>§rotation: f64Implementations§
source§impl RenderableParams
impl RenderableParams
pub fn add_child(&mut self, child: Arc<RwLock<Renderable>>)
sourcepub fn add_child_simple(&mut self, child: Renderable) -> Arc<RwLock<Renderable>>
pub fn add_child_simple(&mut self, child: Renderable) -> Arc<RwLock<Renderable>>
Creates an Arc<RwLock
pub fn get_children(&self) -> &Vec<Arc<RwLock<Renderable>>>
pub fn get_children_mut(&mut self) -> &mut Vec<Arc<RwLock<Renderable>>>
Trait Implementations§
source§impl Clone for RenderableParams
impl Clone for RenderableParams
source§fn clone(&self) -> RenderableParams
fn clone(&self) -> RenderableParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for RenderableParams
impl Send for RenderableParams
impl Sync for RenderableParams
impl Unpin for RenderableParams
impl UnwindSafe for RenderableParams
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