Struct gtk::Application
source · [−]pub struct Application(_, _);Implementations
sourceimpl Application
impl Application
pub fn new(
application_id: Option<&str>,
flags: ApplicationFlags
) -> Result<Application, BoolError>
Trait Implementations
sourceimpl Clone for Application
impl Clone for Application
sourcefn clone(&self) -> Application
fn clone(&self) -> Application
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for Application
impl Debug for Application
sourceimpl Display for Application
impl Display for Application
sourceimpl Hash for Application
impl Hash for Application
sourceimpl Ord for Application
impl Ord for Application
sourcefn cmp(&self, other: &Application) -> Ordering
fn cmp(&self, other: &Application) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialEq<T> for Application
impl<T: ObjectType> PartialEq<T> for Application
sourceimpl<T: ObjectType> PartialOrd<T> for Application
impl<T: ObjectType> PartialOrd<T> for Application
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for Application
impl StaticType for Application
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for Application
impl IsA<ActionGroup> for Application
impl IsA<ActionMap> for Application
impl IsA<Application> for Application
Auto Trait Implementations
impl RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
Blanket Implementations
sourceimpl<O> ActionGroupExt for Owhere
O: IsA<ActionGroup>,
impl<O> ActionGroupExt for Owhere
O: IsA<ActionGroup>,
fn action_added(&self, action_name: &str)
fn action_enabled_changed(&self, action_name: &str, enabled: bool)
fn action_removed(&self, action_name: &str)
fn action_state_changed(&self, action_name: &str, state: &Variant)
fn activate_action(&self, action_name: &str, parameter: Option<&Variant>)
fn change_action_state(&self, action_name: &str, value: &Variant)
fn get_action_enabled(&self, action_name: &str) -> bool
fn get_action_parameter_type(&self, action_name: &str) -> Option<VariantType>
fn get_action_state(&self, action_name: &str) -> Option<Variant>
fn get_action_state_hint(&self, action_name: &str) -> Option<Variant>
fn get_action_state_type(&self, action_name: &str) -> Option<VariantType>
fn has_action(&self, action_name: &str) -> bool
fn list_actions(&self) -> Vec<GString, Global>
fn connect_action_added<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &str),
fn connect_action_enabled_changed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &str, bool),
fn connect_action_removed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &str),
fn connect_action_state_changed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &str, &Variant),
sourceimpl<O> ActionMapExt for Owhere
O: IsA<ActionMap>,
impl<O> ActionMapExt for Owhere
O: IsA<ActionMap>,
fn add_action<P>(&self, action: &P)where
P: IsA<Action>,
fn lookup_action(&self, action_name: &str) -> Option<Action>
fn remove_action(&self, action_name: &str)
sourceimpl<O> ApplicationExt for Owhere
O: IsA<Application>,
impl<O> ApplicationExt for Owhere
O: IsA<Application>,
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<P>(&self, object: &P, property: &str)where
P: IsA<Object>,
fn get_application_id(&self) -> Option<GString>
fn get_dbus_object_path(&self) -> Option<GString>
fn get_flags(&self) -> ApplicationFlags
fn get_inactivity_timeout(&self) -> u32
fn get_is_busy(&self) -> bool
fn get_is_registered(&self) -> bool
fn get_is_remote(&self) -> bool
fn get_resource_base_path(&self) -> Option<GString>
fn hold(&self)
fn mark_busy(&self)
fn open(&self, files: &[File], hint: &str)
fn quit(&self)
fn register<P>(&self, cancellable: Option<&P>) -> Result<(), Error>where
P: IsA<Cancellable>,
fn release(&self)
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_resource_base_path(&self, resource_path: Option<&str>)
fn unbind_busy_property<P>(&self, object: &P, property: &str)where
P: IsA<Object>,
fn unmark_busy(&self)
fn withdraw_notification(&self, id: &str)
fn set_property_action_group(&self, action_group: Option<&ActionGroup>)
fn connect_activate<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_command_line<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &ApplicationCommandLine) -> i32,
fn connect_shutdown<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_startup<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_action_group_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_application_id_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_flags_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_inactivity_timeout_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_is_busy_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_is_registered_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_is_remote_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_property_resource_base_path_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
sourceimpl<O> ApplicationExtManual for Owhere
O: IsA<Application>,
impl<O> ApplicationExtManual for Owhere
O: IsA<Application>,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T. Read moresourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourcefn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true if the object is an instance of (can be cast to) T.