Doxygen Source Code Documentation
layerutil.h
Go to the documentation of this file.00001 #ifndef __layerutil_h__ 00002 #define __layerutil_h__ 00003 00004 /* Copyright (c) Mark J. Kilgard, 1993, 1994. */ 00005 00006 /* This program is freely distributable without licensing fees 00007 and is provided without guarantee or warrantee expressed or 00008 implied. This program is -not- in the public domain. */ 00009 00010 /* Based on XLayerUtil.h: Revision: 1.3 */ 00011 00012 #include <X11/Xlib.h> 00013 #include <X11/Xutil.h> 00014 #include <X11/Xmd.h> 00015 00016 /* Transparent type values */ 00017 /* None 0 */ 00018 #define TransparentPixel 1 00019 #define TransparentMask 2 00020 00021 /* layered visual info template flags */ 00022 #define VisualLayerMask 0x200 00023 #define VisualTransparentType 0x400 00024 #define VisualTransparentValue 0x800 00025 #define VisualAllLayerMask 0xFFF 00026 00027 /* layered visual info structure */ 00028 typedef struct _XLayerVisualInfo { 00029 XVisualInfo vinfo; 00030 long layer; 00031 long type; 00032 unsigned long value; 00033 } XLayerVisualInfo; 00034 00035 /* SERVER_OVERLAY_VISUALS property element */ 00036 typedef struct _OverlayInfo { 00037 /* Avoid 64-bit portability problems by being careful to use 00038 longs due to the way XGetWindowProperty is specified. Note 00039 that these parameters are passed as CARD32s over X 00040 protocol. */ 00041 long overlay_visual; 00042 long transparent_type; 00043 long value; 00044 long layer; 00045 } OverlayInfo; 00046 00047 extern int __glutGetTransparentPixel(Display *, XVisualInfo *); 00048 extern XLayerVisualInfo *__glutXGetLayerVisualInfo(Display *, 00049 long, XLayerVisualInfo *, int *); 00050 extern Status __glutXMatchLayerVisualInfo(Display *, 00051 int, int, int, int, XLayerVisualInfo *); 00052 00053 #endif /* __layerutil_h__ */