Struct rust_animation::play::Play
source · pub struct Play {
pub stretch: Option<Stretch>,
/* private fields */
}
Fields§
§stretch: Option<Stretch>
Implementations§
source§impl Play
impl Play
pub fn new( name: String, viewport_width: i32, viewport_height: i32, layout_mode: LayoutMode ) -> Self
pub fn new_actor( name: String, w: u32, h: u32, event_handler: Option<Box<dyn EventHandler>> ) -> Actor
pub fn add_new_actor_to_stage(&mut self, stage_name: &String, actor: Actor)
pub fn set_visible_stage(&mut self, name: &String, visible: bool)
pub fn add_stage(&mut self, stage: Actor) -> String
pub fn handle_input(&mut self, key: Key)
pub fn render(&mut self)
Auto Trait Implementations§
impl !RefUnwindSafe for Play
impl !Send for Play
impl !Sync for Play
impl Unpin for Play
impl !UnwindSafe for Play
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