Class

GdkWindow

Description

abstract class Gdk.Window : GObject.Object {
  /* No available fields */
}
No description available.

Hierarchy

hierarchy this GdkWindow ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

gdk_window_new

Creates a new GdkWindow using the attributes from attributes. See GdkWindowAttr and GdkWindowAttributesType for more details. Note: to use this on displays other than the default display, parent must be specified.

Functions

gdk_window_at_pointer

Obtains the window underneath the mouse pointer, returning the location of that window in win_x, win_y. Returns NULL if the window under the mouse pointer is not known to GDK (if the window belongs to another application and a GdkWindow hasn’t been created for it with gdk_window_foreign_new())

Deprecated since: 3.0

gdk_window_constrain_size

Constrains a desired width and height according to a set of geometry hints (such as minimum and maximum size).

gdk_window_process_all_updates

Calls gdk_window_process_updates() for all windows (see GdkWindow) in the application.

gdk_window_set_debug_updates

With update debugging enabled, calls to gdk_window_invalidate_region() clear the invalidated region of the screen to a noticeable color, and GDK pauses for a short time before sending exposes to windows during gdk_window_process_updates(). The net effect is that you can see the invalid region for each window and watch redraws as they occur. This allows you to diagnose inefficiencies in your application.

Instance methods

gdk_window_add_filter

Adds an event filter to window, allowing you to intercept events before they reach GDK. This is a low-level operation and makes it easy to break GDK and/or GTK+, so you have to know what you’re doing. Pass NULL for window to get all events for all windows, instead of events for a specific window.

gdk_window_beep

Emits a short beep associated to window in the appropriate display, if supported. Otherwise, emits a short beep on the display just as gdk_display_beep().

Available since: 2.12

gdk_window_begin_draw_frame

Indicates that you are beginning the process of redrawing region on window, and provides you with a GdkDrawingContext.

Available since: 3.22

gdk_window_begin_move_drag

Begins a window move operation (for a toplevel window).

gdk_window_begin_move_drag_for_device

Begins a window move operation (for a toplevel window). You might use this function to implement a “window move grip,” for example. The function works best with window managers that support the Extended Window Manager Hints but has a fallback implementation for other window managers.

Available since: 3.4

gdk_window_begin_paint_rect

A convenience wrapper around gdk_window_begin_paint_region() which creates a rectangular region for you. See gdk_window_begin_paint_region() for details.

Deprecated since: 3.22

gdk_window_begin_paint_region

Indicates that you are beginning the process of redrawing region. A backing store (offscreen buffer) large enough to contain region will be created. The backing store will be initialized with the background color or background surface for window. Then, all drawing operations performed on window will be diverted to the backing store. When you call gdk_window_end_paint(), the backing store will be copied to window, making it visible onscreen. Only the part of window contained in region will be modified; that is, drawing operations are clipped to region.

Deprecated since: 3.22

gdk_window_begin_resize_drag

Begins a window resize operation (for a toplevel window).

gdk_window_begin_resize_drag_for_device

Begins a window resize operation (for a toplevel window). You might use this function to implement a “window resize grip,” for example; in fact GtkStatusbar uses it. The function works best with window managers that support the Extended Window Manager Hints but has a fallback implementation for other window managers.

Available since: 3.4

gdk_window_configure_finished

Does nothing, present only for compatiblity.

Available since: 2.6

Deprecated since: 3.8

gdk_window_coords_from_parent

Transforms window coordinates from a parent window to a child window, where the parent window is the normal parent as returned by gdk_window_get_parent() for normal windows, and the window’s embedder as returned by gdk_offscreen_window_get_embedder() for offscreen windows.

Available since: 2.22

gdk_window_coords_to_parent

Transforms window coordinates from a child window to its parent window, where the parent window is the normal parent as returned by gdk_window_get_parent() for normal windows, and the window’s embedder as returned by gdk_offscreen_window_get_embedder() for offscreen windows.

Available since: 2.22

gdk_window_create_gl_context

Creates a new GdkGLContext matching the framebuffer format to the visual of the GdkWindow. The context is disconnected from any particular window or surface.

Available since: 3.16

gdk_window_create_similar_image_surface

Create a new image surface that is efficient to draw on the given window.

