Debian Codegraph @

src/Graphics/UI/GLUT/Raw/Callbacks.hs

raw
1 {-# OPTIONS_HADDOCK hide #-}
2 -----------------------------------------------------------------------------
3 -- |
4 -- Module : Graphics.UI.GLUT.Raw.Callbacks
5 -- Copyright : (c) Sven Panne 2018
6 -- License : BSD3
7 --
8 -- Maintainer : Sven Panne <[email protected]>
9 -- Stability : stable
10 -- Portability : portable
11 --
12 -- All GLUT callbacks.
13 --
14 -----------------------------------------------------------------------------
15
16 module Graphics.UI.GLUT.Raw.Callbacks (
17 AppStatusFunc, makeAppStatusFunc,
18 ButtonBoxFunc, makeButtonBoxFunc,
19 CloseFunc, makeCloseFunc,
20 DialsFunc, makeDialsFunc,
21 DisplayFunc, makeDisplayFunc,
22 EntryFunc, makeEntryFunc,
23 IdleFunc, makeIdleFunc,
24 InitContextFunc, makeInitContextFunc,
25 JoystickFunc, makeJoystickFunc,
26 KeyboardFunc, makeKeyboardFunc,
27 KeyboardUpFunc, makeKeyboardUpFunc,
28 MenuDestroyFunc, makeMenuDestroyFunc,
29 MenuFunc, makeMenuFunc,
30 MenuStateFunc, makeMenuStateFunc,
31 MenuStatusFunc, makeMenuStatusFunc,
32 MotionFunc, makeMotionFunc,
33 MouseFunc, makeMouseFunc,
34 MouseWheelFunc, makeMouseWheelFunc,
35 MultiButtonFunc, makeMultiButtonFunc,
36 MultiEntryFunc, makeMultiEntryFunc,
37 MultiMotionFunc, makeMultiMotionFunc,
38 MultiPassiveFunc, makeMultiPassiveFunc,
39 OverlayDisplayFunc, makeOverlayDisplayFunc,
40 PassiveMotionFunc, makePassiveMotionFunc,
41 PositionFunc, makePositionFunc,
42 ReshapeFunc, makeReshapeFunc,
43 SpaceballButtonFunc, makeSpaceballButtonFunc,
44 SpaceballMotionFunc, makeSpaceballMotionFunc,
45 SpaceballRotateFunc, makeSpaceballRotateFunc,
46 SpecialFunc, makeSpecialFunc,
47 SpecialUpFunc, makeSpecialUpFunc,
48 TabletButtonFunc, makeTabletButtonFunc,
49 TabletMotionFunc, makeTabletMotionFunc,
50 TimerFunc, makeTimerFunc,
51 VisibilityFunc, makeVisibilityFunc,
52 WMCloseFunc, makeWMCloseFunc,
53 WindowStatusFunc, makeWindowStatusFunc
54 ) where
55
56 import Foreign.C.Types
57 import Foreign.Ptr
58
59 type AppStatusFunc = CInt -> IO ()
60
61 foreign import ccall "wrapper"
62 makeAppStatusFunc :: AppStatusFunc -> IO (FunPtr AppStatusFunc)
63
64 type ButtonBoxFunc = CInt -> CInt -> IO ()
65
66 foreign import ccall "wrapper"
67 makeButtonBoxFunc :: ButtonBoxFunc -> IO (FunPtr ButtonBoxFunc)
68
69 type CloseFunc = IO ()
70
71 foreign import ccall "wrapper"
72 makeCloseFunc :: CloseFunc -> IO (FunPtr CloseFunc)
73
74 type DialsFunc = CInt -> CInt -> IO ()
75
76 foreign import ccall "wrapper"
77 makeDialsFunc :: DialsFunc -> IO (FunPtr DialsFunc)
78
79 type DisplayFunc = IO ()
80
81 foreign import ccall "wrapper"
82 makeDisplayFunc :: DisplayFunc -> IO (FunPtr DisplayFunc)
83
84 type EntryFunc = CInt -> IO ()
85
86 foreign import ccall "wrapper"
87 makeEntryFunc :: EntryFunc -> IO (FunPtr EntryFunc)
88
89 type IdleFunc = IO ()
90
91 foreign import ccall "wrapper"
92 makeIdleFunc :: IdleFunc -> IO (FunPtr IdleFunc)
93
94 type InitContextFunc = IO ()
95
96 foreign import ccall "wrapper"
97 makeInitContextFunc :: InitContextFunc -> IO (FunPtr InitContextFunc)
98
99 type JoystickFunc = CUInt -> CInt -> CInt -> CInt -> IO ()
100
101 foreign import ccall "wrapper"
102 makeJoystickFunc :: JoystickFunc -> IO (FunPtr JoystickFunc)
103
104 type KeyboardFunc = CUChar -> CInt -> CInt -> IO ()
105
106 foreign import ccall "wrapper"
107 makeKeyboardFunc :: KeyboardFunc -> IO (FunPtr KeyboardFunc)
108
109 type KeyboardUpFunc = CUChar -> CInt -> CInt -> IO ()
110
111 foreign import ccall "wrapper"
112 makeKeyboardUpFunc :: KeyboardUpFunc -> IO (FunPtr KeyboardUpFunc)
113
114 type MenuDestroyFunc = IO ()
115
116 foreign import ccall "wrapper"
117 makeMenuDestroyFunc :: MenuDestroyFunc -> IO (FunPtr MenuDestroyFunc)
118
119 type MenuFunc = CInt -> IO ()
120
121 foreign import ccall "wrapper"
122 makeMenuFunc :: MenuFunc -> IO (FunPtr MenuFunc)
123
124 type MenuStateFunc = CInt -> IO ()
125
126 foreign import ccall "wrapper"
127 makeMenuStateFunc :: MenuStateFunc -> IO (FunPtr MenuStateFunc)
128
129 type MenuStatusFunc = CInt -> CInt -> CInt -> IO ()
130
131 foreign import ccall "wrapper"
132 makeMenuStatusFunc :: MenuStatusFunc -> IO (FunPtr MenuStatusFunc)
133
134 type MotionFunc = CInt -> CInt -> IO ()
135
136 foreign import ccall "wrapper"
137 makeMotionFunc :: MotionFunc -> IO (FunPtr MotionFunc)
138
139 type MouseFunc = CInt -> CInt -> CInt -> CInt -> IO ()
140
141 foreign import ccall "wrapper"
142 makeMouseFunc :: MouseFunc -> IO (FunPtr MouseFunc)
143
144 type MouseWheelFunc = CInt -> CInt -> CInt -> CInt -> IO ()
145
146 foreign import ccall "wrapper"
147 makeMouseWheelFunc :: MouseWheelFunc -> IO (FunPtr MouseWheelFunc)
148
149 type MultiButtonFunc = CInt -> CInt -> CInt -> CInt -> CInt -> IO ()
150
151 foreign import ccall "wrapper"
152 makeMultiButtonFunc :: MultiButtonFunc -> IO (FunPtr MultiButtonFunc)
153
154 type MultiEntryFunc = CInt -> CInt -> IO ()
155
156 foreign import ccall "wrapper"
157 makeMultiEntryFunc :: MultiEntryFunc -> IO (FunPtr MultiEntryFunc)
158
159 type MultiMotionFunc = CInt -> CInt -> CInt -> IO ()
160
161 foreign import ccall "wrapper"
162 makeMultiMotionFunc :: MultiMotionFunc -> IO (FunPtr MultiMotionFunc)
163
164 type MultiPassiveFunc = CInt -> CInt -> CInt -> IO ()
165
166 foreign import ccall "wrapper"
167 makeMultiPassiveFunc :: MultiPassiveFunc -> IO (FunPtr MultiPassiveFunc)
168
169 type OverlayDisplayFunc = IO ()
170
171 foreign import ccall "wrapper"
172 makeOverlayDisplayFunc :: OverlayDisplayFunc -> IO (FunPtr OverlayDisplayFunc)
173
174 type PassiveMotionFunc = CInt -> CInt -> IO ()
175
176 foreign import ccall "wrapper"
177 makePassiveMotionFunc :: PassiveMotionFunc -> IO (FunPtr PassiveMotionFunc)
178
179 type PositionFunc = CInt -> CInt -> IO ()
180
181 foreign import ccall "wrapper"
182 makePositionFunc :: PositionFunc -> IO (FunPtr PositionFunc)
183
184 type ReshapeFunc = CInt -> CInt -> IO ()
185
186 foreign import ccall "wrapper"
187 makeReshapeFunc :: ReshapeFunc -> IO (FunPtr ReshapeFunc)
188
189 type SpaceballButtonFunc = CInt -> CInt -> IO ()
190
191 foreign import ccall "wrapper"
192 makeSpaceballButtonFunc :: SpaceballButtonFunc -> IO (FunPtr SpaceballButtonFunc)
193
194 type SpaceballMotionFunc = CInt -> CInt -> CInt -> IO ()
195
196 foreign import ccall "wrapper"
197 makeSpaceballMotionFunc :: SpaceballMotionFunc -> IO (FunPtr SpaceballMotionFunc)
198
199 type SpaceballRotateFunc = CInt -> CInt -> CInt -> IO ()
200
201 foreign import ccall "wrapper"
202 makeSpaceballRotateFunc :: SpaceballRotateFunc -> IO (FunPtr SpaceballRotateFunc)
203
204 type SpecialFunc = CInt -> CInt -> CInt -> IO ()
205
206 foreign import ccall "wrapper"
207 makeSpecialFunc :: SpecialFunc -> IO (FunPtr SpecialFunc)
208
209 type SpecialUpFunc = CInt -> CInt -> CInt -> IO ()
210
211 foreign import ccall "wrapper"
212 makeSpecialUpFunc :: SpecialUpFunc -> IO (FunPtr SpecialUpFunc)
213
214 type TabletButtonFunc = CInt -> CInt -> CInt -> CInt -> IO ()
215
216 foreign import ccall "wrapper"
217 makeTabletButtonFunc :: TabletButtonFunc -> IO (FunPtr TabletButtonFunc)
218
219 type TabletMotionFunc = CInt -> CInt -> IO ()
220
221 foreign import ccall "wrapper"
222 makeTabletMotionFunc :: TabletMotionFunc -> IO (FunPtr TabletMotionFunc)
223
224 type TimerFunc = CInt -> IO ()
225
226 foreign import ccall "wrapper"
227 makeTimerFunc :: TimerFunc -> IO (FunPtr TimerFunc)
228
229 type VisibilityFunc = CInt -> IO ()
230
231 foreign import ccall "wrapper"
232 makeVisibilityFunc :: VisibilityFunc -> IO (FunPtr VisibilityFunc)
233
234 type WMCloseFunc = IO ()
235
236 foreign import ccall "wrapper"
237 makeWMCloseFunc :: WMCloseFunc -> IO (FunPtr WMCloseFunc)
238
239 type WindowStatusFunc = CInt -> IO ()
240
241 foreign import ccall "wrapper"
242 makeWindowStatusFunc :: WindowStatusFunc -> IO (FunPtr WindowStatusFunc)