Trait gtk::prelude::GtkWindowExt

source ·
pub trait GtkWindowExt: IsA<Window> + Sealed + 'static {
Show 143 methods // Provided methods fn activate_default(&self) -> bool { ... } fn activate_focus(&self) -> bool { ... } fn activate_key(&self, event: &EventKey) -> bool { ... } fn add_accel_group(&self, accel_group: &impl IsA<AccelGroup>) { ... } fn add_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>) { ... } fn begin_move_drag( &self, button: i32, root_x: i32, root_y: i32, timestamp: u32 ) { ... } fn begin_resize_drag( &self, edge: WindowEdge, button: i32, root_x: i32, root_y: i32, timestamp: u32 ) { ... } fn close(&self) { ... } fn deiconify(&self) { ... } fn fullscreen(&self) { ... } fn fullscreen_on_monitor(&self, screen: &Screen, monitor: i32) { ... } fn accepts_focus(&self) -> bool { ... } fn application(&self) -> Option<Application> { ... } fn attached_to(&self) -> Option<Widget> { ... } fn is_decorated(&self) -> bool { ... } fn default_size(&self) -> (i32, i32) { ... } fn default_widget(&self) -> Option<Widget> { ... } fn is_deletable(&self) -> bool { ... } fn must_destroy_with_parent(&self) -> bool { ... } fn focused_widget(&self) -> Option<Widget> { ... } fn gets_focus_on_map(&self) -> bool { ... } fn gets_focus_visible(&self) -> bool { ... } fn gravity(&self) -> Gravity { ... } fn group(&self) -> Option<WindowGroup> { ... } fn hides_titlebar_when_maximized(&self) -> bool { ... } fn icon(&self) -> Option<Pixbuf> { ... } fn icon_list(&self) -> Vec<Pixbuf> { ... } fn icon_name(&self) -> Option<GString> { ... } fn mnemonic_modifier(&self) -> ModifierType { ... } fn is_mnemonics_visible(&self) -> bool { ... } fn is_modal(&self) -> bool { ... } fn position(&self) -> (i32, i32) { ... } fn is_resizable(&self) -> bool { ... } fn role(&self) -> Option<GString> { ... } fn screen(&self) -> Option<Screen> { ... } fn size(&self) -> (i32, i32) { ... } fn skips_pager_hint(&self) -> bool { ... } fn skips_taskbar_hint(&self) -> bool { ... } fn title(&self) -> Option<GString> { ... } fn titlebar(&self) -> Option<Widget> { ... } fn transient_for(&self) -> Option<Window> { ... } fn type_hint(&self) -> WindowTypeHint { ... } fn is_urgency_hint(&self) -> bool { ... } fn window_type(&self) -> WindowType { ... } fn has_group(&self) -> bool { ... } fn has_toplevel_focus(&self) -> bool { ... } fn iconify(&self) { ... } fn is_active(&self) -> bool { ... } fn is_maximized(&self) -> bool { ... } fn maximize(&self) { ... } fn mnemonic_activate(&self, keyval: u32, modifier: ModifierType) -> bool { ... } fn move_(&self, x: i32, y: i32) { ... } fn present(&self) { ... } fn present_with_time(&self, timestamp: u32) { ... } fn propagate_key_event(&self, event: &EventKey) -> bool { ... } fn remove_accel_group(&self, accel_group: &impl IsA<AccelGroup>) { ... } fn remove_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>) { ... } fn resize(&self, width: i32, height: i32) { ... } fn set_accept_focus(&self, setting: bool) { ... } fn set_application(&self, application: Option<&impl IsA<Application>>) { ... } fn set_attached_to(&self, attach_widget: Option<&impl IsA<Widget>>) { ... } fn set_decorated(&self, setting: bool) { ... } fn set_default(&self, default_widget: Option<&impl IsA<Widget>>) { ... } fn set_default_size(&self, width: i32, height: i32) { ... } fn set_deletable(&self, setting: bool) { ... } fn set_destroy_with_parent(&self, setting: bool) { ... } fn set_focus(&self, focus: Option<&impl IsA<Widget>>) { ... } fn set_focus_on_map(&self, setting: bool) { ... } fn set_focus_visible(&self, setting: bool) { ... } fn set_geometry_hints( &self, geometry_widget: Option<&impl IsA<Widget>>, geometry: Option<&Geometry>, geom_mask: WindowHints ) { ... } fn set_gravity(&self, gravity: Gravity) { ... } fn set_has_user_ref_count(&self, setting: bool) { ... } fn set_hide_titlebar_when_maximized(&self, setting: bool) { ... } fn set_icon(&self, icon: Option<&Pixbuf>) { ... } fn set_icon_from_file( &self, filename: impl AsRef<Path> ) -> Result<(), Error> { ... } fn set_icon_list(&self, list: &[Pixbuf]) { ... } fn set_icon_name(&self, name: Option<&str>) { ... } fn set_keep_above(&self, setting: bool) { ... } fn set_keep_below(&self, setting: bool) { ... } fn set_mnemonic_modifier(&self, modifier: ModifierType) { ... } fn set_mnemonics_visible(&self, setting: bool) { ... } fn set_modal(&self, modal: bool) { ... } fn set_position(&self, position: WindowPosition) { ... } fn set_resizable(&self, resizable: bool) { ... } fn set_role(&self, role: &str) { ... } fn set_screen(&self, screen: &Screen) { ... } fn set_skip_pager_hint(&self, setting: bool) { ... } fn set_skip_taskbar_hint(&self, setting: bool) { ... } fn set_startup_id(&self, startup_id: &str) { ... } fn set_title(&self, title: &str) { ... } fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>) { ... } fn set_transient_for(&self, parent: Option<&impl IsA<Window>>) { ... } fn set_type_hint(&self, hint: WindowTypeHint) { ... } fn set_urgency_hint(&self, setting: bool) { ... } fn stick(&self) { ... } fn unfullscreen(&self) { ... } fn unmaximize(&self) { ... } fn unstick(&self) { ... } fn default_height(&self) -> i32 { ... } fn set_default_height(&self, default_height: i32) { ... } fn default_width(&self) -> i32 { ... } fn set_default_width(&self, default_width: i32) { ... } fn type_(&self) -> WindowType { ... } fn window_position(&self) -> WindowPosition { ... } fn set_window_position(&self, window_position: WindowPosition) { ... } fn connect_activate_default<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_activate_default(&self) { ... } fn connect_activate_focus<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_activate_focus(&self) { ... } fn connect_enable_debugging<F: Fn(&Self, bool) -> bool + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_enable_debugging(&self, toggle: bool) -> bool { ... } fn connect_keys_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_set_focus<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_accept_focus_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_application_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_attached_to_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_decorated_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_default_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_default_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_deletable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_destroy_with_parent_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_focus_on_map_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_focus_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_gravity_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_has_toplevel_focus_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_hide_titlebar_when_maximized_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_icon_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_is_active_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_is_maximized_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_mnemonics_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_modal_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_resizable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_role_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_screen_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_skip_pager_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_skip_taskbar_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_startup_id_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_transient_for_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_type_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_urgency_hint_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_window_position_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn activate_default(&self) -> bool