Available since: 3.10

gdk_window_create_similar_surface

Create a new surface that is as compatible as possible with the given window. For example the new surface will have the same fallback resolution and font options as window. Generally, the new surface will also use the same backend as window, unless that is not possible for some reason. The type of the returned surface may be examined with cairo_surface_get_type().

Available since: 2.22

gdk_window_deiconify

Attempt to deiconify (unminimize) window. On X11 the window manager may choose to ignore the request to deiconify. When using GTK+, use gtk_window_deiconify() instead of the GdkWindow variant. Or better yet, you probably want to use gtk_window_present_with_time(), which raises the window, focuses it, unminimizes it, and puts it on the current desktop.

gdk_window_destroy

Destroys the window system resources associated with window and decrements windows reference count. The window system resources for all children of window are also destroyed, but the children’s reference counts are not decremented.

gdk_window_destroy_notify
No description available.
gdk_window_enable_synchronized_configure

Does nothing, present only for compatiblity.

Available since: 2.6

Deprecated since: 3.8

gdk_window_end_draw_frame

Indicates that the drawing of the contents of window started with gdk_window_begin_frame() has been completed.

Available since: 3.22

gdk_window_end_paint

Indicates that the backing store created by the most recent call to gdk_window_begin_paint_region() should be copied onscreen and deleted, leaving the next-most-recent backing store or no backing store at all as the active paint region. See gdk_window_begin_paint_region() for full details.

gdk_window_ensure_native

Tries to ensure that there is a window-system native window for this GdkWindow. This may fail in some situations, returning FALSE.

Available since: 2.18

gdk_window_flush

This function does nothing.

Available since: 2.18

gdk_window_focus

Sets keyboard focus to window. In most cases, gtk_window_present_with_time() should be used on a GtkWindow, rather than calling this function.

gdk_window_freeze_toplevel_updates_libgtk_only

Temporarily freezes a window and all its descendants such that it won’t receive expose events. The window will begin receiving expose events again when gdk_window_thaw_toplevel_updates_libgtk_only() is called. If gdk_window_freeze_toplevel_updates_libgtk_only() has been called more than once, gdk_window_thaw_toplevel_updates_libgtk_only() must be called an equal number of times to begin processing exposes.

Deprecated since: 3.16

gdk_window_freeze_updates

Temporarily freezes a window such that it won’t receive expose events. The window will begin receiving expose events again when gdk_window_thaw_updates() is called. If gdk_window_freeze_updates() has been called more than once, gdk_window_thaw_updates() must be called an equal number of times to begin processing exposes.

gdk_window_fullscreen

Moves the window into fullscreen mode. This means the window covers the entire screen and is above any panels or task bars.

Available since: 2.2

gdk_window_fullscreen_on_monitor

Moves the window into fullscreen mode on the given monitor. This means the window covers the entire screen and is above any panels or task bars.

gdk_window_geometry_changed

This function informs GDK that the geometry of an embedded offscreen window has changed. This is necessary for GDK to keep track of which offscreen window the pointer is in.

Available since: 2.18

gdk_window_get_accept_focus

Determines whether or not the desktop environment shuld be hinted that the window does not want to receive input focus.

Available since: 2.22

gdk_window_get_background_pattern

Gets the pattern used to clear the background on window.

Available since: 2.22

Deprecated since: 3.22

gdk_window_get_children

Gets the list of children of window known to GDK. This function only returns children created via GDK, so for example it’s useless when used with the root window; it only returns windows an application created itself.

gdk_window_get_children_with_user_data

Gets the list of children of window known to GDK with a particular user_data set on it.

Available since: 3.10

gdk_window_get_clip_region

Computes the region of a window that potentially can be written to by drawing primitives. This region may not take into account other factors such as if the window is obscured by other windows, but no area outside of this region will be affected by drawing primitives.

gdk_window_get_composited

Determines whether window is composited.

Available since: 2.22

Deprecated since: 3.16

gdk_window_get_cursor

Retrieves a GdkCursor pointer for the cursor currently set on the specified GdkWindow, or NULL. If the return value is NULL then there is no custom cursor set on the specified window, and it is using the cursor for its parent window.

Available since: 2.18

