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_layer( name: String, w: u32, h: u32, event_handler: Option<Box<dyn EventHandler>>, ) -> RALayer
pub fn add_new_layer_to_stage(&mut self, stage_name: &String, layer: RALayer)
pub fn set_visible_stage(&mut self, name: &String, visible: bool)
pub fn add_stage(&mut self, stage: RALayer) -> String
pub fn handle_input(&mut self, key: Key)
pub fn render(&mut self)
Auto Trait Implementations§
impl Freeze for Play
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
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