source

fn activate_focus(&self) -> bool

source

fn activate_key(&self, event: &EventKey) -> bool

source

fn add_accel_group(&self, accel_group: &impl IsA<AccelGroup>)

source

fn add_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)

source

fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)

source

fn begin_resize_drag( &self, edge: WindowEdge, button: i32, root_x: i32, root_y: i32, timestamp: u32 )

source

fn close(&self)

source

fn deiconify(&self)

source

fn fullscreen(&self)

source

fn fullscreen_on_monitor(&self, screen: &Screen, monitor: i32)

source

fn accepts_focus(&self) -> bool

source

fn application(&self) -> Option<Application>

source

fn attached_to(&self) -> Option<Widget>

source

fn is_decorated(&self) -> bool

source

fn default_size(&self) -> (i32, i32)

source

fn default_widget(&self) -> Option<Widget>

source

fn is_deletable(&self) -> bool

source

fn must_destroy_with_parent(&self) -> bool

source

fn focused_widget(&self) -> Option<Widget>

source

fn gets_focus_on_map(&self) -> bool

source

fn gets_focus_visible(&self) -> bool

source

fn gravity(&self) -> Gravity

source

fn group(&self) -> Option<WindowGroup>

source

fn hides_titlebar_when_maximized(&self) -> bool

source

fn icon(&self) -> Option<Pixbuf>

source

fn icon_list(&self) -> Vec<Pixbuf>

source

fn icon_name(&self) -> Option<GString>

source

fn mnemonic_modifier(&self) -> ModifierType

