pub struct DeclarativeApp { /* private fields */ }Implementations§
Source§impl DeclarativeApp
impl DeclarativeApp
pub fn simple(title: impl ToString, root: impl Into<WidgetNode>)
pub fn simple_scaled( title: impl ToString, scaling: CoordsMappingScaling, root: impl Into<WidgetNode>, )
pub fn simple_fullscreen(title: impl ToString, root: impl Into<WidgetNode>)
pub fn simple_fullscreen_scaled( title: impl ToString, scaling: CoordsMappingScaling, root: impl Into<WidgetNode>, )
pub fn update( self, f: impl FnMut(&mut Application, &mut AppControl) + 'static, ) -> Self
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 view_model(self, name: impl ToString, view_model: ViewModel) -> Self
pub fn tree(self, root: impl Into<WidgetNode>) -> Self
pub fn coords_mapping_scaling(self, value: CoordsMappingScaling) -> Self
Trait Implementations§
Source§impl AppState<Vertex> for DeclarativeApp
impl AppState<Vertex> for DeclarativeApp
Source§impl Default for DeclarativeApp
impl Default for DeclarativeApp
Source§fn default() -> DeclarativeApp
fn default() -> DeclarativeApp
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeclarativeApp
impl !RefUnwindSafe for DeclarativeApp
impl !Send for DeclarativeApp
impl !Sync for DeclarativeApp
impl Unpin for DeclarativeApp
impl !UnwindSafe for DeclarativeApp
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> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
fn initialize() -> T
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
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().