remove shapes from windows
- From: Tim Janik <Tim Janik Hamburg Netsurf DE>
- To: Stefan Wille <1wille vsys informatik uni-hamburg de>
- cc: gtk-list redhat com
- Subject: remove shapes from windows
- Date: Mon, 2 Feb 1998 02:07:26 +0100 (CET)
hi stefan,
could you please provide a corresponding gdk function for
gdk_window_shape_combine_mask, that will remove the shape again?
> /*
> * This needs the X11 shape extension.
> * If not available, simply remove the call to
> * XShapeCombineMask. Shaped windows will look
> * ugly, but programs still work. Stefan Wille
> */
> void
> gdk_window_shape_combine_mask (GdkWindow *window,
> GdkBitmap *mask,
> gint x, gint y)
> {
> GdkWindowPrivate *window_private;
> GdkWindowPrivate *pixmap_private;
>
> g_return_if_fail (window != NULL);
> g_return_if_fail (mask != NULL);
>
> window_private = (GdkWindowPrivate*) window;
> pixmap_private = (GdkWindowPrivate*) mask;
> if (window_private->destroyed)
> return;
>
> XShapeCombineMask (window_private->xdisplay,
> window_private->xwindow,
> ShapeBounding,
> x, y, /* offset */
> (Pixmap)pixmap_private->xwindow,
> ShapeSet);
> }
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]