Trait gio::prelude::AppLaunchContextExt

source ·
pub trait AppLaunchContextExt: IsA<AppLaunchContext> + Sealed + 'static {
    // Provided methods
    fn display(
        &self,
        info: &impl IsA<AppInfo>,
        files: &[File]
    ) -> Option<GString> { ... }
    fn environment(&self) -> Vec<OsString> { ... }
    fn startup_notify_id(
        &self,
        info: &impl IsA<AppInfo>,
        files: &[File]
    ) -> Option<GString> { ... }
    fn launch_failed(&self, startup_notify_id: &str) { ... }
    fn setenv(&self, variable: impl AsRef<OsStr>, value: impl AsRef<OsStr>) { ... }
    fn unsetenv(&self, variable: impl AsRef<OsStr>) { ... }
    fn connect_launch_failed<F: Fn(&Self, &str) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_launch_started<F: Fn(&Self, &AppInfo, Option<&Variant>) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_launched<F: Fn(&Self, &AppInfo, &Variant) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn display(&self, info: &impl IsA<AppInfo>, files: &[File]) -> Option<GString>

source

fn environment(&self) -> Vec<OsString>

source

fn startup_notify_id( &self, info: &impl IsA<AppInfo>, files: &[File] ) -> Option<GString>

source

fn launch_failed(&self, startup_notify_id: &str)

source

fn setenv(&self, variable: impl AsRef<OsStr>, value: impl AsRef<OsStr>)

source

fn unsetenv(&self, variable: impl AsRef<OsStr>)

source

fn connect_launch_failed<F: Fn(&Self, &str) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_launch_started<F: Fn(&Self, &AppInfo, Option<&Variant>) + 'static>( &self, f: F ) -> SignalHandlerId

Available on crate feature v2_72 only.
source

fn connect_launched<F: Fn(&Self, &AppInfo, &Variant) + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§