VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/panoramiXsrv.h@ 99743

Last change on this file since 99743 was 52145, checked in by vboxsync, 10 years ago

Additions/x11/x11include: add header files for X.Org Server 1.16.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1
2#ifdef HAVE_DIX_CONFIG_H
3#include <dix-config.h>
4#endif
5
6#ifndef _PANORAMIXSRV_H_
7#define _PANORAMIXSRV_H_
8
9#include "panoramiX.h"
10
11extern _X_EXPORT int PanoramiXNumScreens;
12extern _X_EXPORT int PanoramiXPixWidth;
13extern _X_EXPORT int PanoramiXPixHeight;
14extern _X_EXPORT RegionRec PanoramiXScreenRegion;
15
16extern _X_EXPORT VisualID PanoramiXTranslateVisualID(int screen, VisualID orig);
17extern _X_EXPORT void PanoramiXConsolidate(void);
18extern _X_EXPORT Bool PanoramiXCreateConnectionBlock(void);
19extern _X_EXPORT PanoramiXRes *PanoramiXFindIDByScrnum(RESTYPE, XID, int);
20extern _X_EXPORT Bool
21XineramaRegisterConnectionBlockCallback(void (*func) (void));
22extern _X_EXPORT int XineramaDeleteResource(void *, XID);
23
24extern _X_EXPORT void XineramaReinitData(void);
25
26extern _X_EXPORT RESTYPE XRC_DRAWABLE;
27extern _X_EXPORT RESTYPE XRT_WINDOW;
28extern _X_EXPORT RESTYPE XRT_PIXMAP;
29extern _X_EXPORT RESTYPE XRT_GC;
30extern _X_EXPORT RESTYPE XRT_COLORMAP;
31extern _X_EXPORT RESTYPE XRT_PICTURE;
32
33/*
34 * Drivers are allowed to wrap this function. Each wrapper can decide that the
35 * two visuals are unequal, but if they are deemed equal, the wrapper must call
36 * down and return FALSE if the wrapped function does. This ensures that all
37 * layers agree that the visuals are equal. The first visual is always from
38 * screen 0.
39 */
40typedef Bool (*XineramaVisualsEqualProcPtr) (VisualPtr, ScreenPtr, VisualPtr);
41extern _X_EXPORT XineramaVisualsEqualProcPtr XineramaVisualsEqualPtr;
42
43extern _X_EXPORT void XineramaGetImageData(DrawablePtr *pDrawables,
44 int left,
45 int top,
46 int width,
47 int height,
48 unsigned int format,
49 unsigned long planemask,
50 char *data, int pitch, Bool isRoot);
51
52static inline void
53panoramix_setup_ids(PanoramiXRes * resource, ClientPtr client, XID base_id)
54{
55 int j;
56
57 resource->info[0].id = base_id;
58 FOR_NSCREENS_FORWARD_SKIP(j) {
59 resource->info[j].id = FakeClientID(client->index);
60 }
61}
62
63#endif /* _PANORAMIXSRV_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