gio::prelude

Trait ApplicationExt

Source
pub trait ApplicationExt:
    IsA<Application>
    + Sealed
    + 'static {
Show 42 methods // Provided methods fn activate(&self) { ... } fn add_main_option( &self, long_name: &str, short_name: Char, flags: OptionFlags, arg: OptionArg, description: &str, arg_description: Option<&str>, ) { ... } fn bind_busy_property(&self, object: &impl IsA<Object>, property: &str) { ... } fn application_id(&self) -> Option<GString> { ... } fn dbus_connection(&self) -> Option<DBusConnection> { ... } fn dbus_object_path(&self) -> Option<GString> { ... } fn flags(&self) -> ApplicationFlags { ... } fn inactivity_timeout(&self) -> u32 { ... } fn is_busy(&self) -> bool { ... } fn is_registered(&self) -> bool { ... } fn is_remote(&self) -> bool { ... } fn resource_base_path(&self) -> Option<GString> { ... } fn version(&self) -> Option<GString> { ... } fn open(&self, files: &[File], hint: &str) { ... } fn quit(&self) { ... } fn register( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn send_notification(&self, id: Option<&str>, notification: &Notification) { ... } fn set_application_id(&self, application_id: Option<&str>) { ... } fn set_default(&self) { ... } fn set_flags(&self, flags: ApplicationFlags) { ... } fn set_inactivity_timeout(&self, inactivity_timeout: u32) { ... } fn set_option_context_description(&self, description: Option<&str>) { ... } fn set_option_context_parameter_string( &self, parameter_string: Option<&str>, ) { ... } fn set_option_context_summary(&self, summary: Option<&str>) { ... } fn set_resource_base_path(&self, resource_path: Option<&str>) { ... } fn set_version(&self, version: &str) { ... } fn unbind_busy_property(&self, object: &impl IsA<Object>, property: &str) { ... } fn withdraw_notification(&self, id: &str) { ... } fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_command_line<F: Fn(&Self, &ApplicationCommandLine) -> i32 + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_handle_local_options<F: Fn(&Self, &VariantDict) -> i32 + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_name_lost<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_shutdown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_startup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_application_id_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_flags_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_inactivity_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_busy_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_registered_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_remote_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_resource_base_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_version_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn activate(&self)

Source

fn add_main_option( &self, long_name: &str, short_name: Char, flags: OptionFlags, arg: OptionArg, description: &str, arg_description: Option<&str>, )

Source

fn bind_busy_property(&self, object: &impl IsA<Object>, property: &str)

Source

fn application_id(&self) -> Option<GString>

Source

fn dbus_connection(&self) -> Option<DBusConnection>

Source

fn dbus_object_path(&self) -> Option<GString>

Source

fn flags(&self) -> ApplicationFlags

Source

fn inactivity_timeout(&self) -> u32

Source

fn is_busy(&self) -> bool

Source

fn is_registered(&self) -> bool

Source

fn is_remote(&self) -> bool

Source

fn resource_base_path(&self) -> Option<GString>

Source

fn version(&self) -> Option<GString>

Available on crate feature v2_80 only.
Source

fn open(&self, files: &[File], hint: &str)

Source

fn quit(&self)

Source

fn register( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

fn send_notification(&self, id: Option<&str>, notification: &Notification)

Source

fn set_application_id(&self, application_id: Option<&str>)

Source

fn set_default(&self)

Source

fn set_flags(&self, flags: ApplicationFlags)

Source

fn set_inactivity_timeout(&self, inactivity_timeout: u32)

Source

fn set_option_context_description(&self, description: Option<&str>)

Source

fn set_option_context_parameter_string(&self, parameter_string: Option<&str>)

Source

fn set_option_context_summary(&self, summary: Option<&str>)

Source

fn set_resource_base_path(&self, resource_path: Option<&str>)

Source

fn set_version(&self, version: &str)

Available on crate feature v2_80 only.
Source

fn unbind_busy_property(&self, object: &impl IsA<Object>, property: &str)

Source

fn withdraw_notification(&self, id: &str)

Source

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

Source

fn connect_command_line<F: Fn(&Self, &ApplicationCommandLine) -> i32 + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_handle_local_options<F: Fn(&Self, &VariantDict) -> i32 + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Available on crate feature v2_60 only.
Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Available on crate feature v2_80 only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§