pub trait GtkApplicationExt: 'static {
Show 24 methods // Required methods fn add_window(&self, window: &impl IsA<Window>); 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 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( &self, window: Option<&impl IsA<Window>>, flags: ApplicationInhibitFlags, reason: Option<&str> ) -> u32; fn list_action_descriptions(&self) -> Vec<GString>; fn remove_window(&self, window: &impl IsA<Window>); fn set_accels_for_action(&self, detailed_action_name: &str, accels: &[&str]); fn set_menubar(&self, menubar: Option<&impl IsA<MenuModel>>); 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_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§

source

fn add_window(&self, window: &impl IsA<Window>)

source

fn accels_for_action(&self, detailed_action_name: &str) -> Vec<GString>

source

fn actions_for_accel(&self, accel: &str) -> Vec<GString>

source

fn active_window(&self) -> Option<Window>

source

fn menu_by_id(&self, id: &str) -> Option<Menu>

source

fn menubar(&self) -> Option<MenuModel>

source

fn window_by_id(&self, id: u32) -> Option<Window>

source

fn windows(&self) -> Vec<Window>

source

fn inhibit( &self, window: Option<&impl IsA<Window>>, flags: ApplicationInhibitFlags, reason: Option<&str> ) -> u32

source

fn list_action_descriptions(&self) -> Vec<GString>

source

fn remove_window(&self, window: &impl IsA<Window>)

source

fn set_accels_for_action(&self, detailed_action_name: &str, accels: &[&str])

source

fn set_menubar(&self, menubar: Option<&impl IsA<MenuModel>>)

source

fn uninhibit(&self, cookie: u32)

source

fn is_register_session(&self) -> bool

source

fn set_register_session(&self, register_session: bool)

source

fn is_screensaver_active(&self) -> bool

source

fn connect_query_end<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_window_added<F: Fn(&Self, &Window) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_window_removed<F: Fn(&Self, &Window) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_active_window_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_menubar_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_register_session_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_screensaver_active_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§