pub struct RetainedApp<T: ViewState> { /* private fields */ }Implementations§
Source§impl<T: ViewState> RetainedApp<T>
impl<T: ViewState> RetainedApp<T>
pub fn simple( title: impl ToString, producer: impl FnMut(ChangeNotifier) -> View<T>, )
pub fn simple_scaled( title: impl ToString, scaling: CoordsMappingScaling, producer: impl FnMut(ChangeNotifier) -> View<T>, )
pub fn simple_fullscreen( title: impl ToString, producer: impl FnMut(ChangeNotifier) -> View<T>, )
pub fn simple_fullscreen_scaled( title: impl ToString, scaling: CoordsMappingScaling, producer: impl FnMut(ChangeNotifier) -> View<T>, )
pub fn redraw( self, f: impl FnMut(f32, &mut Graphics<Vertex>, &mut TextRenderer<Color>, &mut AppControl) + 'static, ) -> Self
pub fn event( self, f: impl FnMut(&mut Application, Event<'_, ()>, &mut Window, &mut DefaultInteractionsEngine) -> bool + 'static, ) -> Self
pub fn setup(self, f: impl FnMut(&mut Application)) -> Self
pub fn setup_interactions( self, f: impl FnMut(&mut AppInteractionsEngine), ) -> Self
pub fn tree(self, producer: impl FnMut(ChangeNotifier) -> View<T>) -> Self
pub fn coords_mapping_scaling(self, value: CoordsMappingScaling) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for RetainedApp<T>
impl<T> !Send for RetainedApp<T>
impl<T> !Sync for RetainedApp<T>
impl<T> !UnwindSafe for RetainedApp<T>
impl<T> Freeze for RetainedApp<T>
impl<T> Unpin for RetainedApp<T>
impl<T> UnsafeUnpin for RetainedApp<T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
Source§fn initialize() -> T
fn initialize() -> T
Returns the initial value of this type.
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().