- public void add_filter (FilterFunc function)
Adds an event filter to window, allowing you to intercept
events before they reach GDK.
- public void beep ()
Emits a short beep associated to window in the appropriate
display, if supported.
- public void begin_move_drag (int button, int root_x, int root_y, uint32 timestamp)
Begins a window move operation (for a toplevel window).
- public void begin_move_drag_for_device (Device device, int button, int root_x, int root_y, uint32 timestamp)
Begins a window move operation (for a toplevel window).
- public void begin_paint_rect (Rectangle rectangle)
A convenience wrapper around
begin_paint_region which creates a rectangular region for you.
- public void begin_paint_region (Region region)
Indicates that you are beginning the process of redrawing region
.
- public void begin_resize_drag (WindowEdge edge, int button, int root_x, int root_y, uint32 timestamp)
Begins a window resize operation (for a toplevel window).
- public void begin_resize_drag_for_device (WindowEdge edge, Device device, int button, int root_x, int root_y, uint32 timestamp)
Begins a window resize operation (for a toplevel window).
- public void configure_finished ()
Signal to the window system that the application has finished handling
Configure events it has received.
- public void coords_from_parent (double parent_x, double parent_y, out double x, out double y)
Transforms window coordinates from a parent window to a child window, where
the parent window is the normal parent as returned by get_parent for normal
windows, and the window's embedder as returned by
offscreen_window_get_embedder for offscreen windows.
- public void coords_to_parent (double x, double y, out double parent_x, out double parent_y)
Transforms window coordinates from a child window to its parent window,
where the parent window is the normal parent as returned by get_parent for
normal windows, and the window's embedder as returned by
offscreen_window_get_embedder for offscreen windows.
- public Surface create_similar_surface (Content content, int width, int height)
Create a new surface that is as compatible as possible with the given
window.
- public void deiconify ()
Attempt to deiconify (unminimize) window.
- public void destroy ()
Destroys the window system resources associated with window and
decrements window's reference count.
- public void enable_synchronized_configure ()
Indicates that the application will cooperate with the window system in
synchronizing the window repaint with the window manager during resizing operations.
- public void end_paint ()
Indicates that the backing store created by the most recent call to
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.
- public bool ensure_native ()
Tries to ensure that there is a window-system native window for this
GdkWindow.
- public void flush ()
Flush all outstanding cached operations on a window, leaving the window in a
state which reflects all that has been drawn before.
- public void focus (uint32 timestamp)
Sets keyboard focus to window.
- public void freeze_toplevel_updates_libgtk_only ()
Temporarily freezes a window and all its descendants such that it won't
receive expose events.
- public void freeze_updates ()
Temporarily freezes a window such that it won't receive expose events.
- public void fullscreen ()
Moves the window into fullscreen mode.
- public void geometry_changed ()
This function informs GDK that the geometry of an embedded offscreen window
has changed.
- public bool get_accept_focus ()
Determines whether or not the desktop environment shuld be hinted that the
window does not want to receive input focus.
- public weak Pattern get_background_pattern ()
Gets the pattern used to clear the background on window.
- public List<weak Window> get_children ()
Gets the list of children of window known to GDK.
- public Region get_clip_region ()
Computes the region of a window that potentially can be written to by
drawing primitives.
- public bool get_composited ()
Determines whether window is composited.
- public weak Cursor get_cursor ()
Retrieves a Cursor
pointer for the cursor currently set on the specified Window, or null.
- public bool get_decorations (out WMDecoration decorations)
- public weak Cursor get_device_cursor (Device device)
Retrieves a Cursor
pointer for the device currently set on the specified Window, or null.
- public EventMask get_device_events (Device device)
Returns the event mask for window corresponding to an specific
device.
- public weak Window get_device_position (Device device, out int x, out int y, out ModifierType mask)
Obtains the current device position and modifier state.
- public weak Display get_display ()
Gets the Display
associated with a Window.
- public DragProtocol get_drag_protocol (out Window target)
Finds out the DND protocol supported by a window.
- public weak Window get_effective_parent ()
Obtains the parent of window, as known to GDK.
- public weak Window get_effective_toplevel ()
Gets the toplevel window that's an ancestor of window.
- public EventMask get_events ()
Gets the event mask for window for all master input devices.
- public bool 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.
- public void get_frame_extents (out Rectangle rect)
Obtains the bounding box of the window, including window manager
titlebar/borders if any.
- public void get_geometry (out int x, out int y, out int width, out int height)
Any of the return location arguments to this function may be null
, if you aren't interested in getting the value of that field.
- public weak Window get_group ()
Returns the group leader window for window.
- public int get_height ()
Returns the height of the given window.
- public bool get_modal_hint ()
Determines whether or not the window manager is hinted that window
has modal behaviour.
- public int get_origin (out int x, out int y)
Obtains the position of a window in root window coordinates.
- public weak Window get_parent ()
Obtains the parent of window, as known to GDK.
- public weak Window get_pointer (out int x, out int y, out ModifierType mask)
Obtains the current pointer position and modifier state.
- public void get_position (out int x, out int y)
Obtains the position of the window as reported in the
most-recently-processed EventConfigure.
- public void get_root_coords (int x, int y, out int root_x, out int root_y)
Obtains the position of a window position in root window coordinates.
- public void get_root_origin (out int x, out int y)
Obtains the top-left corner of the window manager frame in root window
coordinates.
- public weak Screen get_screen ()
Gets the Screen
associated with a Window.
- public EventMask get_source_events (InputSource source)
Returns the event mask for window corresponding to the device
class specified by source.
- public WindowState get_state ()
Gets the bitwise OR of the currently active window state flags, from the
WindowState enumeration.
- public bool get_support_multidevice ()
Returns true if the window is aware of the existence of
multiple devices.
- public weak Window get_toplevel ()
Gets the toplevel window that's an ancestor of window.
- public WindowTypeHint get_type_hint ()
This function returns the type hint set for a window.
- public Region get_update_area ()
Transfers ownership of the update area from window to the
caller of the function.
- public void get_user_data (out void* data)
Retrieves the user data for window, which is normally the
widget that window belongs to.
- public Region get_visible_region ()
Computes the region of the window that is potentially visible.
- public weak Visual get_visual ()
Gets the Visual
describing the pixel format of window.
- public int get_width ()
Returns the width of the given window.
- public WindowType get_window_type ()
Gets the type of the window.
- public bool has_native ()
Checks whether the window has a native window or not.
- public void 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.
- public void iconify ()
Asks to iconify (minimize) window.
- public void input_shape_combine_region (Region shape_region, int offset_x, int offset_y)
- public void invalidate_maybe_recurse (Region region, WindowChildFunc? child_func)
Adds region to the update area for window.
- public void invalidate_rect (Rectangle? rect, bool invalidate_children)
A convenience wrapper around
invalidate_region which invalidates a rectangular region.
- public void invalidate_region (Region region, bool invalidate_children)
Adds region to the update area for window.
- public bool is_destroyed ()
Check to see if a window is destroyed.
- public bool is_input_only ()
Determines whether or not the window is an input only window.
- public bool is_shaped ()
Determines whether or not the window is shaped.
- public bool is_viewable ()
Check if the window and all ancestors of the window are mapped.
- public bool is_visible ()
- public void lower ()
Lowers window to the bottom of the Z-order (stacking order), so
that other windows with the same parent window appear above window.
- public void maximize ()
Maximizes the window.
- public void merge_child_input_shapes ()
Merges the input shape masks for any child windows into the input shape mask
for window.
- public void merge_child_shapes ()
Merges the shape masks for any child windows into the shape mask for
window.
- public void move (int x, int y)
Repositions a window relative to its parent window.
- public void move_region (Region region, int dx, int dy)
Move the part of window indicated by region by
dy pixels in the Y direction and dx pixels in the X direction.
- public void move_resize (int x, int y, int width, int height)
Equivalent to calling
move and resize,
except that both operations are performed at once, avoiding strange visual effects.
- public unowned List<Window> peek_children ()
Like
get_children, but does not copy the list of children, so the list does not need to be freed.
- public void process_updates (bool update_children)
Sends one or more expose events to window.
- public void raise ()
Raises window to the top of the Z-order (stacking order), so
that other windows with the same parent window appear below window.
- public void register_dnd ()
Registers a window as a potential drop destination.
- public void remove_filter (FilterFunc function)
- public void reparent (Window new_parent, int x, int y)
Reparents window into the given new_parent.
- public void resize (int width, int height)
Resizes window; for toplevel windows, asks the window manager
to resize the window.
- public void restack (Window? sibling, bool above)
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).
- public void scroll (int dx, int dy)
Scroll the contents of window, both pixels and children, by the
given amount.
- public void set_accept_focus (bool accept_focus)
Setting accept_focus to false hints the desktop
environment that the window doesn't want to receive input focus.
- public void set_background (Color color)
Sets the background color of window.
- public void set_background_pattern (Pattern? pattern)
Sets the background of window.
- public void set_background_rgba (RGBA rgba)
Sets the background color of window.
- public void 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.
- public void 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.
- public void set_composited (bool composited)
Sets a Window as composited, or unsets it.
- public void set_cursor (Cursor? cursor)
Sets the default mouse pointer for a Window.
- public void set_decorations (WMDecoration decorations)
"Decorations" are the features the window manager adds to a toplevel
Window.
- public void set_device_cursor (Device device, Cursor cursor)
Sets a specific Cursor
for a given device when it gets inside window.
- public void set_device_events (Device device, EventMask event_mask)
Sets the event mask for a given device (Normally a floating device, not
attached to any visible pointer) to window.
- public void set_events (EventMask event_mask)
The event mask for a window determines which events will be reported for
that window from all master input devices.
- public void set_focus_on_map (bool 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.
- public void set_functions (WMFunction functions)
Sets hints about the window management functions to make available via
buttons on the window frame.
- public void set_geometry_hints (Geometry geometry, WindowHints geom_mask)
Sets the geometry hints for window.
- public void set_group (Window? leader)
Sets the group leader window for window.
- public void set_icon_list (List<Pixbuf> pixbufs)
Sets a list of icons for the window.
- public void set_icon_name (string? name)
Windows may have a name used while minimized, distinct from the name they
display in their titlebar.
- public void set_keep_above (bool setting)
Set if window must be kept above other windows.
- public void set_keep_below (bool setting)
Set if window must be kept below other windows.
- public void set_modal_hint (bool modal)
The application can use this hint to tell the window manager that a certain
window has modal behaviour.
- public void set_opacity (double opacity)
Request the windowing system to make window partially
transparent, with opacity 0 being fully transparent and 1 fully opaque.
- public void set_override_redirect (bool override_redirect)
An override redirect window is not under the control of the window manager.
- public void set_role (string role)
When using GTK+, typically you should use gtk_window_set_role
instead of this low-level function.
- public void set_skip_pager_hint (bool skips_pager)
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).
- public void set_skip_taskbar_hint (bool skips_taskbar)
Toggles whether a window should appear in a task list or window list.
- public void set_source_events (InputSource source, EventMask event_mask)
Sets the event mask for any floating device (i.e. not attached to any
visible pointer) that has the source defined as source.
- public void set_startup_id (string startup_id)
When using GTK+, typically you should use gtk_window_set_startup_id
instead of this low-level function.
- public bool set_static_gravities (bool use_static)
Set the bit gravity of the given window to static, and flag it so all
children get static subwindow gravity.
- public void set_support_multidevice (bool support_multidevice)
This function will enable multidevice features in window.
- public void set_title (string title)
Sets the title of a toplevel window, to be displayed in the titlebar.
- public void set_transient_for (Window parent)
Indicates to the window manager that window is a transient
dialog associated with the application window parent.
- public void set_type_hint (WindowTypeHint hint)
The application can use this call to provide a hint to the window manager
about the functionality of a window.
- public void set_urgency_hint (bool urgent)
Toggles whether a window needs the user's urgent attention.
- public void set_user_data (Object? user_data)
For most purposes this function is deprecated in favor of
g_object_set_data.
- public void shape_combine_region (Region? shape_region, int offset_x, int offset_y)
Makes pixels in window outside shape_region be
transparent, so that the window may be nonrectangular.
- public void show ()
Like
show_unraised, but also raises the window to the top of the window stack (moves the window to the front of the Z-order).
- public void show_unraised ()
Shows a Window onscreen, but does not modify its
stacking order.
- public void stick ()
"Pins" a window such that it's on all workspaces and does not scroll with
viewports, for window managers that have scrollable viewports.
- public void thaw_toplevel_updates_libgtk_only ()
- public void thaw_updates ()
- public void unfullscreen ()
Moves the window out of fullscreen mode.
- public void unmaximize ()
Unmaximizes the window.
- public void unstick ()
Reverse operation for
stick; see stick,
and gtk_window_unstick.
- public void withdraw ()
Withdraws a window (unmaps it and asks the window manager to forget about
it).