VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/1.6/xorg/mi.h@ 17240

Last change on this file since 17240 was 17240, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Done it again. Reverted r43561.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 10.9 KB
Line 
1/***********************************************************
2
3Copyright 1987, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25
26Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
27
28 All Rights Reserved
29
30Permission to use, copy, modify, and distribute this software and its
31documentation for any purpose and without fee is hereby granted,
32provided that the above copyright notice appear in all copies and that
33both that copyright notice and this permission notice appear in
34supporting documentation, and that the name of Digital not be
35used in advertising or publicity pertaining to distribution of the
36software without specific, written prior permission.
37
38DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44SOFTWARE.
45
46******************************************************************/
47
48#ifndef MI_H
49#define MI_H
50#include <X11/X.h>
51#include "region.h"
52#include "validate.h"
53#include "window.h"
54#include "gc.h"
55#include <X11/fonts/font.h>
56#include "input.h"
57#include "cursor.h"
58#include "privates.h"
59
60#define MiBits CARD32
61
62typedef struct _miDash *miDashPtr;
63#define EVEN_DASH 0
64#define ODD_DASH ~0
65
66/* miarc.c */
67
68extern void miPolyArc(
69 DrawablePtr /*pDraw*/,
70 GCPtr /*pGC*/,
71 int /*narcs*/,
72 xArc * /*parcs*/
73);
74
75/* mibitblt.c */
76
77extern RegionPtr miCopyArea(
78 DrawablePtr /*pSrcDrawable*/,
79 DrawablePtr /*pDstDrawable*/,
80 GCPtr /*pGC*/,
81 int /*xIn*/,
82 int /*yIn*/,
83 int /*widthSrc*/,
84 int /*heightSrc*/,
85 int /*xOut*/,
86 int /*yOut*/
87);
88
89extern RegionPtr miCopyPlane(
90 DrawablePtr /*pSrcDrawable*/,
91 DrawablePtr /*pDstDrawable*/,
92 GCPtr /*pGC*/,
93 int /*srcx*/,
94 int /*srcy*/,
95 int /*width*/,
96 int /*height*/,
97 int /*dstx*/,
98 int /*dsty*/,
99 unsigned long /*bitPlane*/
100);
101
102extern void miGetImage(
103 DrawablePtr /*pDraw*/,
104 int /*sx*/,
105 int /*sy*/,
106 int /*w*/,
107 int /*h*/,
108 unsigned int /*format*/,
109 unsigned long /*planeMask*/,
110 char * /*pdstLine*/
111);
112
113extern void miPutImage(
114 DrawablePtr /*pDraw*/,
115 GCPtr /*pGC*/,
116 int /*depth*/,
117 int /*x*/,
118 int /*y*/,
119 int /*w*/,
120 int /*h*/,
121 int /*leftPad*/,
122 int /*format*/,
123 char * /*pImage*/
124);
125
126/* micursor.c */
127
128extern void miRecolorCursor(
129 DeviceIntPtr /* pDev */,
130 ScreenPtr /*pScr*/,
131 CursorPtr /*pCurs*/,
132 Bool /*displayed*/
133);
134
135/* midash.c */
136
137extern void miStepDash(
138 int /*dist*/,
139 int * /*pDashIndex*/,
140 unsigned char * /*pDash*/,
141 int /*numInDashList*/,
142 int * /*pDashOffset*/
143);
144
145/* mieq.c */
146
147
148#ifndef INPUT_H
149typedef struct _DeviceRec *DevicePtr;
150#endif
151
152extern Bool mieqInit(
153 void
154);
155
156extern void mieqResizeEvents(
157 int /* min_size */
158);
159
160extern void mieqEnqueue(
161 DeviceIntPtr /*pDev*/,
162 xEventPtr /*e*/
163);
164
165extern void mieqSwitchScreen(
166 DeviceIntPtr /* pDev */,
167 ScreenPtr /*pScreen*/,
168 Bool /*fromDIX*/
169);
170
171extern void mieqProcessInputEvents(
172 void
173);
174
175typedef void (*mieqHandler)(int, xEventPtr, DeviceIntPtr, int);
176void mieqSetHandler(int event, mieqHandler handler);
177
178/* miexpose.c */
179
180extern RegionPtr miHandleExposures(
181 DrawablePtr /*pSrcDrawable*/,
182 DrawablePtr /*pDstDrawable*/,
183 GCPtr /*pGC*/,
184 int /*srcx*/,
185 int /*srcy*/,
186 int /*width*/,
187 int /*height*/,
188 int /*dstx*/,
189 int /*dsty*/,
190 unsigned long /*plane*/
191);
192
193extern void miSendGraphicsExpose(
194 ClientPtr /*client*/,
195 RegionPtr /*pRgn*/,
196 XID /*drawable*/,
197 int /*major*/,
198 int /*minor*/
199);
200
201extern void miSendExposures(
202 WindowPtr /*pWin*/,
203 RegionPtr /*pRgn*/,
204 int /*dx*/,
205 int /*dy*/
206);
207
208extern void miWindowExposures(
209 WindowPtr /*pWin*/,
210 RegionPtr /*prgn*/,
211 RegionPtr /*other_exposed*/
212);
213
214extern void miPaintWindow(
215 WindowPtr /*pWin*/,
216 RegionPtr /*prgn*/,
217 int /*what*/
218);
219
220extern void miClearDrawable(
221 DrawablePtr /*pDraw*/,
222 GCPtr /*pGC*/
223);
224
225/* mifillrct.c */
226
227extern void miPolyFillRect(
228 DrawablePtr /*pDrawable*/,
229 GCPtr /*pGC*/,
230 int /*nrectFill*/,
231 xRectangle * /*prectInit*/
232);
233
234/* miglblt.c */
235
236extern void miPolyGlyphBlt(
237 DrawablePtr /*pDrawable*/,
238 GCPtr /*pGC*/,
239 int /*x*/,
240 int /*y*/,
241 unsigned int /*nglyph*/,
242 CharInfoPtr * /*ppci*/,
243 pointer /*pglyphBase*/
244);
245
246extern void miImageGlyphBlt(
247 DrawablePtr /*pDrawable*/,
248 GCPtr /*pGC*/,
249 int /*x*/,
250 int /*y*/,
251 unsigned int /*nglyph*/,
252 CharInfoPtr * /*ppci*/,
253 pointer /*pglyphBase*/
254);
255
256/* mipoly.c */
257
258extern void miFillPolygon(
259 DrawablePtr /*dst*/,
260 GCPtr /*pgc*/,
261 int /*shape*/,
262 int /*mode*/,
263 int /*count*/,
264 DDXPointPtr /*pPts*/
265);
266
267/* mipolycon.c */
268
269extern Bool miFillConvexPoly(
270 DrawablePtr /*dst*/,
271 GCPtr /*pgc*/,
272 int /*count*/,
273 DDXPointPtr /*ptsIn*/
274);
275
276/* mipolygen.c */
277
278extern Bool miFillGeneralPoly(
279 DrawablePtr /*dst*/,
280 GCPtr /*pgc*/,
281 int /*count*/,
282 DDXPointPtr /*ptsIn*/
283);
284
285/* mipolypnt.c */
286
287extern void miPolyPoint(
288 DrawablePtr /*pDrawable*/,
289 GCPtr /*pGC*/,
290 int /*mode*/,
291 int /*npt*/,
292 xPoint * /*pptInit*/
293);
294
295/* mipolyrect.c */
296
297extern void miPolyRectangle(
298 DrawablePtr /*pDraw*/,
299 GCPtr /*pGC*/,
300 int /*nrects*/,
301 xRectangle * /*pRects*/
302);
303
304/* mipolyseg.c */
305
306extern void miPolySegment(
307 DrawablePtr /*pDraw*/,
308 GCPtr /*pGC*/,
309 int /*nseg*/,
310 xSegment * /*pSegs*/
311);
312
313/* mipolytext.c */
314
315extern int miPolyText8(
316 DrawablePtr /*pDraw*/,
317 GCPtr /*pGC*/,
318 int /*x*/,
319 int /*y*/,
320 int /*count*/,
321 char * /*chars*/
322);
323
324extern int miPolyText16(
325 DrawablePtr /*pDraw*/,
326 GCPtr /*pGC*/,
327 int /*x*/,
328 int /*y*/,
329 int /*count*/,
330 unsigned short * /*chars*/
331);
332
333extern void miImageText8(
334 DrawablePtr /*pDraw*/,
335 GCPtr /*pGC*/,
336 int /*x*/,
337 int /*y*/,
338 int /*count*/,
339 char * /*chars*/
340);
341
342extern void miImageText16(
343 DrawablePtr /*pDraw*/,
344 GCPtr /*pGC*/,
345 int /*x*/,
346 int /*y*/,
347 int /*count*/,
348 unsigned short * /*chars*/
349);
350
351/* mipushpxl.c */
352
353extern void miPushPixels(
354 GCPtr /*pGC*/,
355 PixmapPtr /*pBitMap*/,
356 DrawablePtr /*pDrawable*/,
357 int /*dx*/,
358 int /*dy*/,
359 int /*xOrg*/,
360 int /*yOrg*/
361);
362
363/* miregion.c */
364
365/* see also region.h */
366
367extern Bool miRectAlloc(
368 RegionPtr /*pRgn*/,
369 int /*n*/
370);
371
372#ifdef DEBUG
373extern Bool miValidRegion(
374 RegionPtr /*prgn*/
375);
376#endif
377
378extern Bool miRegionBroken(RegionPtr pReg);
379
380/* miscrinit.c */
381
382extern Bool miModifyPixmapHeader(
383 PixmapPtr /*pPixmap*/,
384 int /*width*/,
385 int /*height*/,
386 int /*depth*/,
387 int /*bitsPerPixel*/,
388 int /*devKind*/,
389 pointer /*pPixData*/
390);
391
392extern Bool miCreateScreenResources(
393 ScreenPtr /*pScreen*/
394);
395
396extern Bool miScreenDevPrivateInit(
397 ScreenPtr /*pScreen*/,
398 int /*width*/,
399 pointer /*pbits*/
400);
401
402extern Bool miScreenInit(
403 ScreenPtr /*pScreen*/,
404 pointer /*pbits*/,
405 int /*xsize*/,
406 int /*ysize*/,
407 int /*dpix*/,
408 int /*dpiy*/,
409 int /*width*/,
410 int /*rootDepth*/,
411 int /*numDepths*/,
412 DepthPtr /*depths*/,
413 VisualID /*rootVisual*/,
414 int /*numVisuals*/,
415 VisualPtr /*visuals*/
416);
417
418extern DevPrivateKey miAllocateGCPrivateIndex(
419 void
420);
421
422/* mivaltree.c */
423
424extern int miShapedWindowIn(
425 ScreenPtr /*pScreen*/,
426 RegionPtr /*universe*/,
427 RegionPtr /*bounding*/,
428 BoxPtr /*rect*/,
429 int /*x*/,
430 int /*y*/
431);
432
433typedef void
434(*SetRedirectBorderClipProcPtr) (WindowPtr pWindow, RegionPtr pRegion);
435
436typedef RegionPtr
437(*GetRedirectBorderClipProcPtr) (WindowPtr pWindow);
438
439void
440miRegisterRedirectBorderClipProc (SetRedirectBorderClipProcPtr setBorderClip,
441 GetRedirectBorderClipProcPtr getBorderClip);
442
443extern int miValidateTree(
444 WindowPtr /*pParent*/,
445 WindowPtr /*pChild*/,
446 VTKind /*kind*/
447);
448
449extern void miWideLine(
450 DrawablePtr /*pDrawable*/,
451 GCPtr /*pGC*/,
452 int /*mode*/,
453 int /*npt*/,
454 DDXPointPtr /*pPts*/
455);
456
457extern void miWideDash(
458 DrawablePtr /*pDrawable*/,
459 GCPtr /*pGC*/,
460 int /*mode*/,
461 int /*npt*/,
462 DDXPointPtr /*pPts*/
463);
464
465/* miwindow.c */
466
467extern void miClearToBackground(
468 WindowPtr /*pWin*/,
469 int /*x*/,
470 int /*y*/,
471 int /*w*/,
472 int /*h*/,
473 Bool /*generateExposures*/
474);
475
476extern void miMarkWindow(
477 WindowPtr /*pWin*/
478);
479
480extern Bool miMarkOverlappedWindows(
481 WindowPtr /*pWin*/,
482 WindowPtr /*pFirst*/,
483 WindowPtr * /*ppLayerWin*/
484);
485
486extern void miHandleValidateExposures(
487 WindowPtr /*pWin*/
488);
489
490extern void miMoveWindow(
491 WindowPtr /*pWin*/,
492 int /*x*/,
493 int /*y*/,
494 WindowPtr /*pNextSib*/,
495 VTKind /*kind*/
496);
497
498extern void miSlideAndSizeWindow(
499 WindowPtr /*pWin*/,
500 int /*x*/,
501 int /*y*/,
502 unsigned int /*w*/,
503 unsigned int /*h*/,
504 WindowPtr /*pSib*/
505);
506
507extern WindowPtr miGetLayerWindow(
508 WindowPtr /*pWin*/
509);
510
511extern void miSetShape(
512 WindowPtr /*pWin*/
513);
514
515extern void miChangeBorderWidth(
516 WindowPtr /*pWin*/,
517 unsigned int /*width*/
518);
519
520extern void miMarkUnrealizedWindow(
521 WindowPtr /*pChild*/,
522 WindowPtr /*pWin*/,
523 Bool /*fromConfigure*/
524);
525
526extern void miSegregateChildren(WindowPtr pWin, RegionPtr pReg, int depth);
527
528/* mizerarc.c */
529
530extern void miZeroPolyArc(
531 DrawablePtr /*pDraw*/,
532 GCPtr /*pGC*/,
533 int /*narcs*/,
534 xArc * /*parcs*/
535);
536
537/* mizerline.c */
538
539extern void miZeroLine(
540 DrawablePtr /*dst*/,
541 GCPtr /*pgc*/,
542 int /*mode*/,
543 int /*nptInit*/,
544 DDXPointRec * /*pptInit*/
545);
546
547extern void miZeroDashLine(
548 DrawablePtr /*dst*/,
549 GCPtr /*pgc*/,
550 int /*mode*/,
551 int /*nptInit*/,
552 DDXPointRec * /*pptInit*/
553);
554
555extern void miPolyFillArc(
556 DrawablePtr /*pDraw*/,
557 GCPtr /*pGC*/,
558 int /*narcs*/,
559 xArc * /*parcs*/
560);
561
562#endif /* MI_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette