Struct gdk::Window
[−]
pub struct Window(_, _);
Methods
impl Window
[src]
fn beep(&self)
fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)
fn begin_move_drag_for_device<P: IsA<Device>>(
&self,
device: &P,
button: i32,
root_x: i32,
root_y: i32,
timestamp: u32
)
&self,
device: &P,
button: i32,
root_x: i32,
root_y: i32,
timestamp: u32
)
fn begin_paint_rect(&self, rectangle: &Rectangle)
fn begin_resize_drag(
&self,
edge: WindowEdge,
button: i32,
root_x: i32,
root_y: i32,
timestamp: u32
)
&self,
edge: WindowEdge,
button: i32,
root_x: i32,
root_y: i32,
timestamp: u32
)
fn begin_resize_drag_for_device<P: IsA<Device>>(
&self,
edge: WindowEdge,
device: &P,
button: i32,
root_x: i32,
root_y: i32,
timestamp: u32
)
&self,
edge: WindowEdge,
device: &P,
button: i32,
root_x: i32,
root_y: i32,
timestamp: u32
)
fn configure_finished(&self)
fn coords_from_parent(&self, parent_x: f64, parent_y: f64) -> (f64, f64)
fn coords_to_parent(&self, x: f64, y: f64) -> (f64, f64)
fn deiconify(&self)
fn destroy(&self)
fn destroy_notify(&self)
fn enable_synchronized_configure(&self)
fn end_paint(&self)
fn ensure_native(&self) -> bool
fn flush(&self)
fn focus(&self, timestamp: u32)
fn freeze_toplevel_updates_libgtk_only(&self)
fn freeze_updates(&self)
fn fullscreen(&self)
fn fullscreen_on_monitor(&self, monitor: i32)
fn geometry_changed(&self)
fn get_accept_focus(&self) -> bool
fn get_children(&self) -> Vec<Window>
fn get_composited(&self) -> bool
fn get_cursor(&self) -> Option<Cursor>
fn get_decorations(&self) -> Option<WMDecoration>
fn get_device_cursor<P: IsA<Device>>(&self, device: &P) -> Option<Cursor>
fn get_device_events<P: IsA<Device>>(&self, device: &P) -> EventMask
fn get_device_position<P: IsA<Device>>(
&self,
device: &P
) -> (Option<Window>, i32, i32, ModifierType)
&self,
device: &P
) -> (Option<Window>, i32, i32, ModifierType)
fn get_display(&self) -> Display
fn get_drag_protocol(&self) -> (DragProtocol, Window)
fn get_effective_parent(&self) -> Option<Window>
fn get_effective_toplevel(&self) -> Window
fn get_events(&self) -> EventMask
fn get_focus_on_map(&self) -> bool
fn get_frame_extents(&self) -> Rectangle
fn get_geometry(&self) -> (i32, i32, i32, i32)
fn get_group(&self) -> Option<Window>
fn get_height(&self) -> i32
fn get_modal_hint(&self) -> bool
fn get_origin(&self) -> (i32, i32, i32)
fn get_parent(&self) -> Option<Window>
fn get_pointer(&self) -> (Option<Window>, i32, i32, ModifierType)
fn get_position(&self) -> (i32, i32)
fn get_root_coords(&self, x: i32, y: i32) -> (i32, i32)
fn get_root_origin(&self) -> (i32, i32)
fn get_screen(&self) -> Screen
fn get_source_events(&self, source: InputSource) -> EventMask
fn get_state(&self) -> WindowState
fn get_support_multidevice(&self) -> bool
fn get_toplevel(&self) -> Window
fn get_type_hint(&self) -> WindowTypeHint
fn get_visual(&self) -> Visual
fn get_width(&self) -> i32
fn get_window_type(&self) -> WindowType
fn has_native(&self) -> bool
fn hide(&self)
fn iconify(&self)
fn invalidate_rect<'a, P: Into<Option<&'a Rectangle>>>(
&self,
rect: P,
invalidate_children: bool
)
&self,
rect: P,
invalidate_children: bool
)
fn is_destroyed(&self) -> bool
fn is_input_only(&self) -> bool
fn is_shaped(&self) -> bool
fn is_viewable(&self) -> bool
fn is_visible(&self) -> bool
fn lower(&self)
fn maximize(&self)
fn merge_child_input_shapes(&self)
fn merge_child_shapes(&self)
fn move_(&self, x: i32, y: i32)
fn move_resize(&self, x: i32, y: i32, width: i32, height: i32)
fn peek_children(&self) -> Vec<Window>
fn process_updates(&self, update_children: bool)
fn raise(&self)
fn register_dnd(&self)
fn reparent(&self, new_parent: &Window, x: i32, y: i32)
fn resize(&self, width: i32, height: i32)
fn restack<'a, P: Into<Option<&'a Window>>>(&self, sibling: P, above: bool)
fn scroll(&self, dx: i32, dy: i32)
fn set_accept_focus(&self, accept_focus: bool)
fn set_background_rgba(&self, rgba: &RGBA)
fn set_child_input_shapes(&self)
fn set_child_shapes(&self)
fn set_composited(&self, composited: bool)
fn set_cursor<'a, P: Into<Option<&'a Cursor>>>(&self, cursor: P)
fn set_decorations(&self, decorations: WMDecoration)
fn set_device_cursor<P: IsA<Device>>(&self, device: &P, cursor: &Cursor)
fn set_device_events<P: IsA<Device>>(&self, device: &P, event_mask: EventMask)
fn set_events(&self, event_mask: EventMask)
fn set_focus_on_map(&self, focus_on_map: bool)
fn set_functions(&self, functions: WMFunction)
fn set_group<'a, P: Into<Option<&'a Window>>>(&self, leader: P)
fn set_icon_list(&self, pixbufs: &[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_modal_hint(&self, modal: bool)
fn set_opacity(&self, opacity: f64)
fn set_override_redirect(&self, override_redirect: bool)
fn set_role(&self, role: &str)
fn set_skip_pager_hint(&self, skips_pager: bool)
fn set_skip_taskbar_hint(&self, skips_taskbar: bool)
fn set_source_events(&self, source: InputSource, event_mask: EventMask)
fn set_startup_id(&self, startup_id: &str)
fn set_static_gravities(&self, use_static: bool) -> bool
fn set_support_multidevice(&self, support_multidevice: bool)
fn set_title(&self, title: &str)
fn set_transient_for(&self, parent: &Window)
fn set_type_hint(&self, hint: WindowTypeHint)
fn set_urgency_hint(&self, urgent: bool)
fn show(&self)
fn show_unraised(&self)
fn stick(&self)
fn thaw_toplevel_updates_libgtk_only(&self)
fn thaw_updates(&self)
fn unfullscreen(&self)
fn unmaximize(&self)
fn unstick(&self)
fn withdraw(&self)
fn at_pointer() -> (Window, i32, i32)
fn process_all_updates()
fn set_debug_updates(setting: bool)
fn connect_create_surface<F: Fn(&Window, i32, i32) -> Surface + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_pick_embedded_child<F: Fn(&Window, f64, f64) -> Option<Window> + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
impl Window
[src]
fn new(parent: Option<&Window>, attributes: &WindowAttr) -> Window
unsafe fn set_user_data<T>(&self, user_data: &mut T)
unsafe fn get_user_data<'a, T>(&'a self) -> &'a mut T
fn set_geometry_hints(&self, geometry: &GdkGeometry, geom_mask: WindowHints)
fn get_default_root_window() -> Window
fn offscreen_window_set_embedder(&self, embedder: &Window)
fn offscreen_window_get_embedder(&self) -> Option<Window>
Trait Implementations
impl Clone for Window
fn clone(&self) -> Window
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Window
impl Hash for Window
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for Window
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Window
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.