pub struct Application {
pub(super) settings: Settings,
pub(super) system_settings: SystemSettings,
pub(super) session_list: SessionList,
intent_handler: BoundObjectWeakRef<Object>,
last_network_state: Cell<NetworkState>,
}Fields§
§settings: SettingsThe application settings.
system_settings: SystemSettingsThe system settings.
session_list: SessionListThe list of logged-in sessions.
intent_handler: BoundObjectWeakRef<Object>§last_network_state: Cell<NetworkState>Implementations§
Source§impl Application
impl Application
Sourcefn register_type()
fn register_type()
Registers the type only once.
Source§impl Application
impl Application
Sourcefn present_main_window(&self) -> Window
fn present_main_window(&self) -> Window
Get or create the main window and make sure it is visible.
Returns the main window.
Sourcefn set_up_gactions(&self)
fn set_up_gactions(&self)
Set up the application actions.
Sourcefn set_up_accels(&self)
fn set_up_accels(&self)
Sets up keyboard shortcuts for application and window actions.
Sourcefn show_about_dialog(&self)
fn show_about_dialog(&self)
Show the dialog with information about the application.
Sourcefn process_uri(&self, uri: &str)
fn process_uri(&self, uri: &str)
Process the given URI.
Sourcefn select_session_for_intent(&self, intent: SessionIntent)
fn select_session_for_intent(&self, intent: SessionIntent)
Select a session to handle the given intent as soon as possible.
Sourceasync fn ask_session_for_intent(&self, intent: SessionIntent)
async fn ask_session_for_intent(&self, intent: SessionIntent)
Ask the user to choose a session to process the given Matrix ID URI.
The session list needs to be ready.
Sourcefn process_session_intent(&self, session_id: String, intent: SessionIntent)
fn process_session_intent(&self, session_id: String, intent: SessionIntent)
Process the given intent for the given session, as soon as the session is ready.
Trait Implementations§
Source§impl ApplicationImpl for Application
impl ApplicationImpl for Application
fn activate(&self)
fn startup(&self)
fn open(&self, files: &[File], _hint: &str)
fn after_emit(&self, platform_data: &Variant)
fn before_emit(&self, platform_data: &Variant)
fn command_line(&self, command_line: &ApplicationCommandLine) -> ExitCode
fn local_command_line( &self, arguments: &mut ArgumentList, ) -> ControlFlow<ExitCode>
fn quit_mainloop(&self)
fn run_mainloop(&self)
fn shutdown(&self)
fn handle_local_options(&self, options: &VariantDict) -> ControlFlow<ExitCode>
fn dbus_register( &self, connection: &DBusConnection, object_path: &str, ) -> Result<(), Error>
fn dbus_unregister(&self, connection: &DBusConnection, object_path: &str)
fn name_lost(&self) -> Propagation
Source§impl Debug for Application
impl Debug for Application
Source§impl Default for Application
impl Default for Application
Source§impl GtkApplicationImpl for Application
impl GtkApplicationImpl for Application
fn window_added(&self, window: &Window)
fn window_removed(&self, window: &Window)
Source§impl ObjectImpl for Application
impl ObjectImpl for Application
Source§fn constructed(&self)
fn constructed(&self)
Constructed. Read more
Source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
Properties installed for this type.
Source§fn set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)
fn set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)
Property setter. Read more
Source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
Function to be called when property change is notified for with
self.notify("property").fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Source§impl ObjectSubclass for Application
impl ObjectSubclass for Application
Source§type Interfaces = ()
type Interfaces = ()
List of interfaces implemented by this type.
Source§type Class = ClassStruct<Application>
type Class = ClassStruct<Application>
The C class struct. Read more
Source§type Instance = InstanceStruct<Application>
type Instance = InstanceStruct<Application>
The C instance struct. Read more
Source§type Type = Application
type Type = Application
Wrapper around this subclass defined with
wrapper!Source§type ParentType = Application
type ParentType = Application
Parent Rust type to inherit from.
Source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
Allow name conflicts for this class. Read more
Source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
Additional type initialization. Read more
Source§fn class_init(_klass: &mut Self::Class)
fn class_init(_klass: &mut Self::Class)
Class initialization. Read more
Source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Constructor. Read more
Source§fn instance_init(_obj: &InitializingObject<Self>)
fn instance_init(_obj: &InitializingObject<Self>)
Performs additional instance initialization. Read more
Source§impl ObjectSubclassType for Application
impl ObjectSubclassType for Application
impl AdwApplicationImpl for Application
Auto Trait Implementations§
impl !Freeze for Application
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl UnsafeUnpin for Application
impl !UnwindSafe for Application
Blanket Implementations§
Source§impl<T> ApplicationImplExt for Twhere
T: ApplicationImpl,
impl<T> ApplicationImplExt for Twhere
T: ApplicationImpl,
fn parent_activate(&self)
fn parent_after_emit(&self, platform_data: &Variant)
fn parent_before_emit(&self, platform_data: &Variant)
fn parent_command_line(&self, command_line: &ApplicationCommandLine) -> ExitCode
fn parent_local_command_line( &self, arguments: &mut ArgumentList, ) -> ControlFlow<ExitCode>
fn parent_open(&self, files: &[File], hint: &str)
fn parent_quit_mainloop(&self)
fn parent_run_mainloop(&self)
fn parent_shutdown(&self)
fn parent_startup(&self)
fn parent_handle_local_options( &self, options: &VariantDict, ) -> ControlFlow<ExitCode>
fn parent_dbus_register( &self, connection: &DBusConnection, object_path: &str, ) -> Result<(), Error>
fn parent_dbus_unregister(&self, connection: &DBusConnection, object_path: &str)
fn parent_name_lost(&self) -> Propagation
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> GtkApplicationImplExt for Twhere
T: GtkApplicationImpl,
impl<T> GtkApplicationImplExt for Twhere
T: GtkApplicationImpl,
fn parent_window_added(&self, window: &Window)
fn parent_window_removed(&self, window: &Window)
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
Source§fn parent_constructed(&self)
fn parent_constructed(&self)
Chain up to the parent class’ implementation of
glib::Object::constructed().Source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
Chain up to the parent class’ implementation of
glib::Object::notify().Source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Chain up to the parent class’ implementation of
glib::Object::dispatch_properties_changed().Source§fn signal_chain_from_overridden(
&self,
token: &SignalClassHandlerToken,
values: &[Value],
) -> Option<Value>
fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>
Chain up to parent class signal handler.
Source§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
Source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Returns the corresponding object instance. Read more
Source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
Returns the implementation from an instance. Read more
Source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
Returns a new reference-counted wrapper around
self.