VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/dgaproc.h@ 77938

Last change on this file since 77938 was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
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 <X11/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/* DDX interface */
57
58int
59DGASetMode(
60 int Index,
61 int num,
62 XDGAModePtr mode,
63 PixmapPtr *pPix
64);
65
66void
67DGASetInputMode(
68 int Index,
69 Bool keyboard,
70 Bool mouse
71);
72
73void
74DGASelectInput(
75 int Index,
76 ClientPtr client,
77 long mask
78);
79
80Bool DGAAvailable(int Index);
81Bool DGAActive(int Index);
82void DGAShutdown(void);
83void DGAInstallCmap(ColormapPtr cmap);
84int DGAGetViewportStatus(int Index);
85int DGASync(int Index);
86
87int
88DGAFillRect(
89 int Index,
90 int x, int y, int w, int h,
91 unsigned long color
92);
93
94int
95DGABlitRect(
96 int Index,
97 int srcx, int srcy,
98 int w, int h,
99 int dstx, int dsty
100);
101
102int
103DGABlitTransRect(
104 int Index,
105 int srcx, int srcy,
106 int w, int h,
107 int dstx, int dsty,
108 unsigned long color
109);
110
111int
112DGASetViewport(
113 int Index,
114 int x, int y,
115 int mode
116);
117
118int DGAGetModes(int Index);
119int DGAGetOldDGAMode(int Index);
120
121int DGAGetModeInfo(int Index, XDGAModePtr mode, int num);
122
123Bool DGAVTSwitch(void);
124Bool DGAStealMouseEvent(int Index, xEvent *e, int dx, int dy);
125Bool DGAStealKeyEvent(int Index, xEvent *e);
126Bool DGAIsDgaEvent (xEvent *e);
127
128Bool DGADeliverEvent (ScreenPtr pScreen, xEvent *e);
129
130Bool DGAOpenFramebuffer(int Index, char **name, unsigned char **mem,
131 int *size, int *offset, int *flags);
132void DGACloseFramebuffer(int Index);
133Bool DGAChangePixmapMode(int Index, int *x, int *y, int mode);
134int DGACreateColormap(int Index, ClientPtr client, int id, int mode,
135 int alloc);
136
137extern unsigned char DGAReqCode;
138extern int DGAErrorBase;
139extern int DGAEventBase;
140extern int *XDGAEventBase;
141
142
143
144#endif /* __DGAPROC_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