~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/dmx/doc/html/dmxcommon_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
2
<html>
 
3
  <head>
 
4
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
5
    <title>File Index</title>
 
6
    <link href="doxygen.css" rel="stylesheet" type="text/css">
 
7
  </head>
 
8
  <body>
 
9
<!-- Generated by Doxygen 1.3.4 -->
 
10
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
 
11
<h1>dmxcommon.h</h1><a href="dmxcommon_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* $XFree86$ */</span>
 
12
00002 <span class="comment">/*</span>
 
13
00003 <span class="comment"> * Copyright 2002,2003 Red Hat Inc., Durham, North Carolina.</span>
 
14
00004 <span class="comment"> *</span>
 
15
00005 <span class="comment"> * All Rights Reserved.</span>
 
16
00006 <span class="comment"> *</span>
 
17
00007 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
 
18
00008 <span class="comment"> * a copy of this software and associated documentation files (the</span>
 
19
00009 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
 
20
00010 <span class="comment"> * without limitation on the rights to use, copy, modify, merge,</span>
 
21
00011 <span class="comment"> * publish, distribute, sublicense, and/or sell copies of the Software,</span>
 
22
00012 <span class="comment"> * and to permit persons to whom the Software is furnished to do so,</span>
 
23
00013 <span class="comment"> * subject to the following conditions:</span>
 
24
00014 <span class="comment"> *</span>
 
25
00015 <span class="comment"> * The above copyright notice and this permission notice (including the</span>
 
26
00016 <span class="comment"> * next paragraph) shall be included in all copies or substantial</span>
 
27
00017 <span class="comment"> * portions of the Software.</span>
 
28
00018 <span class="comment"> *</span>
 
29
00019 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
 
30
00020 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
 
31
00021 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND</span>
 
32
00022 <span class="comment"> * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS</span>
 
33
00023 <span class="comment"> * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN</span>
 
34
00024 <span class="comment"> * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span>
 
35
00025 <span class="comment"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span>
 
36
00026 <span class="comment"> * SOFTWARE.</span>
 
37
00027 <span class="comment"> */</span>
 
38
00028 
 
39
00029 <span class="comment">/*</span>
 
40
00030 <span class="comment"> * Authors:</span>
 
41
00031 <span class="comment"> *   Rickard E. (Rik) Faith &lt;faith@redhat.com&gt;</span>
 
42
00032 <span class="comment"> *</span>
 
43
00033 <span class="comment"> */</span>
 
44
00034 
 
45
00039 <span class="preprocessor">#ifndef _DMXCOMMON_H_</span>
 
46
00040 <span class="preprocessor"></span><span class="preprocessor">#define _DMXCOMMON_H_</span>
 
47
00041 <span class="preprocessor"></span>
 
48
00042 <span class="preprocessor">#define DMX_COMMON_OTHER                    \</span>
 
49
00043 <span class="preprocessor">    Display                 *display;       \</span>
 
50
00044 <span class="preprocessor">    Window                  window;         \</span>
 
51
00045 <span class="preprocessor">    DMXScreenInfo           *be;            \</span>
 
52
00046 <span class="preprocessor">    DMXLocalInputInfoPtr    dmxLocal;       \</span>
 
53
00047 <span class="preprocessor">    int                     initPointerX;   \</span>
 
54
00048 <span class="preprocessor">    int                     initPointerY;   \</span>
 
55
00049 <span class="preprocessor">    long                    eventMask;      \</span>
 
56
00050 <span class="preprocessor">    KeybdCtrl               kctrl;          \</span>
 
57
00051 <span class="preprocessor">    PtrCtrl                 mctrl;          \</span>
 
58
00052 <span class="preprocessor">    int                     kctrlset;       \</span>
 
59
00053 <span class="preprocessor">    int                     mctrlset;       \</span>
 
60
00054 <span class="preprocessor">    KeybdCtrl               savedKctrl;     \</span>
 
61
00055 <span class="preprocessor">    XModifierKeymap         *savedModMap;   \</span>
 
62
00056 <span class="preprocessor">    int                     stateSaved</span>
 
63
00057 <span class="preprocessor"></span>
 
64
00058 <span class="preprocessor">#ifdef XKB</span>
 