gdk_window_get_decorations

Returns the decorations set on the GdkWindow with gdk_window_set_decorations().

gdk_window_get_device_cursor

Retrieves a GdkCursor pointer for the device currently set on the specified GdkWindow, or NULL. If the return value is NULL then there is no custom cursor set on the specified window, and it is using the cursor for its parent window.

Available since: 3.0

gdk_window_get_device_events

Returns the event mask for window corresponding to an specific device.

Available since: 3.0

gdk_window_get_device_position

Obtains the current device position and modifier state. The position is given in coordinates relative to the upper left corner of window.

Available since: 3.0

gdk_window_get_device_position_double

Obtains the current device position in doubles and modifier state. The position is given in coordinates relative to the upper left corner of window.

Available since: 3.10

gdk_window_get_display

Gets the GdkDisplay associated with a GdkWindow.

Available since: 2.24

gdk_window_get_drag_protocol

Finds out the DND protocol supported by a window.

Available since: 3.0

gdk_window_get_effective_parent

Obtains the parent of window, as known to GDK. Works like gdk_window_get_parent() for normal windows, but returns the window’s embedder for offscreen windows.

Available since: 2.22

gdk_window_get_effective_toplevel

Gets the toplevel window that’s an ancestor of window.

Available since: 2.22

gdk_window_get_event_compression

Get the current event compression setting for this window.

Available since: 3.12

gdk_window_get_events

Gets the event mask for window for all master input devices. See gdk_window_set_events().

gdk_window_get_focus_on_map

Determines whether or not the desktop environment should be hinted that the window does not want to receive input focus when it is mapped.

Available since: 2.22

gdk_window_get_frame_clock

Gets the frame clock for the window. The frame clock for a window never changes unless the window is reparented to a new toplevel window.

Available since: 3.8

gdk_window_get_frame_extents

Obtains the bounding box of the window, including window manager titlebar/borders if any. The frame position is given in root window coordinates. To get the position of the window itself (rather than the frame) in root window coordinates, use gdk_window_get_origin().

gdk_window_get_fullscreen_mode

Obtains the GdkFullscreenMode of the window.

Available since: 3.8

gdk_window_get_geometry

Any of the return location arguments to this function may be NULL, if you aren’t interested in getting the value of that field.

gdk_window_get_group

Returns the group leader window for window. See gdk_window_set_group().

Available since: 2.4

gdk_window_get_height

Returns the height of the given window.

Available since: 2.24

gdk_window_get_modal_hint

Determines whether or not the window manager is hinted that window has modal behaviour.

Available since: 2.22

gdk_window_get_origin

Obtains the position of a window in root window coordinates. (Compare with gdk_window_get_position() and gdk_window_get_geometry() which return the position of a window relative to its parent window.)

gdk_window_get_parent

Obtains the parent of window, as known to GDK. Does not query the X server; thus this returns the parent as passed to gdk_window_new(), not the actual parent. This should never matter unless you’re using Xlib calls mixed with GDK calls on the X11 platform. It may also matter for toplevel windows, because the window manager may choose to reparent them.

gdk_window_get_pass_through

Returns whether input to the window is passed through to the window below.

Available since: 3.18

gdk_window_get_pointer

Obtains the current pointer position and modifier state. The position is given in coordinates relative to the upper left corner of window.

Deprecated since: 3.0

gdk_window_get_position

Obtains the position of the window as reported in the most-recently-processed GdkEventConfigure. Contrast with gdk_window_get_geometry() which queries the X server for the current window position, regardless of which events have been received or processed.

gdk_window_get_root_coords

Obtains the position of a window position in root window coordinates. This is similar to gdk_window_get_origin() but allows you to pass in any position in the window, not just the origin.

Available since: 2.18

gdk_window_get_root_origin

Obtains the top-left corner of the window manager frame in root window coordinates.

gdk_window_get_scale_factor

Returns the internal scale factor that maps from window coordiantes to the actual device pixels. On traditional systems this is 1, but on very high density outputs this can be a higher value (often 2).

Available since: 3.10

gdk_window_get_screen

Gets the GdkScreen associated with a GdkWindow.

Available since: 2.24

gdk_window_get_source_events

Returns the event mask for window corresponding to the device class specified by source.

