Distributed Multihead X  1.16.4
dmxextension.h
Go to the documentation of this file.
1 /*
2  * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina.
3  *
4  * All Rights Reserved.
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining
7  * a copy of this software and associated documentation files (the
8  * "Software"), to deal in the Software without restriction, including
9  * without limitation on the rights to use, copy, modify, merge,
10  * publish, distribute, sublicense, and/or sell copies of the Software,
11  * and to permit persons to whom the Software is furnished to do so,
12  * subject to the following conditions:
13  *
14  * The above copyright notice and this permission notice (including the
15  * next paragraph) shall be included in all copies or substantial
16  * portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21  * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
22  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25  * SOFTWARE.
26  */
27 
28 /*
29  * Author:
30  * Rickard E. (Rik) Faith <faith@redhat.com>
31  * Kevin E. Martin <kem@redhat.com>
32  *
33  */
34 
39 #ifndef _DMXEXTENSION_H_
40 #define _DMXEXTENSION_H_
41 
44 typedef struct {
45  const char *displayName;
47 
48  unsigned int screenWindowWidth; /* displayName's coordinate system */
49  unsigned int screenWindowHeight; /* displayName's coordinate system */
50  int screenWindowXoffset; /* displayName's coordinate system */
51  int screenWindowYoffset; /* displayName's coordinate system */
52 
53  unsigned int rootWindowWidth; /* screenWindow's coordinate system */
54  unsigned int rootWindowHeight; /* screenWindow's coordinate system */
55  int rootWindowXoffset; /* screenWindow's coordinate system */
56  int rootWindowYoffset; /* screenWindow's coordinate system */
57 
58  int rootWindowXorigin; /* global coordinate system */
59  int rootWindowYorigin; /* global coordinate system */
61 
63 typedef struct {
64  int screen;
65  Window window;
66  xRectangle pos;
67  xRectangle vis;
69 
72 typedef struct {
73  int width;
74  int height;
75  int shiftX;
76  int shiftY;
78 
80 typedef struct {
81  const char *name;
82  int inputType;
85  int isCore;
86  int sendsCore;
87  int detached;
89 
90 extern unsigned long dmxGetNumScreens(void);
91 extern void dmxForceWindowCreation(WindowPtr pWindow);
92 extern void dmxFlushPendingSyncs(void);
93 extern Bool dmxGetScreenAttributes(int physical, DMXScreenAttributesPtr attr);
94 extern Bool dmxGetWindowAttributes(WindowPtr pWindow,
95  DMXWindowAttributesPtr attr);
96 extern void dmxGetDesktopAttributes(DMXDesktopAttributesPtr attr);
97 extern int dmxGetInputCount(void);
98 extern int dmxGetInputAttributes(int deviceId, DMXInputAttributesPtr attr);
99 extern int dmxAddInput(DMXInputAttributesPtr attr, int *deviceId);
100 extern int dmxRemoveInput(int deviceId);
101 
102 extern int dmxConfigureScreenWindows(int nscreens,
103  CARD32 *screens,
104  DMXScreenAttributesPtr attribs,
105  int *errorScreen);
106 
107 extern int dmxConfigureDesktop(DMXDesktopAttributesPtr attribs);
108 
109 /* dmxUpdateScreenResources exposed for dmxCreateWindow in dmxwindow.c */
110 extern void dmxUpdateScreenResources(ScreenPtr pScreen,
111  int x, int y, int w, int h);
112 
113 extern int dmxAttachScreen(int idx, DMXScreenAttributesPtr attr);
114 extern int dmxDetachScreen(int idx);
115 #endif
int dmxAttachScreen(int idx, DMXScreenAttributesPtr attr)
Definition: dmxextension.c:1235
int physicalScreen
Definition: dmxextension.h:83
int detached
Definition: dmxextension.h:87
int dmxConfigureScreenWindows(int nscreens, CARD32 *screens, DMXScreenAttributesPtr attribs, int *errorScreen)
void dmxForceWindowCreation(WindowPtr pWindow)
Definition: dmxextension.c:305
Definition: dmxextension.h:63
int rootWindowXoffset
Definition: dmxextension.h:55
Bool dmxGetScreenAttributes(int physical, DMXScreenAttributesPtr attr)
Definition: dmxextension.c:77
int dmxConfigureDesktop(DMXDesktopAttributesPtr attribs)
Definition: dmxextension.h:72
void dmxGetDesktopAttributes(DMXDesktopAttributesPtr attr)
Definition: dmxextension.c:166
int dmxGetInputAttributes(int deviceId, DMXInputAttributesPtr attr)
Definition: dmxextension.c:192
int rootWindowYorigin
Definition: dmxextension.h:59
int dmxDetachScreen(int idx)
Definition: dmxextension.c:1646
int screen
Definition: dmxextension.h:64
unsigned int rootWindowWidth
Definition: dmxextension.h:53
unsigned int screenWindowHeight
Definition: dmxextension.h:49
Window window
Definition: dmxextension.h:65
Definition: dmxextension.h:44
int physicalId
Definition: dmxextension.h:84
unsigned int screenWindowWidth
Definition: dmxextension.h:48
int height
Definition: dmxextension.h:74
int rootWindowXorigin
Definition: dmxextension.h:58
const char * name
Definition: dmxextension.h:81
void dmxFlushPendingSyncs(void)
Definition: dmxextension.c:315
int dmxRemoveInput(int deviceId)
Definition: dmxextension.c:288
int dmxAddInput(DMXInputAttributesPtr attr, int *deviceId)
Definition: dmxextension.c:265
Bool dmxGetWindowAttributes(WindowPtr pWindow, DMXWindowAttributesPtr attr)
Definition: dmxextension.c:111
xRectangle pos
Definition: dmxextension.h:66
int sendsCore
Definition: dmxextension.h:86
unsigned long dmxGetNumScreens(void)
Definition: dmxextension.c:297
int screenWindowXoffset
Definition: dmxextension.h:50
int rootWindowYoffset
Definition: dmxextension.h:56
int shiftX
Definition: dmxextension.h:75
int logicalScreen
Definition: dmxextension.h:46
int screenWindowYoffset
Definition: dmxextension.h:51
struct DMXDesktopAttributesRec * DMXDesktopAttributesPtr
const char * displayName
Definition: dmxextension.h:45
int width
Definition: dmxextension.h:73
xRectangle vis
Definition: dmxextension.h:67
int dmxGetInputCount(void)
Definition: dmxextension.c:178
void dmxUpdateScreenResources(ScreenPtr pScreen, int x, int y, int w, int h)
Definition: dmxextension.c:323
int isCore
Definition: dmxextension.h:85
struct DMXScreenAttributesRec * DMXScreenAttributesPtr
struct DMXInputAttributesRec * DMXInputAttributesPtr
unsigned int rootWindowHeight
Definition: dmxextension.h:54
struct DMXWindowAttributesRec * DMXWindowAttributesPtr
int inputType
Definition: dmxextension.h:82
int shiftY
Definition: dmxextension.h:76
Definition: dmxextension.h:80

Generated on Tue Aug 18 2015 01:27:31 for Distributed Multihead X by doxygen 1.8.8