65
00059 <span class="preprocessor"></span><span class="preprocessor">#define DMX_COMMON_XKB                      \</span>
 
66
00060 <span class="preprocessor">    DMX_COMMON_OTHER;                       \</span>
 
67
00061 <span class="preprocessor">    XkbDescPtr              xkb;            \</span>
 
68
00062 <span class="preprocessor">    XkbIndicatorRec         savedIndicators</span>
 
69
00063 <span class="preprocessor"></span><span class="preprocessor">#else</span>
 
70
00064 <span class="preprocessor"></span><span class="preprocessor">#define DMX_COMMON_XKB      DMX_COMMON_OTHER</span>
 
71
00065 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
 
72
00066 <span class="preprocessor"></span>
 
73
00067 <span class="preprocessor">#ifdef XINPUT</span>
 
74
00068 <span class="preprocessor"></span><span class="preprocessor">#define DMX_COMMON_PRIVATE                  \</span>
 
75
00069 <span class="preprocessor">    DMX_COMMON_XKB;                         \</span>
 
76
00070 <span class="preprocessor">    XDevice                 *xi</span>
 
77
00071 <span class="preprocessor"></span><span class="preprocessor">#else</span>
 
78
00072 <span class="preprocessor"></span><span class="preprocessor">#define DMX_COMMON_PRIVATE  DMX_COMMON_OTHER</span>
 
79
00073 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
 
80
00074 <span class="preprocessor"></span>
 
81
00075 <span class="preprocessor">#define GETONLYPRIVFROMPRIVATE                                          \</span>
 
82
00076 <span class="preprocessor">    myPrivate            *priv     = private</span>
 
83
00077 <span class="preprocessor"></span>
 
84
00078 <span class="preprocessor">#define GETPRIVFROMPRIVATE                                              \</span>
 
85
00079 <span class="preprocessor">    GETONLYPRIVFROMPRIVATE;                                             \</span>
 
86
00080 <span class="preprocessor">    DMXInputInfo         *dmxInput = &amp;dmxInputs[priv-&gt;dmxLocal-&gt;inputIdx]</span>
 
87
00081 <span class="preprocessor"></span>
 
88
00082 <span class="preprocessor">#define GETDMXLOCALFROMPDEVICE                                          \</span>
 
89
00083 <span class="preprocessor">    DevicePtr            pDev      = &amp;pDevice-&gt;public;                  \</span>
 
90
00084 <span class="preprocessor">    DMXLocalInputInfoPtr dmxLocal  = pDev-&gt;devicePrivate</span>
 
91
00085 <span class="preprocessor"></span>
 
92
00086 <span class="preprocessor">#define GETDMXINPUTFROMPRIV                                             \</span>
 
93
00087 <span class="preprocessor">    DMXInputInfo         *dmxInput = &amp;dmxInputs[priv-&gt;dmxLocal-&gt;inputIdx]</span>
 
94
00088 <span class="preprocessor"></span>
 
95
00089 <span class="preprocessor">#define GETDMXINPUTFROMPDEVICE                                          \</span>
 
96
00090 <span class="preprocessor">    GETDMXLOCALFROMPDEVICE;                                             \</span>
 
97
00091 <span class="preprocessor">    DMXInputInfo         *dmxInput = &amp;dmxInputs[dmxLocal-&gt;inputIdx]</span>
 
98
00092 <span class="preprocessor"></span>
 
99
00093 <span class="preprocessor">#define GETDMXLOCALFROMPDEV                                             \</span>
 
100
00094 <span class="preprocessor">    DMXLocalInputInfoPtr dmxLocal  = pDev-&gt;devicePrivate</span>
 
101
00095 <span class="preprocessor"></span>
 
102
00096 <span class="preprocessor">#define GETDMXINPUTFROMPDEV                                             \</span>
 
103
00097 <span class="preprocessor">    GETDMXLOCALFROMPDEV;                                                \</span>
 
104
00098 <span class="preprocessor">    DMXInputInfo         *dmxInput = &amp;dmxInputs[dmxLocal-&gt;inputIdx]</span>
 
105
00099 <span class="preprocessor"></span>
 
106
00100 <span class="preprocessor">#define GETPRIVFROMPDEV                                                 \</span>
 
107
00101 <span class="preprocessor">    GETDMXLOCALFROMPDEV;                                                \</span>
 
