Trait gtk::prelude::WindowExt [] [src]

pub trait WindowExt {
    fn activate_default(&self) -> bool;
    fn activate_focus(&self) -> bool;
    fn activate_key(&self, event: &EventKey) -> bool;
    fn add_accel_group(&self, accel_group: &AccelGroup);
    fn add_mnemonic<P: IsA<Widget>>(&self, keyval: u32, target: &P);
    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 get_accept_focus(&self) -> bool; fn get_application(&self) -> Option<Application>; fn get_attached_to(&self) -> Option<Widget>; fn get_decorated(&self) -> bool; fn get_default_size(&self) -> (i32, i32); fn get_default_widget(&self) -> Option<Widget>; fn get_deletable(&self) -> bool; fn get_destroy_with_parent(&self) -> bool; fn get_focus(&self) -> Option<Widget>; fn get_focus_on_map(&self) -> bool; fn get_focus_visible(&self) -> bool; fn get_gravity(&self) -> Gravity; fn get_group(&self) -> Option<WindowGroup>; fn get_has_resize_grip(&self) -> bool; fn get_hide_titlebar_when_maximized(&self) -> bool; fn get_icon(&self) -> Option<Pixbuf>; fn get_icon_list(&self) -> Vec<Pixbuf>; fn get_icon_name(&self) -> Option<String>; fn get_mnemonic_modifier(&self) -> ModifierType; fn get_mnemonics_visible(&self) -> bool; fn get_modal(&self) -> bool; fn get_position(&self) -> (i32, i32); fn get_resizable(&self) -> bool; fn get_resize_grip_area(&self) -> Option<Rectangle>; fn get_role(&self) -> Option<String>; fn get_size(&self) -> (i32, i32); fn get_skip_pager_hint(&self) -> bool; fn get_skip_taskbar_hint(&self) -> bool; fn get_title(&self) -> Option<String>; fn get_titlebar(&self) -> Option<Widget>; fn get_transient_for(&self) -> Option<Window>; fn get_type_hint(&self) -> WindowTypeHint; fn get_urgency_hint(&self) -> bool; fn get_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 parse_geometry(&self, geometry: &str) -> bool; 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: &AccelGroup); fn remove_mnemonic<P: IsA<Widget>>(&self, keyval: u32, target: &P); fn reshow_with_initial_size(&self); fn resize(&self, width: i32, height: i32); fn resize_grip_is_visible(&self) -> bool; fn resize_to_geometry(&self, width: i32, height: i32); fn set_accept_focus(&self, setting: bool); fn set_application<'a, P: Into<Option<&'a Application>>>(
        &self,
        application: P
    ); fn set_attached_to<'a, P: IsA<Widget> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        attach_widget: Q
    ); fn set_decorated(&self, setting: bool); fn set_default<'a, P: IsA<Widget> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        default_widget: Q
    ); fn set_default_geometry(&self, width: i32, height: i32); 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<'a, P: IsA<Widget> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        focus: Q
    ); fn set_focus_on_map(&self, setting: bool); fn set_focus_visible(&self, setting: bool); fn set_gravity(&self, gravity: Gravity); fn set_has_resize_grip(&self, value: bool); fn set_has_user_ref_count(&self, setting: bool); fn set_hide_titlebar_when_maximized(&self, setting: bool); fn set_icon<'a, P: Into<Option<&'a Pixbuf>>>(&self, icon: P); fn set_icon_from_file<P: AsRef<Path>>(
        &self,
        filename: P
    ) -> Result<(), Error>; fn set_icon_list(&self, list: &[Pixbuf]); fn set_icon_name<'a, P: Into<Option<&'a str>>>(&self, name: P); 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<'a, P: IsA<Widget> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        titlebar: Q
    ); fn set_transient_for<'a, P: IsA<Window> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        parent: Q
    ); fn set_type_hint(&self, hint: WindowTypeHint); fn set_urgency_hint(&self, setting: bool); fn set_wmclass(&self, wmclass_name: &str, wmclass_class: &str); fn stick(&self); fn unfullscreen(&self); fn unmaximize(&self); fn unstick(&self); fn get_property_default_height(&self) -> i32; fn set_property_default_height(&self, default_height: i32); fn get_property_default_width(&self) -> i32; fn set_property_default_width(&self, default_width: i32); fn get_property_has_toplevel_focus(&self) -> bool; fn get_property_is_active(&self) -> bool; fn get_property_is_maximized(&self) -> bool; fn get_property_resize_grip_visible(&self) -> bool; fn get_property_type(&self) -> WindowType; fn get_property_window_position(&self) -> WindowPosition; fn set_property_window_position(&self, window_position: WindowPosition); fn connect_activate_default<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_activate_focus<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_enable_debugging<F: Fn(&Self, bool) -> bool + 'static>(
        &self,
        f: F
    ) -> u64; fn connect_keys_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_set_focus<F: Fn(&Self, &Widget) + 'static>(&self, f: F) -> u64; }

Required Methods

Implementors