Gdk.Window.ShapeCombineMask Method
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.

Syntax

public void ShapeCombineMask (Pixmap mask, int x, int y)

Parameters

mask
A Gdk.Pixmap, a shape mask
x
A int, X position of shape mask with respect to this window
y
A int, Y position of shape mask with respect to this window

Remarks

On the X11 platform, this uses an X server extension which is widely available on most common platforms, but not available on very old X servers, and occasionally the implementation will be buggy. On servers without the shape extension, this function will do nothing. This function works on both toplevel and child windows.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)
Since: Gtk# 2.4