Trait gtk::GtkApplicationExt
[−]
[src]
pub trait GtkApplicationExt { fn add_accelerator<'a, P: Into<Option<&'a Variant>>>(
&self,
accelerator: &str,
action_name: &str,
parameter: P
); fn add_window<P: IsA<Window>>(&self, window: &P); fn get_app_menu(&self) -> Option<MenuModel>; fn get_menubar(&self) -> Option<MenuModel>; 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; fn is_inhibited(&self, flags: ApplicationInhibitFlags) -> bool; fn remove_accelerator<'a, P: Into<Option<&'a Variant>>>(
&self,
action_name: &str,
parameter: P
); fn remove_window<P: IsA<Window>>(&self, window: &P); fn set_app_menu<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
app_menu: Q
); fn set_menubar<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
menubar: Q
); 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(&Self, &Window) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_window_removed<F: Fn(&Self, &Window) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_active_window_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_app_menu_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_menubar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_register_session_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required Methods
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(&Self, &Window) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_window_removed<F: Fn(&Self, &Window) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_active_window_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_register_session_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Application> + IsA<Object>> GtkApplicationExt for O