pub struct LinuxFramebufferLifetime { /* private fields */ }Expand description
The lifetime of an application on the platform: one top-level that shows the main view.
Implementations§
Source§impl LinuxFramebufferLifetime
impl LinuxFramebufferLifetime
pub fn new(fb: Arc<dyn IOutputBackend>) -> Rc<Self>
pub fn with_input( fb: Arc<dyn IOutputBackend>, input: Option<Rc<dyn IInputBackend>>, ) -> Rc<Self>
Sourcepub fn token(&self) -> CancellationToken
pub fn token(&self) -> CancellationToken
The token that is cancelled when the application shuts down.
pub fn exit_code(&self) -> i32
pub fn start(&self, args: &[String])
Trait Implementations§
Source§impl IApplicationLifetime for LinuxFramebufferLifetime
impl IApplicationLifetime for LinuxFramebufferLifetime
Source§fn as_controlled_application_lifetime(
&self,
) -> Option<&dyn IControlledApplicationLifetime>
fn as_controlled_application_lifetime( &self, ) -> Option<&dyn IControlledApplicationLifetime>
The lifetime as a controlled lifetime, if it is one.
Source§fn as_single_view_application_lifetime(
&self,
) -> Option<&dyn ISingleViewApplicationLifetime>
fn as_single_view_application_lifetime( &self, ) -> Option<&dyn ISingleViewApplicationLifetime>
The lifetime as a single view lifetime, if it is one.
Source§fn as_single_top_level_application_lifetime(
&self,
) -> Option<&dyn ISingleTopLevelApplicationLifetime>
fn as_single_top_level_application_lifetime( &self, ) -> Option<&dyn ISingleTopLevelApplicationLifetime>
The lifetime as a single top-level lifetime, if it is one.
Source§fn as_activity_application_lifetime(
&self,
) -> Option<&dyn IActivityApplicationLifetime>
fn as_activity_application_lifetime( &self, ) -> Option<&dyn IActivityApplicationLifetime>
The lifetime as an activity lifetime, if it is one.
Source§fn as_setup_application_lifetime(
&self,
) -> Option<&dyn ISetupApplicationLifetime>
fn as_setup_application_lifetime( &self, ) -> Option<&dyn ISetupApplicationLifetime>
The lifetime as a lifetime that takes part in the setup of the
application, if it is one.
Source§fn as_classic_desktop_style_application_lifetime(
&self,
) -> Option<&dyn IClassicDesktopStyleApplicationLifetime>
fn as_classic_desktop_style_application_lifetime( &self, ) -> Option<&dyn IClassicDesktopStyleApplicationLifetime>
The lifetime as a classic desktop style lifetime, if it is one.
Source§impl IControlledApplicationLifetime for LinuxFramebufferLifetime
impl IControlledApplicationLifetime for LinuxFramebufferLifetime
Source§fn startup(
&self,
handler: Rc<dyn Fn(&ControlledApplicationLifetimeStartupEventArgs)>,
) -> Rc<dyn IDisposable>
fn startup( &self, handler: Rc<dyn Fn(&ControlledApplicationLifetimeStartupEventArgs)>, ) -> Rc<dyn IDisposable>
Raised when the application is starting. Disposing the returned
handle unsubscribes.
Source§fn exit(
&self,
handler: Rc<dyn Fn(&ControlledApplicationLifetimeExitEventArgs)>,
) -> Rc<dyn IDisposable>
fn exit( &self, handler: Rc<dyn Fn(&ControlledApplicationLifetimeExitEventArgs)>, ) -> Rc<dyn IDisposable>
Raised when the application is exiting. Disposing the returned handle
unsubscribes.
Auto Trait Implementations§
impl !Freeze for LinuxFramebufferLifetime
impl !RefUnwindSafe for LinuxFramebufferLifetime
impl !Send for LinuxFramebufferLifetime
impl !Sync for LinuxFramebufferLifetime
impl !UnwindSafe for LinuxFramebufferLifetime
impl Unpin for LinuxFramebufferLifetime
impl UnsafeUnpin for LinuxFramebufferLifetime
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more