Gdk.Window: Method Members

The methods of Gdk.Window are listed below. For a list of all members, see the Window Members list.

See Also: Inherited members from Gdk.Drawable

Public Methods

AddFilter(FilterFunc)
Adds an event filter to this 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 this window to get all events for all windows, instead of events for a specific window.
static
AddFilterForAll(FilterFunc)
Adds an event filtering function for all Windows.
static
AtPointer(out int, out int) : Window
Documentation for this section has not yet been entered.
Beep()
Emits a short beep.
BeginMoveDrag(int, int, int, uint)
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 spec (see http://www.freedesktop.org), but has a fallback implementation for other window managers.
BeginPaintRect(Rectangle)
A convenience wrapper around Window.BeginPaintRegion() which creates a rectangular region for you. See Window.BeginPaintRegion() for details.
BeginPaintRegion(Region)
Indicates that you are beginning the process of redrawing @region.
BeginResizeDrag(WindowEdge, int, int, int, uint)
Begins a window resize operation (for a toplevel window). You might use this function to implement a "window resize grip," for example; in fact Gtk.Statusbar uses it. The function works best with window managers that support the Extended Window Manager Hints spec (see http://www.freedesktop.org), but has a fallback implementation for other window managers.
Clear()
Clears the entire window to the background color or background pixmap.
ClearArea(Rectangle, bool)
Documentation for this section has not yet been entered.
ClearArea(int, int, int, int)
Clears an area of this window to the background color or background pixmap.
ClearAreaE(int, int, int, int)
Like Window.ClearArea, but also generates an expose event for the cleared area.
ConfigureFinished()
Documentation for this section has not yet been entered.
static
ConstrainSize(Geometry, uint, int, int, out int, out int)
Documentation for this section has not yet been entered.
Deiconify()
Attempt to deiconify (unminimize) this window. On X11 the window manager may choose to ignore the request to deiconify. When using GTK+, use Gtk.Window.Deiconify instead of the Gdk.Window variant. Or better yet, you probably want to use Gtk.Window.Present, which raises the window, focuses it, unminimizes it, and puts it on the current desktop.
Destroy()
Destroys the window system resources associated with this window and decrements this window's reference count. The window system resources for all children of this window are also destroyed, but the children's reference counts are not decremented.
EnableSynchronizedConfigure()
Documentation for this section has not yet been entered.
EndPaint()
Indicates that the backing store created by the most recent call to Window.BeginPaintRegion() 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 Window.BeginPaintRegion() for full details.
Focus(uint)
Sets keyboard focus to this window. If the window is not onscreen this will not work. In most cases, Gtk.Window.Present should be used on a Gtk.Window, rather than calling this function.
static
ForeignNew(uint) : Window
For internal use only. Wraps a native window for the default display in a Gdk.Window. This may fail if the window has been destroyed.
static
ForeignNewForDisplay(Display, uint) : Window
Documentation for this section has not yet been entered.
FreezeUpdates()
Temporarily freezes a window such that it won't receive expose events. The window will begin receiving expose events again when Window.ThawUpdates is called. If Window.FreezeUpdates has been called more than once, Window.ThawUpdates must be called an equal number of times to begin processing exposes.
Fullscreen()
Documentation for this section has not yet been entered.
GetDecorations(out WMDecoration) : bool
Returns the decorations set on the window with Window.SetDecorations.
GetDeskrelativeOrigin(out int, out int) : bool
Documentation for this section has not yet been entered.
GetGeometry(out int, out int, out int, out int, out int)
Documentation for this section has not yet been entered.
GetInternalPaintInfo(out Drawable, out int, out int)
Documentation for this section has not yet been entered.
GetOrigin(out int, out int) : int
Documentation for this section has not yet been entered.
GetPointer(out int, out int, out ModifierType) : Window
Documentation for this section has not yet been entered.
GetPosition(out int, out int)
Documentation for this section has not yet been entered.
GetRootOrigin(out int, out int)
Documentation for this section has not yet been entered.
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.Window.Hide.
Iconify()
Asks to iconify (minimize) the 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 Gtk.Window widget.
InputShapeCombineMask(Pixmap, int, int)
Applies an Input shape mask to the Window.
InputShapeCombineRegion(Region, int, int)
Applies an Input shape region to the Window.
InvalidateMaybeRecurse(Region, InvalidateMaybeRecurseChildFunc)
Adds a region to the update area for a window and some of its children
InvalidateRect(Rectangle, bool)
A convenience wrapper around Window.InvalidateRegion which invalidates a rectangular region. See Window.InvalidateRegion for details.
InvalidateRegion(Region, bool)
Adds region to the update area for the window. The update area is the region that needs to be redrawn, or "dirty region."
static
Lookup(uint) : Window
For internal use only. Looks up the Window that wraps the given native window handle.
static
LookupForDisplay(Display, uint) : Window
Documentation for this section has not yet been entered.
Lower()
Lowers this window to the bottom of the Z-order (stacking order), so that other windows with the same parent window appear above this window. This is true whether or not the other windows are visible. If this window is a toplevel, the window manager may choose to deny the request to move the window in the Z-order, Gtk.Window.Lower only requests the restack, but does not guarantee it. Note that Window.Show raises the window again, so don't call this function before Window.Show. (Try Window.ShowUnraised.)
Maximize()
Maximizes the window. If the window was already maximized, then this function does nothing.
MergeChildInputShapes()
Merges the union of all child window masks into the Input mask.
MergeChildShapes()
Merges the shape masks for any child windows into the shape mask for this window. i.e. the union of all masks for this window and its children will become the new mask for this window. See Window.ShapeCombineMask. This function is distinct from Window.SetChildShapes because it includes this window's shape mask in the set of shapes to be merged.
Move(int, int)
Repositions a window relative to its parent window.
MoveRegion(Region, int, int)
Moves a region by a specified offset.
MoveResize(Rectangle)
Documentation for this section has not yet been entered.
MoveResize(int, int, int, int)
Equivalent to calling Window.Move and Window.Resize in succession, 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 this method.)
static
ProcessAllUpdates()
Calls Window.ProcessUpdates for all windows in the application.
ProcessUpdates(bool)
Sends one or more expose events to the window.
Raise()
Raises the window to the top of the Z-order (stacking order), so that other windows with the same parent window appear below this window. This is true whether or not the windows are visible.
RegisterDnd()
Documentation for this section has not yet been entered.
RemoveFilter(FilterFunc)
Remove a filter previously added with Window.AddFilter.
static
RemoveFilterForAll(FilterFunc)
Removes an event filtering function for all Windows.
Reparent(Window, int, int)
Reparents this window into the given new_parent. The window being reparented will be unmapped as a side effect.
Resize(int, int)
Documentation for this section has not yet been entered.
Scroll(int, int)
Scroll the contents of this window, both pixels and children, by the given amount. The 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. (For X11, a minimum area will be invalidated if the window has no subwindows, or if the edges of the window's parent do not extend beyond the edges of the window. In other cases, a multi-step process is used to scroll the window which may produce temporary visual artifacts and unnecessary invalidations.)
SetBackPixmap(Pixmap, bool)
Sets the background pixmap of this window. May also be used to set a background of "None" on this window, by setting a background pixmap of null. A background pixmap will be tiled, positioning the first tile at the origin of this window, or if parent_relative is true, the tiling will be done based on the origin of the parent window (useful to align tiles in a parent with tiles in a child).
SetChildInputShapes()
Sets the input mask to the union of all child window masks.
SetChildShapes()
Sets the shape mask of this window to the union of shape masks for all children of the window, ignoring the shape mask of the window itself. Contrast with Window.MergeChildShapes which includes the shape mask of the window in the masks to be merged.
SetDecorations(WMDecoration)
"Decorations" are the features the window manager adds to a toplevel Gdk.Window. 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.SetDecorated on a Gtk.Window instead of using the GDK function directly.
SetGeometryHints(Geometry, WindowHints)
Sets the geometry hints for this 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.
SetHints(int, int, int, int, int, int, int)
Documentation for this section has not yet been entered.
SetIcon(Window, Pixmap, Pixmap)
Sets the icon of this window as a pixmap or window.
SetStaticGravities(bool) : bool
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 unless you have to.
ShapeCombineMask(Pixmap, int, int)
Applies a shape mask to this window. Pixels in this window corresponding to set bits in the mask will be visible; pixels in this window corresponding to unset bits in the mask will be transparent. This gives a non-rectangular window. If mask is null, the shape mask will be unset, and the x/y parameters are not used.
ShapeCombineRegion(Region, int, int)
Documentation for this section has not yet been entered.
Show()
Documentation for this section has not yet been entered.
ShowUnraised()
Shows a Gdk.Window onscreen, but does not modify its stacking order. In contrast, Window.Show() will raise the window to the top of the window stack.
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 Gtk.Window, Gtk.Window.Stick may be more useful.)
ThawUpdates()
Documentation for this section has not yet been entered.
Unfullscreen()
Documentation for this section has not yet been entered.
Unmaximize()
Documentation for this section has not yet been entered.
Unstick()
Reverse operation for Window.Stick.
Withdraw()
Withdraws a window (unmaps it and asks the window manager to forget about it).