Trait gtk::prelude::GtkApplicationExt[][src]

pub trait GtkApplicationExt: 'static {
Show 29 methods fn add_window<P: IsA<Window>>(&self, window: &P);
fn accels_for_action(&self, detailed_action_name: &str) -> Vec<GString>;
fn actions_for_accel(&self, accel: &str) -> Vec<GString>;
fn active_window(&self) -> Option<Window>;
fn app_menu(&self) -> Option<MenuModel>;
fn menu_by_id(&self, id: &str) -> Option<Menu>;
fn menubar(&self) -> Option<MenuModel>;
fn window_by_id(&self, id: u32) -> Option<Window>;
fn windows(&self) -> Vec<Window>;
fn inhibit<P: IsA<Window>>(
        &self,
        window: Option<&P>,
        flags: ApplicationInhibitFlags,
        reason: Option<&str>
    ) -> u32;
fn is_inhibited(&self, flags: ApplicationInhibitFlags) -> bool;
fn list_action_descriptions(&self) -> Vec<GString>;
fn prefers_app_menu(&self) -> bool;
fn remove_window<P: IsA<Window>>(&self, window: &P);
fn set_accels_for_action(&self, detailed_action_name: &str, accels: &[&str]);
fn set_app_menu<P: IsA<MenuModel>>(&self, app_menu: Option<&P>);
fn set_menubar<P: IsA<MenuModel>>(&self, menubar: Option<&P>);
fn uninhibit(&self, cookie: u32);
fn is_register_session(&self) -> bool;
fn set_register_session(&self, register_session: bool);
fn is_screensaver_active(&self) -> bool;
fn connect_query_end<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
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_active_window_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_app_menu_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_menubar_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_register_session_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_screensaver_active_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required methods

This is supported on crate feature v3_24 only.
This is supported on crate feature v3_24_8 only.
This is supported on crate feature v3_24 only.

Implementors