gdk_window_get_state

Gets the bitwise OR of the currently active window state flags, from the GdkWindowState enumeration.

gdk_window_get_support_multidevice

Returns TRUE if the window is aware of the existence of multiple devices.

Available since: 3.0

gdk_window_get_toplevel

Gets the toplevel window that’s an ancestor of window.

gdk_window_get_type_hint

This function returns the type hint set for a window.

Available since: 2.10

gdk_window_get_update_area

Transfers ownership of the update area from window to the caller of the function. That is, after calling this function, window will no longer have an invalid/dirty region; the update area is removed from window and handed to you. If a window has no update area, gdk_window_get_update_area() returns NULL. You are responsible for calling cairo_region_destroy() on the returned region if it’s non-NULL.

gdk_window_get_user_data

Retrieves the user data for window, which is normally the widget that window belongs to. See gdk_window_set_user_data().

gdk_window_get_visible_region

Computes the region of the window that is potentially visible. This does not necessarily take into account if the window is obscured by other windows, but no area outside of this region is visible.

gdk_window_get_visual

Gets the GdkVisual describing the pixel format of window.

Available since: 2.24

gdk_window_get_width

Returns the width of the given window.

Available since: 2.24

gdk_window_get_window_type

Gets the type of the window. See GdkWindowType.

gdk_window_has_native

Checks whether the window has a native window or not. Note that you can use gdk_window_ensure_native() if a native window is needed.

Available since: 2.22

gdk_window_hide

For toplevel windows, withdraws them, so they will no longer be known to the window manager; for all windows, unmaps them, so they won’t be displayed. Normally done automatically as part of gtk_widget_hide().

gdk_window_iconify

Asks to iconify (minimize) window. The window manager may choose to ignore the request, but normally will honor it. Using gtk_window_iconify() is preferred, if you have a GtkWindow widget.

gdk_window_input_shape_combine_region

Like gdk_window_shape_combine_region(), but the shape applies only to event handling. Mouse events which happen while the pointer position corresponds to an unset bit in the mask will be passed on the window below window.

Available since: 2.10

gdk_window_invalidate_maybe_recurse

Adds region to the update area for window. The update area is the region that needs to be redrawn, or “dirty region.” The call gdk_window_process_updates() sends one or more expose events to the window, which together cover the entire update area. An application would normally redraw the contents of window in response to those expose events.

gdk_window_invalidate_rect

A convenience wrapper around gdk_window_invalidate_region() which invalidates a rectangular region. See gdk_window_invalidate_region() for details.

gdk_window_invalidate_region

Adds region to the update area for window. The update area is the region that needs to be redrawn, or “dirty region.” The call gdk_window_process_updates() sends one or more expose events to the window, which together cover the entire update area. An application would normally redraw the contents of window in response to those expose events.

gdk_window_is_destroyed

Check to see if a window is destroyed..

Available since: 2.18

gdk_window_is_input_only

Determines whether or not the window is an input only window.

Available since: 2.22

gdk_window_is_shaped

Determines whether or not the window is shaped.

Available since: 2.22

gdk_window_is_viewable

Check if the window and all ancestors of the window are mapped. (This is not necessarily “viewable” in the X sense, since we only check as far as we have GDK window parents, not to the root window.)

gdk_window_is_visible

Checks whether the window has been mapped (with gdk_window_show() or gdk_window_show_unraised()).

gdk_window_lower

Lowers window to the bottom of the Z-order (stacking order), so that other windows with the same parent window appear above window. This is true whether or not the other windows are visible.

gdk_window_mark_paint_from_clip

