pub struct Director { /* private fields */ }
Implementations
sourceimpl Director
impl Director
sourcepub fn set_size(width: f32, height: f32)
pub fn set_size(width: f32, height: f32)
Sets the ideal size of the scenes in this director. By default, the size is the full stage width and height. This size is used by some transitions, such as SlideTransition.
pub fn push_scene(scene: Entity, transition: Option<Transition>)
pub fn pop_scene(transition: Option<Transition>)
sourcepub fn unwind_to_scene(&self, scene: Entity, transition: Option<Transition>)
pub fn unwind_to_scene(&self, scene: Entity, transition: Option<Transition>)
Pops the scene stack until the given entity is the top scene, or adds the scene if the stack becomes empty while popping.
pub fn on_added(&self)
pub fn on_removed(&self)
pub fn on_update(&self, dt: f32)
pub fn width() -> f32
pub fn height() -> f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Director
impl Send for Director
impl Sync for Director
impl Unpin for Director
impl UnwindSafe for Director
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.