pub trait GtkWindowExt: 'static {
Show 143 methods
// Required 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;
}