If you call this during a paint (e.g. between gdk_window_begin_paint_region() and gdk_window_end_paint() then GDK will mark the current clip region of the window as being drawn. This is required when mixing GL rendering via gdk_cairo_draw_from_gl() and cairo rendering, as otherwise GDK has no way of knowing when something paints over the GL-drawn regions.

Available since: 3.16

gdk_window_maximize

Maximizes the window. If the window was already maximized, then this function does nothing.

gdk_window_merge_child_input_shapes

Merges the input shape masks for any child windows into the input shape mask for window. i.e. the union of all input masks for window and its children will become the new input mask for window. See gdk_window_input_shape_combine_region().

Available since: 2.10

gdk_window_merge_child_shapes

Merges the shape masks for any child windows into the shape mask for window. i.e. the union of all masks for window and its children will become the new mask for window. See gdk_window_shape_combine_region().

gdk_window_move

Repositions a window relative to its parent window. For toplevel windows, window managers may ignore or modify the move; you should probably use gtk_window_move() on a GtkWindow widget anyway, instead of using GDK functions. For child windows, the move will reliably succeed.

gdk_window_move_region

Move the part of window indicated by region by dy pixels in the Y direction and dx pixels in the X direction. The portions of region that not covered by the new position of region are invalidated.

Available since: 2.8

gdk_window_move_resize

Equivalent to calling gdk_window_move() and gdk_window_resize(), except that both operations are performed at once, avoiding strange visual effects. (i.e. the user may be able to see the window first move, then resize, if you don’t use gdk_window_move_resize().)

gdk_window_move_to_rect

Moves window to rect, aligning their anchor points.

Available since: 3.24

gdk_window_peek_children

Like gdk_window_get_children(), but does not copy the list of children, so the list does not need to be freed.

gdk_window_process_updates

Sends one or more expose events to window. The areas in each expose event will cover the entire update area for the window (see gdk_window_invalidate_region() for details). Normally GDK calls gdk_window_process_all_updates() on your behalf, so there’s no need to call this function unless you want to force expose events to be delivered immediately and synchronously (vs. the usual case, where GDK delivers them in an idle handler). Occasionally this is useful to produce nicer scrolling behavior, for example.

gdk_window_raise

Raises window to the top of the Z-order (stacking order), so that other windows with the same parent window appear below window. This is true whether or not the windows are visible.

gdk_window_register_dnd

Registers a window as a potential drop destination.

gdk_window_remove_filter

Remove a filter previously added with gdk_window_add_filter().

gdk_window_reparent

Reparents window into the given new_parent. The window being reparented will be unmapped as a side effect.

gdk_window_resize

Resizes window; for toplevel windows, asks the window manager to resize the window. The window manager may not allow the resize. When using GTK+, use gtk_window_resize() instead of this low-level GDK function.

gdk_window_restack

Changes the position of window in the Z-order (stacking order), so that it is above sibling (if above is TRUE) or below sibling (if above is FALSE).

Available since: 2.18

gdk_window_scroll

Scroll the contents of window, both pixels and children, by the given amount. window itself does not move. Portions of the window that the scroll operation brings in from offscreen areas are invalidated. The invalidated region may be bigger than what would strictly be necessary.

gdk_window_set_accept_focus

Setting accept_focus to FALSE hints the desktop environment that the window doesn’t want to receive input focus.

Available since: 2.4

gdk_window_set_background

Sets the background color of window.

Deprecated since: 3.4

gdk_window_set_background_pattern

Sets the background of window.

Deprecated since: 3.22

gdk_window_set_background_rgba

Sets the background color of window.

Deprecated since: 3.22

gdk_window_set_child_input_shapes

Sets the input shape mask of window to the union of input shape masks for all children of window, ignoring the input shape mask of window itself. Contrast with gdk_window_merge_child_input_shapes() which includes the input shape mask of window in the masks to be merged.

Available since: 2.10

gdk_window_set_child_shapes

Sets the shape mask of window to the union of shape masks for all children of window, ignoring the shape mask of window itself. Contrast with gdk_window_merge_child_shapes() which includes the shape mask of window in the masks to be merged.

gdk_window_set_composited

Sets a GdkWindow as composited, or unsets it. Composited windows do not automatically have their contents drawn to the screen. Drawing is redirected to an offscreen buffer and an expose event is emitted on the parent of the composited window. It is the responsibility of the parent’s expose handler to manually merge the off-screen content onto the screen in whatever way it sees fit.

Available since: 2.12

Deprecated since: 3.16

gdk_window_set_cursor

Sets the default mouse pointer for a GdkWindow.

gdk_window_set_decorations

“Decorations” are the features the window manager adds to a toplevel GdkWindow. This function sets the traditional Motif window manager hints that tell the window manager which decorations you would like your window to have. Usually you should use gtk_window_set_decorated() on a GtkWindow instead of using the GDK function directly.

gdk_window_set_device_cursor

Sets a specific GdkCursor for a given device when it gets inside window. Use gdk_cursor_new_for_display() or gdk_cursor_new_from_pixbuf() to create the cursor. To make the cursor invisible, use GDK_BLANK_CURSOR. Passing NULL for the cursor argument to gdk_window_set_cursor() means that window will use the cursor of its parent window. Most windows should use this default.

Available since: 3.0

gdk_window_set_device_events

Sets the event mask for a given device (Normally a floating device, not attached to any visible pointer) to window. For example, an event mask including #GDK_BUTTON_PRESS_MASK means the window should report button press events. The event mask is the bitwise OR of values from the GdkEventMask enumeration.

Available since: 3.0

gdk_window_set_event_compression

Determines whether or not extra unprocessed motion events in the event queue can be discarded. If TRUE only the most recent event will be delivered.

Available since: 3.12

gdk_window_set_events

The event mask for a window determines which events will be reported for that window from all master input devices. For example, an event mask including #GDK_BUTTON_PRESS_MASK means the window should report button press events. The event mask is the bitwise OR of values from the GdkEventMask enumeration.

gdk_window_set_focus_on_map

Setting focus_on_map to FALSE hints the desktop environment that the window doesn’t want to receive input focus when it is mapped. focus_on_map should be turned off for windows that aren’t triggered interactively (such as popups from network activity).

Available since: 2.6

gdk_window_set_fullscreen_mode

Specifies whether the window should span over all monitors (in a multi-head setup) or only the current monitor when in fullscreen mode.

Available since: 3.8

gdk_window_set_functions

Sets hints about the window management functions to make available via buttons on the window frame.

gdk_window_set_geometry_hints

Sets the geometry hints for window. Hints flagged in geom_mask are set, hints not flagged in geom_mask are unset. To unset all hints, use a geom_mask of 0 and a geometry of NULL.

gdk_window_set_group

Sets the group leader window for window. By default, GDK sets the group leader for all toplevel windows to a global window implicitly created by GDK. With this function you can override this default.

gdk_window_set_icon_list

Sets a list of icons for the window. One of these will be used to represent the window when it has been iconified. The icon is usually shown in an icon box or some sort of task bar. Which icon size is shown depends on the window manager. The window manager can scale the icon but setting several size icons can give better image quality since the window manager may only need to scale the icon by a small amount or not at all.

gdk_window_set_icon_name

Windows may have a name used while minimized, distinct from the name they display in their titlebar. Most of the time this is a bad idea from a user interface standpoint. But you can set such a name with this function, if you like.

gdk_window_set_invalidate_handler

Registers an invalidate handler for a specific window. This will get called whenever a region in the window or its children is invalidated.

Available since: 3.10

gdk_window_set_keep_above

Set if window must be kept above other windows. If the window was already above, then this function does nothing.

Available since: 2.4

gdk_window_set_keep_below

Set if window must be kept below other windows. If the window was already below, then this function does nothing.

Available since: 2.4

gdk_window_set_modal_hint

The application can use this hint to tell the window manager that a certain window has modal behaviour. The window manager can use this information to handle modal windows in a special way.

gdk_window_set_opacity

Set window to render as partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Values of the opacity parameter are clamped to the [0,1] range.)

