Mac OS 9
CGRemoteOperation.h
Go to the documentation of this file.
1 
19 #ifndef __CGREMOTEOPERATION__
20 #define __CGREMOTEOPERATION__
21 
22 #ifndef __CGBASE__
23 #include <CGBase.h>
24 #endif
25 
26 #ifndef __CGGEOMETRY__
27 #include <CGGeometry.h>
28 #endif
29 
30 #ifndef __CGERROR__
31 #include <CGError.h>
32 #endif
33 
34 #ifndef __CFDATE__
35 #include <CFDate.h>
36 #endif
37 
38 #if PRAGMA_ONCE
39 #pragma once
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 #if PRAGMA_IMPORT
48 #pragma import on
49 #endif
50 
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
54 #pragma pack(push, 2)
55 #elif PRAGMA_STRUCT_PACK
56 #pragma pack(2)
57 #endif
58 
59 #if PRAGMA_ENUM_ALWAYSINT
60 #if defined(__fourbyteints__) && !__fourbyteints__
61 #define __CGREMOTEOPERATION__RESTORE_TWOBYTEINTS
62 #pragma fourbyteints on
63 #endif
64 #pragma enumsalwaysint on
65 #elif PRAGMA_ENUM_OPTIONS
66 #pragma option enum =int
67 #elif PRAGMA_ENUM_PACK
68 #if __option(pack_enums)
69 #define __CGREMOTEOPERATION__RESTORE_PACKED_ENUMS
70 #pragma options(!pack_enums)
71 #endif
72 #endif
73 
74  typedef CGError CGEventErr;
75  enum
76  {
77  CGEventNoErr = kCGErrorSuccess
78  };
79 
80  /* Screen refresh or drawing notification */
104  typedef u_int32_t CGRectCount;
105  typedef CALLBACK_API_C(void, CGScreenRefreshCallback)(CGRectCount count,
106  const CGRect *rectArray,
107  void *userParameter);
122  void
123  CGRegisterScreenRefreshCallback(CGScreenRefreshCallback callback,
124  void *userParameter);
125 
139  void
140  CGUnregisterScreenRefreshCallback(CGScreenRefreshCallback callback,
141  void *userParameter);
142 
163  CGEventErr
165 
177  void
179 
208  typedef u_int32_t CGButtonCount;
217  CGEventErr
218  CGPostMouseEvent(CGPoint mouseCursorPosition,
219  boolean_t updateMouseCursorPosition, CGButtonCount buttonCount,
220  boolean_t mouseButtonDown, ...);
221 
237  typedef u_int32_t CGWheelCount;
246  CGEventErr
247  CGPostScrollWheelEvent(CGWheelCount wheelCount, int32_t wheel1, ...);
248 
264  typedef u_int16_t CGCharCode;
265  typedef u_int16_t CGKeyCode;
274  CGEventErr
275  CGPostKeyboardEvent(CGCharCode keyChar, CGKeyCode virtualKey,
276  boolean_t keyDown);
277 
290  CGEventErr
291  CGWarpMouseCursorPosition(CGPoint newCursorPosition);
292 
313  CGEventErr
314  CGInhibitLocalEvents(boolean_t doInhibit);
315 
328  CGEventErr
329  CGSetLocalEventsSuppressionInterval(CFTimeInterval seconds);
330 
358  CGEventErr
359  CGEnableEventStateCombining(boolean_t doCombineState);
360 
374  {
375  kCGEventFilterMaskPermitLocalMouseEvents =
376  0x00000001, /* Mouse, scroll wheel */
377  kCGEventFilterMaskPermitLocalKeyboardEvents =
378  0x00000002, /* Alphanumeric keys and Command, Option, Control, Shift,
379  AlphaLock */
380  kCGEventFilterMaskPermitSystemDefinedEvents =
381  0x00000004, /* Power key, bezel buttons, sticky keys */
382  kCGEventFilterMaskPermitAllEvents =
383  kCGEventFilterMaskPermitLocalMouseEvents |
384  kCGEventFilterMaskPermitLocalKeyboardEvents |
385  kCGEventFilterMaskPermitSystemDefinedEvents
386  };
388 
389  enum CGEventSupressionState
390  {
391  kCGEventSupressionStateSupressionInterval = 0,
392  kCGEventSupressionStateRemoteMouseDrag = 1,
393  kCGNumberOfEventSupressionStates = 2
394  };
395  typedef enum CGEventSupressionState CGEventSupressionState;
396 
405  CGEventErr
407  CGEventSupressionState state);
408 
439  CGEventErr
441 
483 #if PRAGMA_ENUM_ALWAYSINT
484 #pragma enumsalwaysint reset
485 #ifdef __CGREMOTEOPERATION__RESTORE_TWOBYTEINTS
486 #pragma fourbyteints off
487 #endif
488 #elif PRAGMA_ENUM_OPTIONS
489 #pragma option enum =reset
490 #elif defined(__CGREMOTEOPERATION__RESTORE_PACKED_ENUMS)
491 #pragma options(pack_enums)
492 #endif
493 
494 #if PRAGMA_STRUCT_ALIGN
495 #pragma options align = reset
496 #elif PRAGMA_STRUCT_PACKPUSH
497 #pragma pack(pop)
498 #elif PRAGMA_STRUCT_PACK
499 #pragma pack()
500 #endif
501 
502 #ifdef PRAGMA_IMPORT_OFF
503 #pragma import off
504 #elif PRAGMA_IMPORT
505 #pragma import reset
506 #endif
507 
508 #ifdef __cplusplus
509 }
510 #endif
511 
512 #endif /* __CGREMOTEOPERATION__ */
xxx put contents here xxx
xxx put contents here xxx
xxx put contents here xxx
void CGReleaseScreenRefreshRects(CGRect *rectArray)
CGEventErr CGWarpMouseCursorPosition(CGPoint newCursorPosition)
u_int32_t CGButtonCount
Definition: CGRemoteOperation.h:208
u_int32_t CGWheelCount
Definition: CGRemoteOperation.h:237
CGEventErr CGPostScrollWheelEvent(CGWheelCount wheelCount, int32_t wheel1,...)
CGEventErr CGEnableEventStateCombining(boolean_t doCombineState)
void CGUnregisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userParameter)
CGEventErr CGSetLocalEventsSuppressionInterval(CFTimeInterval seconds)
CGEventErr CGPostMouseEvent(CGPoint mouseCursorPosition, boolean_t updateMouseCursorPosition, CGButtonCount buttonCount, boolean_t mouseButtonDown,...)
CGEventFilterMask
Definition: CGRemoteOperation.h:374
u_int32_t CGRectCount
Definition: CGRemoteOperation.h:104
void CGRegisterScreenRefreshCallback(CGScreenRefreshCallback callback, void *userParameter)
CGEventErr CGAssociateMouseAndMouseCursorPosition(boolean_t connected)
CGEventErr CGPostKeyboardEvent(CGCharCode keyChar, CGKeyCode virtualKey, boolean_t keyDown)
CGEventErr CGSetLocalEventsFilterDuringSupressionState(CGEventFilterMask filter, CGEventSupressionState state)
CGEventErr CGInhibitLocalEvents(boolean_t doInhibit)
CGEventErr CGWaitForScreenRefreshRects(CGRect **pRectArray, CGRectCount *pCount)
u_int16_t CGCharCode
Definition: CGRemoteOperation.h:264
Definition: CGGeometry.h:64
Definition: CGGeometry.h:78