Struct raui_quick_start::RauiQuickStart
source · pub struct RauiQuickStart { /* private fields */ }Expand description
The quick-start builder
Implementations§
source§impl RauiQuickStart
impl RauiQuickStart
pub fn on_update<F>(self, f: F) -> Self
pub fn on_event<F>(self, f: F) -> Self
pub fn on_draw<F>(self, f: F) -> Self
pub fn view_model_raw(self, name: impl ToString, view_model: ViewModel) -> Self
pub fn view_model<T: 'static>(self, name: impl ToString, data: T) -> Self
pub fn view_model_produce<T: 'static>( self, name: impl ToString, producer: impl FnOnce(&mut ViewModelProperties) -> T ) -> Self
sourcepub fn run_with(
self,
setup: impl FnMut(&mut Application)
) -> Result<(), TetraError>
pub fn run_with( self, setup: impl FnMut(&mut Application) ) -> Result<(), TetraError>
Run the app!
Displays the window and runs the RAUI UI.
pub fn run(self) -> Result<(), TetraError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RauiQuickStart
impl !Send for RauiQuickStart
impl !Sync for RauiQuickStart
impl Unpin for RauiQuickStart
impl !UnwindSafe for RauiQuickStart
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<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more