source

fn is_mnemonics_visible(&self) -> bool

source

fn is_modal(&self) -> bool

source

fn position(&self) -> (i32, i32)

source

fn is_resizable(&self) -> bool

source

fn role(&self) -> Option<GString>

source

fn screen(&self) -> Option<Screen>

source

fn size(&self) -> (i32, i32)

source

fn skips_pager_hint(&self) -> bool

source

fn skips_taskbar_hint(&self) -> bool

source

fn title(&self) -> Option<GString>

source

fn titlebar(&self) -> Option<Widget>

source

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

source

fn type_hint(&self) -> WindowTypeHint

source

fn is_urgency_hint(&self) -> bool

source

fn window_type(&self) -> WindowType

source

fn has_group(&self) -> bool

source

fn has_toplevel_focus(&self) -> bool

source

fn iconify(&self)

source

fn is_active(&self) -> bool

source

fn is_maximized(&self) -> bool

source

fn maximize(&self)

source

fn mnemonic_activate(&self, keyval: u32, modifier: ModifierType) -> bool

source

fn move_(&self, x: i32, y: i32)

source

fn present(&self)

source

fn present_with_time(&self, timestamp: u32)

source

fn propagate_key_event(&self, event: &EventKey) -> bool

source

fn remove_accel_group(&self, accel_group: &impl IsA<AccelGroup>)

source

fn remove_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)

source

fn resize(&self, width: i32, height: i32)

source

fn set_accept_focus(&self, setting: bool)

source

fn set_application(&self, application: Option<&impl IsA<Application>>)

source

fn set_attached_to(&self, attach_widget: Option<&impl IsA<Widget>>)

source

fn set_decorated(&self, setting: bool)

source

fn set_default(&self, default_widget: Option<&impl IsA<Widget>>)

source

fn set_default_size(&self, width: i32, height: i32)

source

fn set_deletable(&self, setting: bool)

source

fn set_destroy_with_parent(&self, setting: bool)

source

fn set_focus(&self, focus: Option<&impl IsA<Widget>>)

source

fn set_focus_on_map(&self, setting: bool)

source

fn set_focus_visible(&self, setting: bool)

source

fn set_geometry_hints( &self, geometry_widget: Option<&impl IsA<Widget>>, geometry: Option<&Geometry>, geom_mask: WindowHints )

source

fn set_gravity(&self, gravity: Gravity)

source

fn set_has_user_ref_count(&self, setting: bool)

source

fn set_hide_titlebar_when_maximized(&self, setting: bool)

source

fn set_icon(&self, icon: Option<&Pixbuf>)

source

fn set_icon_from_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>

source

fn set_icon_list(&self, list: &[Pixbuf])

source

fn set_icon_name(&self, name: Option<&str>)

source

fn set_keep_above(&self, setting: bool)

source

fn set_keep_below(&self, setting: bool)

source

fn set_mnemonic_modifier(&self, modifier: ModifierType)

source

fn set_mnemonics_visible(&self, setting: bool)

source

fn set_modal(&self, modal: bool)

source

fn set_position(&self, position: WindowPosition)

source

fn set_resizable(&self, resizable: bool)

source

fn set_role(&self, role: &str)

source

fn set_screen(&self, screen: &Screen)

source

fn set_skip_pager_hint(&self, setting: bool)

source

fn set_skip_taskbar_hint(&self, setting: bool)

source

fn set_startup_id(&self, startup_id: &str)

source

fn set_title(&self, title: &str)

source

fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>)

source

fn set_transient_for(&self, parent: Option<&impl IsA<Window>>)

source

fn set_type_hint(&self, hint: WindowTypeHint)

source

fn set_urgency_hint(&self, setting: bool)

source

fn stick(&self)

source

fn unfullscreen(&self)

source

fn unmaximize(&self)

source

fn unstick(&self)

source

fn default_height(&self) -> i32

source

fn set_default_height(&self, default_height: i32)

source

fn default_width(&self) -> i32

source

fn set_default_width(&self, default_width: i32)

source

fn type_(&self) -> WindowType

source

fn window_position(&self) -> WindowPosition

source

fn set_window_position(&self, window_position: WindowPosition)

source

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

source

fn emit_activate_default(&self)

source

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

source

fn emit_activate_focus(&self)

source

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

source

fn emit_enable_debugging(&self, toggle: bool) -> bool

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§