pub struct ManagedApplication<TPage: 'static> { /* private fields */ }Implementations§
Source§impl<TPage: 'static> ManagedApplication<TPage>
impl<TPage: 'static> ManagedApplication<TPage>
pub fn new<TNode: Node + 'static>( build_page: impl Fn() -> TPage + 'static, get_root: impl Fn(&TPage) -> TNode + 'static, ) -> Self
pub fn mount_page(self, callback: impl Fn(&TPage) + 'static) -> Self
pub fn dispose_page(self, callback: impl Fn(&TPage) + 'static) -> Self
pub fn run(&self)
pub fn dispose(&self)
pub fn get_active_page(&self) -> Option<Rc<TPage>>
pub fn use_system_theme(&self) -> Theme
pub fn use_custom_theme(&self, value: Theme) -> Theme
pub fn set_accent_color(&self, color: u32) -> Theme
pub fn is_dark_mode(&self) -> bool
pub fn is_using_system_theme(&self) -> bool
pub fn get_theme(&self) -> Theme
pub fn flush_renders(&self)
pub fn capture_persisted_ui_state(&self)
pub fn restore_persisted_ui_state(&self)
Auto Trait Implementations§
impl<TPage> !Freeze for ManagedApplication<TPage>
impl<TPage> !RefUnwindSafe for ManagedApplication<TPage>
impl<TPage> !Send for ManagedApplication<TPage>
impl<TPage> !Sync for ManagedApplication<TPage>
impl<TPage> !UnwindSafe for ManagedApplication<TPage>
impl<TPage> Unpin for ManagedApplication<TPage>
impl<TPage> UnsafeUnpin for ManagedApplication<TPage>
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