Struct gtk::Application
[−]
pub struct Application(_, _);
Methods
impl Application
[src]
fn add_accelerator<'a, P: Into<Option<&'a Variant>>>(
&self,
accelerator: &str,
action_name: &str,
parameter: P
)
&self,
accelerator: &str,
action_name: &str,
parameter: P
)
fn add_window<P: IsA<Window>>(&self, window: &P)
fn get_windows(&self) -> Vec<Window>
fn inhibit<'a, 'b, P: IsA<Window> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b str>>>(
&self,
window: Q,
flags: ApplicationInhibitFlags,
reason: R
) -> u32
&self,
window: Q,
flags: ApplicationInhibitFlags,
reason: R
) -> u32
fn is_inhibited(&self, flags: ApplicationInhibitFlags) -> bool
fn remove_accelerator<'a, P: Into<Option<&'a Variant>>>(
&self,
action_name: &str,
parameter: P
)
&self,
action_name: &str,
parameter: P
)
fn remove_window<P: IsA<Window>>(&self, window: &P)
fn uninhibit(&self, cookie: u32)
fn get_property_active_window(&self) -> Option<Window>
fn get_property_register_session(&self) -> bool
fn set_property_register_session(&self, register_session: bool)
fn connect_window_added<F: Fn(&Application, &Window) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_window_removed<F: Fn(&Application, &Window) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
impl Application
[src]
fn new(application_id: &str, flags: ApplicationFlags) -> Result<Application, ()>
Trait Implementations
impl Clone for Application
fn clone(&self) -> Application
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Application
impl Hash for Application
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for Application
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Application
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.