pub struct Window(/* private fields */);
Implementations§
Source§impl Window
impl Window
pub fn constrain_size( geometry: &mut Geometry, flags: WindowHints, width: i32, height: i32, ) -> (i32, i32)
pub fn process_all_updates()
👎Deprecated
pub fn set_debug_updates(setting: bool)
👎Deprecated
Trait Implementations§
Source§impl Ord for Window
impl Ord for Window
Source§impl<T: ObjectType> PartialEq<T> for Window
impl<T: ObjectType> PartialEq<T> for Window
Source§impl<T: ObjectType> PartialOrd<T> for Window
impl<T: ObjectType> PartialOrd<T> for Window
Source§impl StaticType for Window
impl StaticType for Window
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.fn get_type(&self) -> Type
fn get_object_class(&self) -> &ObjectClass
fn set_property<'a, N>( &self, property_name: N, value: &dyn ToValue, ) -> Result<(), BoolError>
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
fn notify<'a, N>(&self, property_name: N)
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>( &self, property_name: N, type_: Option<Type>, ) -> Result<(), BoolError>
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>
fn list_properties(&self) -> Vec<ParamSpec>
fn connect<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
unsafe fn connect_unsafe<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
fn emit<'a, N>( &self, signal_name: N, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>( &'a self, source_property: N, target: &'a O, target_property: M, ) -> BindingBuilder<'a>
fn ref_count(&self) -> u32
Source§impl<O> WindowExt for O
impl<O> WindowExt for O
fn beep(&self)
fn begin_draw_frame(&self, region: &Region) -> Option<DrawingContext>
fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)
fn begin_move_drag_for_device( &self, device: &Device, button: i32, root_x: i32, root_y: i32, timestamp: u32, )
Source§fn begin_paint_rect(&self, rectangle: &Rectangle)
fn begin_paint_rect(&self, rectangle: &Rectangle)
👎Deprecated
Source§fn begin_paint_region(&self, region: &Region)
fn begin_paint_region(&self, region: &Region)
👎Deprecated
fn begin_resize_drag( &self, edge: WindowEdge, button: i32, root_x: i32, root_y: i32, timestamp: u32, )
fn begin_resize_drag_for_device( &self, edge: WindowEdge, device: &Device, button: i32, root_x: i32, root_y: i32, timestamp: u32, )
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 create_gl_context(&self) -> Result<GLContext, Error>
fn create_similar_image_surface( &self, format: i32, width: i32, height: i32, scale: i32, ) -> Option<Surface>
fn deiconify(&self)
fn destroy(&self)
fn destroy_notify(&self)
fn end_draw_frame(&self, context: &DrawingContext)
fn end_paint(&self)
fn ensure_native(&self) -> bool
fn focus(&self, timestamp: u32)
Source§fn freeze_toplevel_updates_libgtk_only(&self)
fn freeze_toplevel_updates_libgtk_only(&self)
👎Deprecated
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_clip_region(&self) -> Option<Region>
Source§fn get_composited(&self) -> bool
fn get_composited(&self) -> bool
👎Deprecated
fn get_cursor(&self) -> Option<Cursor>
fn get_decorations(&self) -> Option<WMDecoration>
fn get_device_cursor(&self, device: &Device) -> Option<Cursor>
fn get_device_events(&self, device: &Device) -> EventMask
fn get_device_position( &self, device: &Device, ) -> (Option<Window>, i32, i32, ModifierType)
fn get_device_position_double( &self, device: &Device, ) -> (Option<Window>, f64, f64, 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_event_compression(&self) -> bool
fn get_events(&self) -> EventMask
fn get_focus_on_map(&self) -> bool
fn get_frame_clock(&self) -> Option<FrameClock>
fn get_frame_extents(&self) -> Rectangle
fn get_fullscreen_mode(&self) -> FullscreenMode
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_pass_through(&self) -> bool
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_scale_factor(&self) -> 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_update_area(&self) -> Option<Region>
fn get_visible_region(&self) -> Option<Region>
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 input_shape_combine_region( &self, shape_region: &Region, offset_x: i32, offset_y: i32, )
fn invalidate_maybe_recurse( &self, region: &Region, child_func: Option<&mut dyn FnMut(&Window) -> bool>, )
fn invalidate_rect(&self, rect: Option<&Rectangle>, invalidate_children: bool)
fn invalidate_region(&self, region: &Region, 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 mark_paint_from_clip(&self, cr: &Context)
fn maximize(&self)
fn merge_child_input_shapes(&self)
fn merge_child_shapes(&self)
fn move_(&self, x: i32, y: i32)
fn move_region(&self, region: &Region, dx: i32, dy: i32)
fn move_resize(&self, x: i32, y: i32, width: i32, height: i32)
fn peek_children(&self) -> Vec<Window>
Source§fn process_updates(&self, update_children: bool)
fn process_updates(&self, update_children: bool)
👎Deprecated
fn raise(&self)
fn register_dnd(&self)
fn reparent<P>(&self, new_parent: &P, x: i32, y: i32)
fn resize(&self, width: i32, height: i32)
fn restack<P>(&self, sibling: Option<&P>, above: bool)
fn scroll(&self, dx: i32, dy: i32)
fn set_accept_focus(&self, accept_focus: bool)
Source§fn set_background_rgba(&self, rgba: &RGBA)
fn set_background_rgba(&self, rgba: &RGBA)
👎Deprecated
fn set_child_input_shapes(&self)
fn set_child_shapes(&self)
Source§fn set_composited(&self, composited: bool)
fn set_composited(&self, composited: bool)
👎Deprecated
fn set_cursor(&self, cursor: Option<&Cursor>)
fn set_decorations(&self, decorations: WMDecoration)
fn set_device_cursor(&self, device: &Device, cursor: &Cursor)
fn set_device_events(&self, device: &Device, event_mask: EventMask)
fn set_event_compression(&self, event_compression: bool)
fn set_events(&self, event_mask: EventMask)
fn set_focus_on_map(&self, focus_on_map: bool)
fn set_fullscreen_mode(&self, mode: FullscreenMode)
fn set_functions(&self, functions: WMFunction)
fn set_geometry_hints(&self, geometry: &Geometry, geom_mask: WindowHints)
fn set_group<P>(&self, leader: Option<&P>)
fn set_icon_list(&self, pixbufs: &[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_modal_hint(&self, modal: bool)
fn set_opacity(&self, opacity: f64)
fn set_opaque_region(&self, region: Option<&Region>)
fn set_override_redirect(&self, override_redirect: bool)
fn set_pass_through(&self, pass_through: bool)
fn set_role(&self, role: &str)
fn set_shadow_width(&self, left: i32, right: i32, top: i32, bottom: i32)
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)
Source§fn set_static_gravities(&self, use_static: bool) -> bool
fn set_static_gravities(&self, use_static: bool) -> bool
👎Deprecated
fn set_support_multidevice(&self, support_multidevice: bool)
fn set_title(&self, title: &str)
fn set_transient_for<P>(&self, parent: &P)
fn set_type_hint(&self, hint: WindowTypeHint)
fn set_urgency_hint(&self, urgent: bool)
fn shape_combine_region( &self, shape_region: Option<&Region>, offset_x: i32, offset_y: i32, )
fn show(&self)
fn show_unraised(&self)
fn stick(&self)
Source§fn thaw_toplevel_updates_libgtk_only(&self)
fn thaw_toplevel_updates_libgtk_only(&self)
👎Deprecated