~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/PCwin/PCwintv_screen.h

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**@(#)Tv_screen structures. Window system dependent.
  2   @(#){X11,Xm,Xv}/tv_screen.h linked)
  3  */
  4 
  5 #ifndef TV_SCREEN_HEADS_DEFINED
  6 #define TV_SCREEN_HEADS_DEFINED
  7 
  8 #ifndef _PCC
  9 #include <X11/StringDefs.h>
 10 #include <X11/Intrinsic.h>
 11 #include <X11/cursorfont.h>
 12 #include <X11/Core.h>
 13 #include <X11/Shell.h>
 14 #include <X11/X.h>
 15 #include <X11/Xlib.h>
 16 #include <X11/Xatom.h>
 17 
 18 /* Handle X #define's of  Bool & Complex */
 19 #define X_Bool Bool     /* Save X's definition of Bool */
 20 #define X_Complex Complex       /* Save X's definition of Complex */
 21 #undef Bool     /* X11 #define's Bool. #undef because Tina typedef's Bool! */
 22 #undef Complex  /* X11 #define's Complex. #undef because Tina typedef's
 23                  * Complex! */
 24 
 25 typedef         Colormap(*ColormapFn) ();       /* Function returning
 26                                                  * Colormap */
 27 typedef struct font_data
 28 {
 29     Ts_id ts_id;                /* Tina structure identifier */
 30     Display *display;
 31     char   *font_name;
 32     XFontStruct *font;
 33 }       Font_data;
 34 #define FONT_DATA_SWAP_STRING ".s."
 35 
 36 typedef struct tv_screen
 37 {
 38     Ts_id ts_id;                /* Tina structure identifier */
 39     /* Tv owning tv_screen */
 40     Tv             *tv;
 41     /* Size info */
 42     int             width, height, depth;       /* Size of canvas */
 43     /* Toolkit Specific info */
 44     void           *canvas;
 45     void           *owner;
 46     /* XLib info */
 47     Colormap        colormap;
 48     Display        *display;
 49     GC              gc, oldgc;
 50     Visual         *visual;     /* X Visual structure */
 51     Window          window;     /* X window to draw in */
 52     int             screen;     /* X screen number (default 0) */
 53 }               Tv_screen;
 54 #define TV_SCREEN_SWAP_STRING "piiipp......i"
 55 
 56 
 57 typedef struct tv_picture
 58 {
 59     Ts_id ts_id;                /* Tina structure identifier */
 60     Tv_screen      *tv_screen;
 61     Window          pixmap;
 62 }               Tv_picture;
 63 #define TV_PICTURE_SWAP_STRING "p."
 64 typedef struct tv_mask /* ansification: moved from mask.c 24/3/93 JB */
 65 {
 66     Ts_id ts_id;                /* Tina structure identifier */
 67     int     lx, ly, ux, uy;
 68     GC      gc;
 69     Pixmap  bitmap;
 70 }       Tv_mask;
 71 #define TV_MASK_SWAP_STRING "iiii.."
 72 
 73 /* Copies in ~/src/X11/{activity,tw_cursor}.c */
 74 typedef enum tina_cursor_type
 75 {
 76     mouse_cursor,               /* XC_crosshair */
 77     null_cursor,                /* XC_left_ptr */
 78     pick_cursor,                /* XC_hand1 */
 79     roi_cursor,                 /* XC_dotbox */
 80     tina_cursor,                /* XC_left_ptr */
 81     wait_cursor,                /* XC_watch */
 82     zoom_cursor,                /* XC_fleur */
 83     zz_ncursors         /* DUMMY used as cursor count */
 84 }       Tina_cursor_type;
 85 
 86 typedef struct cmap_data
 87 {
 88     Ts_id ts_id;                /* Tina structure identifier */
 89     /* Visible at tv level */
 90     Cmap_model      model;      /* GS, COL or RGB */
 91     Cmap_kind       type;       /* STATIC or DYNAMIC */
 92     int             ncells;     /* ncells of colormap */
 93     int             nplanes;    /* no of cmap planes */
 94     Tina_pixel      base;       /* first used colormap entry */
 95     Tina_pixel      std_lut[CMAPLOOKUPSIZE];    /* standard tina LUT */
 96     Tina_pixel      overlay_mask;       /* xor mask for overlay */
 97     int             color_bits; /* number of bits of color */
 98     int             color_lut[CMAPLOOKUPNUMBEROFGREYS]; /* color lookup table */
 99     /* Visible at tv_screen level (window system specific) */
100     Display        *display;
101     Visual         *visual;
102     int             screen;
103     Colormap        colormap;
104     Bool            (*cmap_create_fn) ();
105 }               Cmap_data;
106 #define CMAP_DATA_SWAP_STRING "iiiii0[i]ii0[i]..i.w"
107 
108 #else
109 
110 /* Place definitions for PC windows here!!! */
111 
112 typedef struct colormap
113 {
114   int junk;
115 } Colormap;
116 
117 typedef struct display
118 {
119   int junk;
120 } Display;
121 
122 typedef struct cmap_data
123 {
124     Ts_id ts_id;                /* Tina structure identifier */
125     /* Visible at tv level */
126     Cmap_model      model;      /* GS, COL or RGB */
127     Cmap_kind       type;       /* STATIC or DYNAMIC */
128     int             ncells;     /* ncells of colormap */
129     int             nplanes;    /* no of cmap planes */
130     Tina_pixel      base;       /* first used colormap entry */
131     Tina_pixel      std_lut[CMAPLOOKUPSIZE];    /* standard tina LUT */
132     Tina_pixel      overlay_mask;       /* xor mask for overlay */
133     int             color_bits; /* number of bits of color */
134     int             color_lut[CMAPLOOKUPNUMBEROFGREYS]; /* color lookup table */
135     /* Visible at tv_screen level (window system specific) */
136     Colormap        colormap;
137 }               Cmap_data;
138 #define CMAP_DATA_SWAP_STRING "iiiii0[i]ii0[i]..i.w"
139 
140 typedef struct tv_screen
141 {
142     Ts_id ts_id;                /* Tina structure identifier */
143 
144     /* Tv owning tv_screen */
145     Tv             *tv;
146  
147    /* graphics related fields */
148     HDC             hDC;            /* device context for metafile */
149     HMETAFILE       hmf;            /* handle for metafile object */
150     void           *palette;        /* pointer to a CPalettre object */
151     void           *windowsView;    /* pointer to a CView-derived object */ 
152     void           *owner;          /* only for compatibility with Tina */ 
153  
154    /* temporary data, in order to keep original and actual settings */
155     HPEN            hOldPen;        /* pen, BEFORE metafile */
156     HBRUSH          hOldBrush;      /* brush, BEFORE metafile */
157     int             OldROP2;        /* ROP2 raster op. code, BEFORE metafile */
158     LOGPEN          ActualPen;      /* actual pen */
159     LOGBRUSH        ActualBrush;    /* actual brush */
160     int             ActualROP2;     /* actual ROP2 raster op. code */
161 
162     HANDLE          hDIB;   /* handle for DIB image, inserted into metafile */
163     int             DIBwidth;       /* width of image */
164     int             DIBheight;      /* height of image */
165     int             DIBleft;        /* rect -params for DIB on output */
166     int             DIBtop;         
167     int             DIBright;       
168     int             DIBbottom;      
169 
170     int             nZoom;       /* zooming factor (multiplied by 1000) */
171     COLORREF        textColor;   /* color of text string */
172     
173     int             width;          /* width of  'screen' to be cleared */
174     int             height;         /* height of 'screen' to be cleared */
175     int             depth;          /* only for compatibility with Tina */
176     int             docwidth;       /* width of document (image) */
177     int             docheight;      /* height of document (image) */
178 }               Tv_screen;
179 #define TV_SCREEN_SWAP_STRING "piiipp......i"
180 
181 typedef struct tv_picture
182 {
183     Ts_id ts_id;                /* Tina structure identifier */
184     Tv_screen      *tv_screen;
185 }               Tv_picture;
186 #define TV_PICTURE_SWAP_STRING "p."
187 
188 typedef struct tv_mask /* ansification: moved from mask.c 24/3/93 JB */
189 {
190     Ts_id ts_id;                /* Tina structure identifier */
191     int     lx, ly, ux, uy;
192 }       Tv_mask;
193 #define TV_MASK_SWAP_STRING "iiii.."
194 
195 
196 #endif
197 
198 #endif /* TV_SCREEN_HEADS_DEFINED*/
199 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.