jdk/src/solaris/native/sun/awt/awt_p.h

Print this page




  31 #define _AWT_P_H_
  32 
  33 /* turn on to do event filtering */
  34 #define NEW_EVENT_MODEL
  35 /* turn on to only filter keyboard events */
  36 #define KEYBOARD_ONLY_EVENTS
  37 
  38 #include <stdarg.h>
  39 #include <stdio.h>
  40 #include <stdlib.h>
  41 #include <string.h>
  42 #include <unistd.h>
  43 #ifndef HEADLESS
  44 #include <X11/Intrinsic.h>
  45 #include <X11/IntrinsicP.h>
  46 #include <X11/Shell.h>
  47 #include <X11/StringDefs.h>
  48 #include <X11/Xatom.h>
  49 #include <X11/keysym.h>
  50 #include <X11/keysymdef.h>

  51 #ifndef XAWT
  52 #include <Xm/CascadeB.h>
  53 #include <Xm/DrawingA.h>
  54 #include <Xm/FileSB.h>
  55 #include <Xm/BulletinB.h>
  56 #include <Xm/Form.h>
  57 #include <Xm/Frame.h>
  58 #include <Xm/Label.h>
  59 #include <Xm/PushB.h>
  60 #include <Xm/PushBG.h>
  61 #include <Xm/RowColumn.h>
  62 #include <Xm/ScrollBar.h>
  63 #include <Xm/ScrolledW.h>
  64 #include <Xm/SelectioB.h>
  65 #include <Xm/SeparatoG.h>
  66 #include <Xm/ToggleB.h>
  67 #include <Xm/TextF.h>
  68 #include <Xm/Text.h>
  69 #include <Xm/List.h>
  70 #include <Xm/Xm.h>


 103     void*              peer;
 104     jlong              event_mask;
 105     struct WidgetInfo* next;
 106 };
 107 #endif /* !HEADLESS */
 108 
 109 #define RepaintPending_NONE     0
 110 #define RepaintPending_REPAINT  (1 << 0)
 111 #define RepaintPending_EXPOSE   (1 << 1)
 112 #define LOOKUPSIZE 32
 113 
 114 typedef struct _DamageRect {
 115     int x1;
 116     int y1;
 117     int x2;
 118     int y2;
 119 } DamageRect;
 120 
 121 #ifndef HEADLESS
 122 
 123 /* Note: until we include the <X11/extensions/Xrender.h> explicitly
 124  * we have to define a couple of things ourselves.
 125  */
 126 typedef unsigned long   PictFormat;
 127 #define PictTypeIndexed             0
 128 #define PictTypeDirect              1
 129 
 130 typedef struct {
 131     short   red;
 132     short   redMask;
 133     short   green;
 134     short   greenMask;
 135     short   blue;
 136     short   blueMask;
 137     short   alpha;
 138     short   alphaMask;
 139 } XRenderDirectFormat;
 140 
 141 typedef struct {
 142     PictFormat      id;
 143     int         type;
 144     int         depth;
 145     XRenderDirectFormat direct;
 146     Colormap        colormap;
 147 } XRenderPictFormat;
 148 
 149 #define PictFormatID        (1 << 0)
 150 #define PictFormatType      (1 << 1)
 151 #define PictFormatDepth     (1 << 2)
 152 #define PictFormatRed       (1 << 3)
 153 #define PictFormatRedMask   (1 << 4)
 154 #define PictFormatGreen     (1 << 5)
 155 #define PictFormatGreenMask (1 << 6)
 156 #define PictFormatBlue      (1 << 7)
 157 #define PictFormatBlueMask  (1 << 8)
 158 #define PictFormatAlpha     (1 << 9)
 159 #define PictFormatAlphaMask (1 << 10)
 160 #define PictFormatColormap  (1 << 11)
 161 
 162 typedef XRenderPictFormat *
 163 XRenderFindVisualFormatFunc (Display *dpy, _Xconst Visual *visual);
 164 /* END OF Xrender.h chunk */
 165 
 166 typedef struct _AwtGraphicsConfigData  {
 167     int         awt_depth;
 168     Colormap    awt_cmap;
 169     XVisualInfo awt_visInfo;
 170     int         awt_num_colors;
 171     awtImageData *awtImage;
 172     int         (*AwtColorMatch)(int, int, int,
 173                                  struct _AwtGraphicsConfigData *);
 174     XImage      *monoImage;
 175     Pixmap      monoPixmap;      /* Used in X11TextRenderer_md.c */
 176     int         monoPixmapWidth; /* Used in X11TextRenderer_md.c */
 177     int         monoPixmapHeight;/* Used in X11TextRenderer_md.c */
 178     GC          monoPixmapGC;    /* Used in X11TextRenderer_md.c */
 179     int         pixelStride;     /* Used in X11SurfaceData.c */
 180     ColorData      *color_data;
 181     struct _GLXGraphicsConfigInfo *glxInfo;
 182     int         isTranslucencySupported; /* Uses Xrender to find this out. */
 183     XRenderPictFormat renderPictFormat; /*Used only if translucency supported*/
 184 } AwtGraphicsConfigData;




  31 #define _AWT_P_H_
  32 
  33 /* turn on to do event filtering */
  34 #define NEW_EVENT_MODEL
  35 /* turn on to only filter keyboard events */
  36 #define KEYBOARD_ONLY_EVENTS
  37 
  38 #include <stdarg.h>
  39 #include <stdio.h>
  40 #include <stdlib.h>
  41 #include <string.h>
  42 #include <unistd.h>
  43 #ifndef HEADLESS
  44 #include <X11/Intrinsic.h>
  45 #include <X11/IntrinsicP.h>
  46 #include <X11/Shell.h>
  47 #include <X11/StringDefs.h>
  48 #include <X11/Xatom.h>
  49 #include <X11/keysym.h>
  50 #include <X11/keysymdef.h>
  51 #include <X11/extensions/Xrender.h>
  52 #ifndef XAWT
  53 #include <Xm/CascadeB.h>
  54 #include <Xm/DrawingA.h>
  55 #include <Xm/FileSB.h>
  56 #include <Xm/BulletinB.h>
  57 #include <Xm/Form.h>
  58 #include <Xm/Frame.h>
  59 #include <Xm/Label.h>
  60 #include <Xm/PushB.h>
  61 #include <Xm/PushBG.h>
  62 #include <Xm/RowColumn.h>
  63 #include <Xm/ScrollBar.h>
  64 #include <Xm/ScrolledW.h>
  65 #include <Xm/SelectioB.h>
  66 #include <Xm/SeparatoG.h>
  67 #include <Xm/ToggleB.h>
  68 #include <Xm/TextF.h>
  69 #include <Xm/Text.h>
  70 #include <Xm/List.h>
  71 #include <Xm/Xm.h>


 104     void*              peer;
 105     jlong              event_mask;
 106     struct WidgetInfo* next;
 107 };
 108 #endif /* !HEADLESS */
 109 
 110 #define RepaintPending_NONE     0
 111 #define RepaintPending_REPAINT  (1 << 0)
 112 #define RepaintPending_EXPOSE   (1 << 1)
 113 #define LOOKUPSIZE 32
 114 
 115 typedef struct _DamageRect {
 116     int x1;
 117     int y1;
 118     int x2;
 119     int y2;
 120 } DamageRect;
 121 
 122 #ifndef HEADLESS
 123 







































 124 typedef XRenderPictFormat *
 125 XRenderFindVisualFormatFunc (Display *dpy, _Xconst Visual *visual);

 126 
 127 typedef struct _AwtGraphicsConfigData  {
 128     int         awt_depth;
 129     Colormap    awt_cmap;
 130     XVisualInfo awt_visInfo;
 131     int         awt_num_colors;
 132     awtImageData *awtImage;
 133     int         (*AwtColorMatch)(int, int, int,
 134                                  struct _AwtGraphicsConfigData *);
 135     XImage      *monoImage;
 136     Pixmap      monoPixmap;      /* Used in X11TextRenderer_md.c */
 137     int         monoPixmapWidth; /* Used in X11TextRenderer_md.c */
 138     int         monoPixmapHeight;/* Used in X11TextRenderer_md.c */
 139     GC          monoPixmapGC;    /* Used in X11TextRenderer_md.c */
 140     int         pixelStride;     /* Used in X11SurfaceData.c */
 141     ColorData      *color_data;
 142     struct _GLXGraphicsConfigInfo *glxInfo;
 143     int         isTranslucencySupported; /* Uses Xrender to find this out. */
 144     XRenderPictFormat renderPictFormat; /*Used only if translucency supported*/
 145 } AwtGraphicsConfigData;