Available since: 2.12

gdk_window_set_opaque_region

For optimisation purposes, compositing window managers may like to not draw obscured regions of windows, or turn off blending during for these regions. With RGB windows with no transparency, this is just the shape of the window, but with ARGB32 windows, the compositor does not know what regions of the window are transparent or not.

Available since: 3.10

gdk_window_set_override_redirect

An override redirect window is not under the control of the window manager. This means it won’t have a titlebar, won’t be minimizable, etc. - it will be entirely under the control of the application. The window manager can’t see the override redirect window at all.

gdk_window_set_pass_through

Sets whether input to the window is passed through to the window below.

Available since: 3.18

gdk_window_set_role

When using GTK+, typically you should use gtk_window_set_role() instead of this low-level function.

gdk_window_set_shadow_width

Newer GTK+ windows using client-side decorations use extra geometry around their frames for effects like shadows and invisible borders. Window managers that want to maximize windows or snap to edges need to know where the extents of the actual frame lie, so that users don’t feel like windows are snapping against random invisible edges.

Available since: 3.12

gdk_window_set_skip_pager_hint

Toggles whether a window should appear in a pager (workspace switcher, or other desktop utility program that displays a small thumbnail representation of the windows on the desktop). If a window’s semantic type as specified with gdk_window_set_type_hint() already fully describes the window, this function should not be called in addition, instead you should allow the window to be treated according to standard policy for its semantic type.