108
00102 <span class="preprocessor">    myPrivate            *priv     = dmxLocal-&gt;private</span>
 
109
00103 <span class="preprocessor"></span>
 
110
00104 <span class="preprocessor">#define DMX_KEYBOARD_EVENT_MASK                                         \</span>
 
111
00105 <span class="preprocessor">    (KeyPressMask | KeyReleaseMask | KeymapStateMask)</span>
 
112
00106 <span class="preprocessor"></span>
 
113
00107 <span class="preprocessor">#define DMX_POINTER_EVENT_MASK                                          \</span>
 
114
00108 <span class="preprocessor">    (ButtonPressMask | ButtonReleaseMask | PointerMotionMask)</span>
 
115
00109 <span class="preprocessor"></span>
 
116
00110 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a13">dmxCommonKbdGetInfo</a>(DevicePtr pDev, <a class="code" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info);
 
117
00111 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a12">dmxCommonKbdGetMap</a>(DevicePtr pDev,
 
118
00112                                   KeySymsPtr pKeySyms, CARD8 *pModMap);
 
119
00113 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a9">dmxCommonKbdCtrl</a>(DevicePtr pDev, KeybdCtrl *ctrl);
 
120
00114 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a11">dmxCommonKbdBell</a>(DevicePtr pDev, <span class="keywordtype">int</span> percent,
 
121
00115                                 <span class="keywordtype">int</span> volume, <span class="keywordtype">int</span> pitch, <span class="keywordtype">int</span> duration);
 
122
00116 <span class="keyword">extern</span> <span class="keywordtype">int</span>     <a class="code" href="dmxcommon_8c.html#a14">dmxCommonKbdOn</a>(DevicePtr pDev);
 
123
00117 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a15">dmxCommonKbdOff</a>(DevicePtr pDev);
 
124
00118 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a19">dmxCommonMouGetMap</a>(DevicePtr pDev,
 
125
00119                                   <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *map, <span class="keywordtype">int</span> *nButtons);
 
126
00120 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a10">dmxCommonMouCtrl</a>(DevicePtr pDev, PtrCtrl *ctrl);
 
127
00121 <span class="keyword">extern</span> <span class="keywordtype">int</span>     <a class="code" href="dmxcommon_8c.html#a23">dmxCommonMouOn</a>(DevicePtr pDev);
 
128
00122 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a24">dmxCommonMouOff</a>(DevicePtr pDev);
 
129
00123 <span class="keyword">extern</span> <span class="keywordtype">int</span>     <a class="code" href="dmxcommon_8c.html#a25">dmxFindPointerScreen</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
 
130
00124 
 
131
00125 <span class="keyword">extern</span> <span class="keywordtype">int</span>     <a class="code" href="dmxcommon_8c.html#a16">dmxCommonOthOn</a>(DevicePtr pDev);
 
132
00126 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a17">dmxCommonOthOff</a>(DevicePtr pDev);
 
133
00127 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a18">dmxCommonOthGetInfo</a>(DevicePtr pDev, <a class="code" href="struct__DMXLocalInitInfo.html">DMXLocalInitInfoPtr</a> info);
 
134
00128 
 
135
00129                                 <span class="comment">/* helper functions */</span>
 
136
00130 <span class="keyword">extern</span> pointer <a class="code" href="dmxcommon_8c.html#a26">dmxCommonCopyPrivate</a>(DeviceIntPtr pDevice);
 
137
00131 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a27">dmxCommonSaveState</a>(pointer <span class="keyword">private</span>);
 
138
00132 <span class="keyword">extern</span> <span class="keywordtype">void</span>    <a class="code" href="dmxcommon_8c.html#a28">dmxCommonRestoreState</a>(pointer <span class="keyword">private</span>);
 
139
00133 <span class="preprocessor">#endif</span>
 
140
</pre></div>    <hr>
 
141
    <address>
 
142
      <small>
 
143
        Generated June 29, 2004 for <a
 
144
        href="http://dmx.sourceforge.net">Distributed Multihead X</a> by
 
145
        <a href="http://www.doxygen.org/index.html">doxygen</a>
 
146
        1.3.4.
 
147
      </small>
 
148
    </addres>
 
149
    </hr>
 
150
  </body>
 
151
</html>