Mac OS 9
CGDirectDisplay.h
Go to the documentation of this file.
1 
19 #ifndef __CGDIRECTDISPLAY__
20 #define __CGDIRECTDISPLAY__
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 __CFARRAY__
35 #include <CFArray.h>
36 #endif
37 
38 #ifndef __CFSTRING__
39 #include <CFString.h>
40 #endif
41 
42 #ifndef __CFDICTIONARY__
43 #include <CFDictionary.h>
44 #endif
45 
46 #if PRAGMA_ONCE
47 #pragma once
48 #endif
49 
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif
54 
55 #if PRAGMA_IMPORT
56 #pragma import on
57 #endif
58 
59 #if PRAGMA_STRUCT_ALIGN
60 #pragma options align = mac68k
61 #elif PRAGMA_STRUCT_PACKPUSH
62 #pragma pack(push, 2)
63 #elif PRAGMA_STRUCT_PACK
64 #pragma pack(2)
65 #endif
66 
67  typedef struct _CGDirectDisplayID *CGDirectDisplayID;
68  typedef struct _CGDirectPaletteRef *CGDirectPaletteRef;
69  typedef u_int32_t CGDisplayCount;
70  typedef u_int32_t CGTableCount;
71  typedef int32_t CGDisplayCoord;
72  typedef u_int8_t CGByteValue;
73  typedef u_int32_t CGOpenGLDisplayMask;
74  typedef u_int32_t CGBeamPosition;
75  typedef int32_t CGMouseDelta;
76  typedef double CGRefreshRate;
77  typedef CGError CGDisplayErr;
78  enum
79  {
80  CGDisplayNoErr = kCGErrorSuccess
81  };
82 
85 #define kCGDirectMainDisplay ((CGDirectDisplayID)NULL)
86 
105  CGDisplayErr
106  CGGetDisplaysWithPoint(CGPoint point, CGDisplayCount maxDisplays,
107  CGDirectDisplayID *dspys, CGDisplayCount *dspyCnt);
108 
117  CGDisplayErr
118  CGGetDisplaysWithRect(CGRect rect, CGDisplayCount maxDisplays,
119  CGDirectDisplayID *dspys, CGDisplayCount *dspyCnt);
120 
129  CGDisplayErr
130  CGGetDisplaysWithOpenGLDisplayMask(CGOpenGLDisplayMask mask,
131  CGDisplayCount maxDisplays,
132  CGDirectDisplayID *dspys,
133  CGDisplayCount *dspyCnt);
134 
154  CGDisplayErr
155  CGGetActiveDisplayList(CGDisplayCount maxDisplays,
156  CGDirectDisplayID *activeDspys, CGDisplayCount *dspyCnt);
157 
167  CGOpenGLDisplayMask
168  CGDisplayIDToOpenGLDisplayMask(CGDirectDisplayID display);
169 
180  CGRect
181  CGDisplayBounds(CGDirectDisplayID display);
182 
191  size_t
192  CGDisplayPixelsWide(CGDirectDisplayID display);
193 
202  size_t
203  CGDisplayPixelsHigh(CGDirectDisplayID display);
204 
228  extern CFStringRef kCGDisplayWidth;
237  extern CFStringRef kCGDisplayHeight;
246  extern CFStringRef kCGDisplayMode;
255  extern CFStringRef kCGDisplayBitsPerPixel;
264  extern CFStringRef kCGDisplayBitsPerSample;
273  extern CFStringRef kCGDisplaySamplesPerPixel;
282  extern CFStringRef kCGDisplayRefreshRate;
291  extern CFStringRef kCGDisplayModeUsableForDesktopGUI;
300  extern CFStringRef kCGDisplayIOFlags;
313  CFArrayRef
314  CGDisplayAvailableModes(CGDirectDisplayID display);
315 
334  CFDictionaryRef
335  CGDisplayBestModeForParameters(CGDirectDisplayID display, size_t bitsPerPixel,
336  size_t width, size_t height,
337  boolean_t *exactMatch);
338 
347  CFDictionaryRef
349  size_t bitsPerPixel, size_t width,
350  size_t height,
351  CGRefreshRate refresh,
352  boolean_t *exactMatch);
353 
366  CFDictionaryRef
367  CGDisplayCurrentMode(CGDirectDisplayID display);
368 
386  CGDisplayErr
387  CGDisplaySwitchToMode(CGDirectDisplayID display, CFDictionaryRef mode);
388 
398  size_t
399  CGDisplayBitsPerPixel(CGDirectDisplayID display);
400 
409  size_t
410  CGDisplayBitsPerSample(CGDirectDisplayID display);
411 
420  size_t
421  CGDisplaySamplesPerPixel(CGDirectDisplayID display);
422 
431  size_t
432  CGDisplayBytesPerRow(CGDirectDisplayID display);
433 
448  typedef float CGGammaValue;
457  CGDisplayErr
458  CGSetDisplayTransferByFormula(CGDirectDisplayID display, CGGammaValue redMin,
459  CGGammaValue redMax, CGGammaValue redGamma,
460  CGGammaValue greenMin, CGGammaValue greenMax,
461  CGGammaValue greenGamma, CGGammaValue blueMin,
462  CGGammaValue blueMax, CGGammaValue blueGamma);
463 
472  CGDisplayErr
473  CGGetDisplayTransferByFormula(CGDirectDisplayID display, CGGammaValue *redMin,
474  CGGammaValue *redMax, CGGammaValue *redGamma,
475  CGGammaValue *greenMin, CGGammaValue *greenMax,
476  CGGammaValue *greenGamma, CGGammaValue *blueMin,
477  CGGammaValue *blueMax, CGGammaValue *blueGamma);
478 
494  CGDisplayErr
495  CGSetDisplayTransferByTable(CGDirectDisplayID display, CGTableCount tableSize,
496  const CGGammaValue *redTable,
497  const CGGammaValue *greenTable,
498  const CGGammaValue *blueTable);
499 
513  CGDisplayErr
514  CGGetDisplayTransferByTable(CGDirectDisplayID display, CGTableCount capacity,
515  CGGammaValue *redTable, CGGammaValue *greenTable,
516  CGGammaValue *blueTable, CGTableCount *sampleCount);
517 
527  CGDisplayErr
528  CGSetDisplayTransferByByteTable(CGDirectDisplayID display,
529  CGTableCount tableSize,
530  const CGByteValue *redTable,
531  const CGByteValue *greenTable,
532  const CGByteValue *blueTable);
533 
544  void
546 
556  boolean_t
557  CGDisplayIsCaptured(CGDirectDisplayID display);
558 
567  CGDisplayErr
568  CGDisplayCapture(CGDirectDisplayID display);
569 
578  CGDisplayErr
579  CGDisplayRelease(CGDirectDisplayID display);
580 
594  CGDisplayErr
596 
610  CGDisplayErr
612 
625  void *
626  CGShieldingWindowID(CGDirectDisplayID display);
627 
641  int32_t
643 
657  void *
658  CGDisplayBaseAddress(CGDirectDisplayID display);
659 
675  void *
676  CGDisplayAddressForPosition(CGDirectDisplayID display, CGDisplayCoord x,
677  CGDisplayCoord y);
678 
688  CGDisplayErr
689  CGDisplayHideCursor(CGDirectDisplayID display);
690 
700  CGDisplayErr
701  CGDisplayShowCursor(CGDirectDisplayID display);
702 
718  CGDisplayErr
719  CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point);
720 
733  void
734  CGGetLastMouseDelta(CGMouseDelta *deltaX, CGMouseDelta *deltaY);
735 
748  boolean_t
749  CGDisplayCanSetPalette(CGDirectDisplayID display);
750 
763  CGDisplayErr
764  CGDisplaySetPalette(CGDirectDisplayID display, CGDirectPaletteRef palette);
765 
809  CGDisplayErr
810  CGDisplayWaitForBeamPositionOutsideLines(CGDirectDisplayID display,
811  CGBeamPosition upperScanLine,
812  CGBeamPosition lowerScanLine);
813 
828  CGBeamPosition
829  CGDisplayBeamPosition(CGDirectDisplayID display);
830 
831 #if PRAGMA_STRUCT_ALIGN
832 #pragma options align = reset
833 #elif PRAGMA_STRUCT_PACKPUSH
834 #pragma pack(pop)
835 #elif PRAGMA_STRUCT_PACK
836 #pragma pack()
837 #endif
838 
839 #ifdef PRAGMA_IMPORT_OFF
840 #pragma import off
841 #elif PRAGMA_IMPORT
842 #pragma import reset
843 #endif
844 
845 #ifdef __cplusplus
846 }
847 #endif
848 
849 #endif
xxx put contents here xxx
CGDisplayErr CGGetDisplaysWithPoint(CGPoint point, CGDisplayCount maxDisplays, CGDirectDisplayID *dspys, CGDisplayCount *dspyCnt)
void CGGetLastMouseDelta(CGMouseDelta *deltaX, CGMouseDelta *deltaY)
CGDisplayErr CGSetDisplayTransferByFormula(CGDirectDisplayID display, CGGammaValue redMin, CGGammaValue redMax, CGGammaValue redGamma, CGGammaValue greenMin, CGGammaValue greenMax, CGGammaValue greenGamma, CGGammaValue blueMin, CGGammaValue blueMax, CGGammaValue blueGamma)
size_t CGDisplayBitsPerPixel(CGDirectDisplayID display)
CFStringRef kCGDisplayMode
CFStringRef kCGDisplayBitsPerSample
CFDictionaryRef CGDisplayBestModeForParameters(CGDirectDisplayID display, size_t bitsPerPixel, size_t width, size_t height, boolean_t *exactMatch)
CGDisplayErr CGSetDisplayTransferByTable(CGDirectDisplayID display, CGTableCount tableSize, const CGGammaValue *redTable, const CGGammaValue *greenTable, const CGGammaValue *blueTable)
CGDisplayErr CGGetDisplaysWithRect(CGRect rect, CGDisplayCount maxDisplays, CGDirectDisplayID *dspys, CGDisplayCount *dspyCnt)
size_t CGDisplayBytesPerRow(CGDirectDisplayID display)
CFStringRef kCGDisplayHeight
size_t CGDisplayPixelsHigh(CGDirectDisplayID display)
CGDisplayErr CGDisplayWaitForBeamPositionOutsideLines(CGDirectDisplayID display, CGBeamPosition upperScanLine, CGBeamPosition lowerScanLine)
CGRect CGDisplayBounds(CGDirectDisplayID display)
CFStringRef kCGDisplayIOFlags
void CGDisplayRestoreColorSyncSettings(void)
CFDictionaryRef CGDisplayCurrentMode(CGDirectDisplayID display)
CGOpenGLDisplayMask CGDisplayIDToOpenGLDisplayMask(CGDirectDisplayID display)
CGDisplayErr CGCaptureAllDisplays(void)
size_t CGDisplayBitsPerSample(CGDirectDisplayID display)
CGDisplayErr CGDisplayCapture(CGDirectDisplayID display)
CGBeamPosition CGDisplayBeamPosition(CGDirectDisplayID display)
CFStringRef kCGDisplaySamplesPerPixel
CGDisplayErr CGDisplayShowCursor(CGDirectDisplayID display)
CGDisplayErr CGGetDisplayTransferByFormula(CGDirectDisplayID display, CGGammaValue *redMin, CGGammaValue *redMax, CGGammaValue *redGamma, CGGammaValue *greenMin, CGGammaValue *greenMax, CGGammaValue *greenGamma, CGGammaValue *blueMin, CGGammaValue *blueMax, CGGammaValue *blueGamma)
CGDisplayErr CGDisplaySwitchToMode(CGDirectDisplayID display, CFDictionaryRef mode)
CFArrayRef CGDisplayAvailableModes(CGDirectDisplayID display)
CFStringRef kCGDisplayRefreshRate
CFStringRef kCGDisplayWidth
CGDisplayErr CGGetDisplayTransferByTable(CGDirectDisplayID display, CGTableCount capacity, CGGammaValue *redTable, CGGammaValue *greenTable, CGGammaValue *blueTable, CGTableCount *sampleCount)
float CGGammaValue
Definition: CGDirectDisplay.h:448
size_t CGDisplayPixelsWide(CGDirectDisplayID display)
int32_t CGShieldingWindowLevel(void)
boolean_t CGDisplayIsCaptured(CGDirectDisplayID display)
CFDictionaryRef CGDisplayBestModeForParametersAndRefreshRate(CGDirectDisplayID display, size_t bitsPerPixel, size_t width, size_t height, CGRefreshRate refresh, boolean_t *exactMatch)
CGDisplayErr CGGetActiveDisplayList(CGDisplayCount maxDisplays, CGDirectDisplayID *activeDspys, CGDisplayCount *dspyCnt)
void * CGShieldingWindowID(CGDirectDisplayID display)
CGDisplayErr CGDisplayRelease(CGDirectDisplayID display)
CGDisplayErr CGGetDisplaysWithOpenGLDisplayMask(CGOpenGLDisplayMask mask, CGDisplayCount maxDisplays, CGDirectDisplayID *dspys, CGDisplayCount *dspyCnt)
CGDisplayErr CGSetDisplayTransferByByteTable(CGDirectDisplayID display, CGTableCount tableSize, const CGByteValue *redTable, const CGByteValue *greenTable, const CGByteValue *blueTable)
void * CGDisplayAddressForPosition(CGDirectDisplayID display, CGDisplayCoord x, CGDisplayCoord y)
CGDisplayErr CGReleaseAllDisplays(void)
CGDisplayErr CGDisplaySetPalette(CGDirectDisplayID display, CGDirectPaletteRef palette)
size_t CGDisplaySamplesPerPixel(CGDirectDisplayID display)
CGDisplayErr CGDisplayMoveCursorToPoint(CGDirectDisplayID display, CGPoint point)
CGDisplayErr CGDisplayHideCursor(CGDirectDisplayID display)
CFStringRef kCGDisplayBitsPerPixel
boolean_t CGDisplayCanSetPalette(CGDirectDisplayID display)
CFStringRef kCGDisplayModeUsableForDesktopGUI
void * CGDisplayBaseAddress(CGDirectDisplayID display)
xxx put contents here xxx
xxx put contents here xxx
x
Definition: ToolUtils.h:163
Definition: CGGeometry.h:64
Definition: CGGeometry.h:78