Available since: 2.2

gdk_window_set_skip_taskbar_hint

Toggles whether a window should appear in a task list or window list. If a window’s semantic type as specified with gdk_window_set_type_hint() already fully describes the window, this function should not be called in addition, instead you should allow the window to be treated according to standard policy for its semantic type.

Available since: 2.2

gdk_window_set_source_events

Sets the event mask for any floating device (i.e. not attached to any visible pointer) that has the source defined as source. This event mask will be applied both to currently existing, newly added devices after this call, and devices being attached/detached.

Available since: 3.0

gdk_window_set_startup_id

When using GTK+, typically you should use gtk_window_set_startup_id() instead of this low-level function.

Available since: 2.12

gdk_window_set_static_gravities

Used to set the bit gravity of the given window to static, and flag it so all children get static subwindow gravity. This is used if you are implementing scary features that involve deep knowledge of the windowing system. Don’t worry about it.

Deprecated since: 3.16

gdk_window_set_support_multidevice

This function will enable multidevice features in window.

Available since: 3.0

gdk_window_set_title

Sets the title of a toplevel window, to be displayed in the titlebar. If you haven’t explicitly set the icon name for the window (using gdk_window_set_icon_name()), the icon name will be set to title as well. title must be in UTF-8 encoding (as with all user-readable strings in GDK/GTK+). title may not be NULL.

gdk_window_set_transient_for

Indicates to the window manager that window is a transient dialog associated with the application window parent. This allows the window manager to do things like center window on parent and keep window above parent.

gdk_window_set_type_hint

The application can use this call to provide a hint to the window manager about the functionality of a window. The window manager can use this information when determining the decoration and behaviour of the window.

gdk_window_set_urgency_hint

Toggles whether a window needs the user’s urgent attention.

Available since: 2.8

gdk_window_set_user_data

For most purposes this function is deprecated in favor of g_object_set_data(). However, for historical reasons GTK+ stores the GtkWidget that owns a GdkWindow as user data on the GdkWindow. So, custom widget implementations should use this function for that. If GTK+ receives an event for a GdkWindow, and the user data for the window is non-NULL, GTK+ will assume the user data is a GtkWidget, and forward the event to that widget.

gdk_window_shape_combine_region

Makes pixels in window outside shape_region be transparent, so that the window may be nonrectangular.

gdk_window_show

Like gdk_window_show_unraised(), but also raises the window to the top of the window stack (moves the window to the front of the Z-order).

gdk_window_show_unraised

Shows a GdkWindow onscreen, but does not modify its stacking order. In contrast, gdk_window_show() will raise the window to the top of the window stack.

gdk_window_show_window_menu

Asks the windowing system to show the window menu. The window menu is the menu shown when right-clicking the titlebar on traditional windows managed by the window manager. This is useful for windows using client-side decorations, activating it with a right-click on the window decorations.

Available since: 3.14

gdk_window_stick

“Pins” a window such that it’s on all workspaces and does not scroll with viewports, for window managers that have scrollable viewports. (When using GtkWindow, gtk_window_stick() may be more useful.)

gdk_window_thaw_toplevel_updates_libgtk_only

Thaws a window frozen with gdk_window_freeze_toplevel_updates_libgtk_only().

Deprecated since: 3.16

gdk_window_thaw_updates

Thaws a window frozen with gdk_window_freeze_updates().

gdk_window_unfullscreen

Moves the window out of fullscreen mode. If the window was not fullscreen, does nothing.

Available since: 2.2

gdk_window_unmaximize

Unmaximizes the window. If the window wasn’t maximized, then this function does nothing.

gdk_window_unstick

