VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/dgaproc.h@ 97956

最後變更 在這個檔案從97956是 69098,由 vboxsync 提交於 7 年 前

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.2 KB
 
1/* $XFree86: xc/programs/Xserver/Xext/dgaproc.h,v 1.21 2000/06/30 19:06:54 keithp Exp $ */
2
3#ifndef __DGAPROC_H
4#define __DGAPROC_H
5
6#include "Xproto.h"
7#include "pixmap.h"
8
9#define DGA_CONCURRENT_ACCESS 0x00000001
10#define DGA_FILL_RECT 0x00000002
11#define DGA_BLIT_RECT 0x00000004
12#define DGA_BLIT_RECT_TRANS 0x00000008
13#define DGA_PIXMAP_AVAILABLE 0x00000010
14
15#define DGA_INTERLACED 0x00010000
16#define DGA_DOUBLESCAN 0x00020000
17
18#define DGA_FLIP_IMMEDIATE 0x00000001
19#define DGA_FLIP_RETRACE 0x00000002
20
21#define DGA_COMPLETED 0x00000000
22#define DGA_PENDING 0x00000001
23
24#define DGA_NEED_ROOT 0x00000001
25
26typedef struct {
27 int num; /* A unique identifier for the mode (num > 0) */
28 char *name; /* name of mode given in the XF86Config */
29 int VSync_num;
30 int VSync_den;
31 int flags; /* DGA_CONCURRENT_ACCESS, etc... */
32 int imageWidth; /* linear accessible portion (pixels) */
33 int imageHeight;
34 int pixmapWidth; /* Xlib accessible portion (pixels) */
35 int pixmapHeight; /* both fields ignored if no concurrent access */
36 int bytesPerScanline;
37 int byteOrder; /* MSBFirst, LSBFirst */
38 int depth;
39 int bitsPerPixel;
40 unsigned long red_mask;
41 unsigned long green_mask;
42 unsigned long blue_mask;
43 short visualClass;
44 int viewportWidth;
45 int viewportHeight;
46 int xViewportStep; /* viewport position granularity */
47 int yViewportStep;
48 int maxViewportX; /* max viewport origin */
49 int maxViewportY;
50 int viewportFlags; /* types of page flipping possible */
51 int offset;
52 int reserved1;
53 int reserved2;
54} XDGAModeRec, *XDGAModePtr;
55
56
57void XFree86DGAExtensionInit(void);
58
59/* DDX interface */
60
61int
62DGASetMode(
63 int Index,
64 int num,
65 XDGAModePtr mode,
66 PixmapPtr *pPix
67);
68
69void
70DGASetInputMode(
71 int Index,
72 Bool keyboard,
73 Bool mouse
74);
75
76void
77DGASelectInput(
78 int Index,
79 ClientPtr client,
80 long mask
81);
82
83Bool DGAAvailable(int Index);
84Bool DGAActive(int Index);
85void DGAShutdown(void);
86void DGAInstallCmap(ColormapPtr cmap);
87int DGAGetViewportStatus(int Index);
88int DGASync(int Index);
89
90int
91DGAFillRect(
92 int Index,
93 int x, int y, int w, int h,
94 unsigned long color
95);
96
97int
98DGABlitRect(
99 int Index,
100 int srcx, int srcy,
101 int w, int h,
102 int dstx, int dsty
103);
104
105int
106DGABlitTransRect(
107 int Index,
108 int srcx, int srcy,
109 int w, int h,
110 int dstx, int dsty,
111 unsigned long color
112);
113
114int
115DGASetViewport(
116 int Index,
117 int x, int y,
118 int mode
119);
120
121int DGAGetModes(int Index);
122int DGAGetOldDGAMode(int Index);
123
124int DGAGetModeInfo(int Index, XDGAModePtr mode, int num);
125
126Bool DGAVTSwitch(void);
127Bool DGAStealMouseEvent(int Index, xEvent *e, int dx, int dy);
128Bool DGAStealKeyEvent(int Index, xEvent *e);
129Bool DGAIsDgaEvent (xEvent *e);
130
131Bool DGADeliverEvent (ScreenPtr pScreen, xEvent *e);
132
133Bool DGAOpenFramebuffer(int Index, char **name, unsigned char **mem,
134 int *size, int *offset, int *flags);
135void DGACloseFramebuffer(int Index);
136Bool DGAChangePixmapMode(int Index, int *x, int *y, int mode);
137int DGACreateColormap(int Index, ClientPtr client, int id, int mode,
138 int alloc);
139
140extern unsigned char DGAReqCode;
141extern int DGAErrorBase;
142extern int DGAEventBase;
143extern int *XDGAEventBase;
144
145
146
147#endif /* __DGAPROC_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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