home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / opengl / overlay_x11 / utilities / sovinfo / sovLayerUtil.h < prev   
Encoding:
C/C++ Source or Header  |  2001-05-07  |  1.3 KB  |  55 lines

  1. #ifndef __sovLayerUtil_h__
  2. #define __sovLayerUtil_h__
  3.  
  4. /* Copyright (c) Mark J. Kilgard, 1996. */
  5.  
  6. /* This program is freely distributable without licensing fees 
  7.    and is provided without guarantee or warrantee expressed or 
  8.    implied. This program is -not- in the public domain. */
  9.  
  10. #include <X11/Xlib.h>
  11. #include <X11/Xutil.h>
  12. #include <X11/Xmd.h>
  13.  
  14. /* Transparent type values */
  15. /*      None                  0 */
  16. #define TransparentPixel      1
  17. #define TransparentMask       2
  18.  
  19. /* layered visual info template flags */
  20. #define VisualLayerMask        0x200
  21. #define VisualTransparentType    0x400
  22. #define VisualTransparentValue    0x800
  23. #define VisualAllLayerMask    0xFFF
  24.  
  25. /* layered visual info structure */
  26. typedef struct _sovVisualInfo {
  27.    XVisualInfo vinfo;
  28.    int layer;
  29.    int type;
  30.    unsigned long value;
  31. } sovVisualInfo;
  32.  
  33. /* SERVER_OVERLAY_VISUALS property element */
  34. typedef struct _sovOverlayInfo {
  35.    long  overlay_visual;
  36.    long  transparent_type;
  37.    long  value;
  38.    long  layer;
  39. } sovOverlayInfo;
  40.  
  41. extern sovVisualInfo *sovGetVisualInfo(
  42.   Display *display,
  43.   long lvinfo_mask,
  44.   sovVisualInfo *lvinfo_template,
  45.   int *nitems_return);
  46. extern Status sovMatchVisualInfo(
  47.   Display *display,
  48.   int screen,
  49.   int depth,
  50.   int class,
  51.   int layer,
  52.   sovVisualInfo *lvinfo_return);
  53.  
  54. #endif /* __sovLayerUtil_h__ */
  55.