Reverse operation for gdk_window_stick(); see gdk_window_stick(), and gtk_window_unstick().

gdk_window_withdraw

Withdraws a window (unmaps it and asks the window manager to forget about it). This function is not really useful as gdk_window_hide() automatically withdraws toplevel windows before hiding them.

Methods inherited from GObject (42)

Properties

Gdk.Window:cursor

The mouse pointer for a GdkWindow. See gdk_window_set_cursor() and gdk_window_get_cursor() for details.

Available since: 2.18

Signals

Gdk.Window::create-surface

The ::create-surface signal is emitted when an offscreen window needs its surface (re)created, which happens either when the window is first drawn to, or when the window is being resized. The first signal handler that returns a non-NULL surface will stop any further signal emission, and its surface will be used.

Available since: 3.0

Gdk.Window::from-embedder

The ::from-embedder signal is emitted to translate coordinates in the embedder of an offscreen window to the offscreen window.

Available since: 2.18

Gdk.Window::moved-to-rect

Emitted when the position of window is finalized after being moved to a destination rectangle.

Available since: 3.22

Gdk.Window::pick-embedded-child

The ::pick-embedded-child signal is emitted to find an embedded child at the given position.

Available since: 2.18

Gdk.Window::to-embedder

The ::to-embedder signal is emitted to translate coordinates in an offscreen window to its embedder.

Available since: 2.18

Signals inherited from GObject (1)

Class structure

struct GdkWindowClass {
  GObjectClass parent_class;
  GdkWindow* (* pick_embedded_child) (
    GdkWindow* window,
    gdouble x,
    gdouble y
  );
  void (* to_embedder) (
    GdkWindow* window,
    gdouble offscreen_x,
    gdouble offscreen_y,
    gdouble* embedder_x,
    gdouble* embedder_y
  );
  void (* from_embedder) (
    GdkWindow* window,
    gdouble embedder_x,
    gdouble embedder_y,
    gdouble* offscreen_x,
    gdouble* offscreen_y
  );
  cairo_surface_t* (* create_surface) (
    GdkWindow* window,
    gint width,
    gint height
  );
  void (* _gdk_reserved1) (
void
  );
  void (* _gdk_reserved2) (
void
  );
  void (* _gdk_reserved3) (
void
  );
  void (* _gdk_reserved4) (
void
  );
  void (* _gdk_reserved5) (
void
  );
  void (* _gdk_reserved6) (
void
  );
  void (* _gdk_reserved7) (
void
  );
  void (* _gdk_reserved8) (
void
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
pick_embedded_child
GdkWindow* (* pick_embedded_child) (
    GdkWindow* window,
    gdouble x,
    gdouble y
  )
  No description available.
to_embedder
void (* to_embedder) (
    GdkWindow* window,
    gdouble offscreen_x,
    gdouble offscreen_y,
    gdouble* embedder_x,
    gdouble* embedder_y
  )
  No description available.
from_embedder
void (* from_embedder) (
    GdkWindow* window,
    gdouble embedder_x,
    gdouble embedder_y,
    gdouble* offscreen_x,
    gdouble* offscreen_y
  )
  No description available.
create_surface
cairo_surface_t* (* create_surface) (
    GdkWindow* window,
    gint width,
    gint height
  )
  No description available.
_gdk_reserved1
void (* _gdk_reserved1) (
void
  )
  No description available.
_gdk_reserved2
void (* _gdk_reserved2) (
void
  )
  No description available.
_gdk_reserved3
void (* _gdk_reserved3) (
void
  )
  No description available.
_gdk_reserved4
void (* _gdk_reserved4) (
void
  )
  No description available.
_gdk_reserved5
void (* _gdk_reserved5) (
void
  )
  No description available.
_gdk_reserved6
void (* _gdk_reserved6) (
void
  )
  No description available.
_gdk_reserved7
void (* _gdk_reserved7) (
void
  )
  No description available.
_gdk_reserved8
void (* _gdk_reserved8) (
void
  )
  No description available.

Virtual methods

Gdk.WindowClass.create_surface
No description available.
Gdk.WindowClass.from_embedder
No description available.
Gdk.WindowClass.pick_embedded_child
No description available.
Gdk.WindowClass.to_embedder
No description available.