Mac OS 9
Displays.h
Go to the documentation of this file.
1 
19 #ifndef __DISPLAYS__
20 #define __DISPLAYS__
21 
22 #ifndef __CONDITIONALMACROS__
23 #include <ConditionalMacros.h>
24 #endif
25 
26 #ifndef __COMPONENTS__
27 #include <Components.h>
28 #endif
29 
30 #ifndef __VIDEO__
31 #include <Video.h>
32 #endif
33 
34 #ifndef __CMAPPLICATION__
35 #include <CMApplication.h>
36 #endif
37 
38 #ifndef __APPLEEVENTS__
39 #include <AppleEvents.h>
40 #endif
41 
42 #ifndef __EVENTS__
43 #include <Events.h>
44 #endif
45 
46 #ifndef __PROCESSES__
47 #include <Processes.h>
48 #endif
49 
50 #ifndef __DIALOGS__
51 #include <Dialogs.h>
52 #endif
53 
54 #if PRAGMA_ONCE
55 #pragma once
56 #endif
57 
58 #ifdef __cplusplus
59 extern "C"
60 {
61 #endif
62 
63 #if PRAGMA_IMPORT
64 #pragma import on
65 #endif
66 
67 #if PRAGMA_STRUCT_ALIGN
68 #pragma options align = mac68k
69 #elif PRAGMA_STRUCT_PACKPUSH
70 #pragma pack(push, 2)
71 #elif PRAGMA_STRUCT_PACK
72 #pragma pack(2)
73 #endif
74 
76  typedef ModalFilterUPP DMModalFilterUPP;
77 
78  enum
79  {
81  kAESystemConfigNotice = FOUR_CHAR_CODE('cnfg'),
82  kAEDisplayNotice = FOUR_CHAR_CODE('dspl'),
83  kAEDisplaySummary = FOUR_CHAR_CODE('dsum'),
84  keyDMConfigVersion = FOUR_CHAR_CODE('dmcv'),
85  keyDMConfigFlags = FOUR_CHAR_CODE('dmcf'),
86  keyDMConfigReserved = FOUR_CHAR_CODE('dmcr'),
87  keyDisplayID = FOUR_CHAR_CODE('dmid'),
88  keyDisplayComponent = FOUR_CHAR_CODE('dmdc'),
89  keyDisplayDevice = FOUR_CHAR_CODE('dmdd'),
90  keyDisplayFlags = FOUR_CHAR_CODE('dmdf'),
91  keyDisplayMode = FOUR_CHAR_CODE('dmdm'),
92  keyDisplayModeReserved = FOUR_CHAR_CODE('dmmr'),
93  keyDisplayReserved = FOUR_CHAR_CODE('dmdr'),
94  keyDisplayMirroredId = FOUR_CHAR_CODE('dmmi'),
95  keyDeviceFlags = FOUR_CHAR_CODE('dddf'),
96  keyDeviceDepthMode = FOUR_CHAR_CODE('dddm'),
97  keyDeviceRect = FOUR_CHAR_CODE('dddr'),
98  keyPixMapRect = FOUR_CHAR_CODE('dpdr'),
99  keyPixMapHResolution = FOUR_CHAR_CODE('dphr'),
100  keyPixMapVResolution = FOUR_CHAR_CODE('dpvr'),
101  keyPixMapPixelType = FOUR_CHAR_CODE('dppt'),
102  keyPixMapPixelSize = FOUR_CHAR_CODE('dpps'),
103  keyPixMapCmpCount = FOUR_CHAR_CODE('dpcc'),
104  keyPixMapCmpSize = FOUR_CHAR_CODE('dpcs'),
105  keyPixMapAlignment = FOUR_CHAR_CODE('dppa'),
106  keyPixMapResReserved = FOUR_CHAR_CODE('dprr'),
107  keyPixMapReserved = FOUR_CHAR_CODE('dppr'),
108  keyPixMapColorTableSeed = FOUR_CHAR_CODE('dpct'),
109  keySummaryMenubar = FOUR_CHAR_CODE('dsmb'),
110  keySummaryChanges = FOUR_CHAR_CODE('dsch'),
111  keyDisplayOldConfig = FOUR_CHAR_CODE('dold'),
112  keyDisplayNewConfig = FOUR_CHAR_CODE('dnew')
113  };
114 
115  enum
116  {
117  dmOnlyActiveDisplays = true,
118  dmAllDisplays = false
119  };
120 
121  enum
122  {
124  kDependentNotifyClassShowCursor = FOUR_CHAR_CODE(
125  'shcr'),
127  FOUR_CHAR_CODE('ndrv'),
129  FOUR_CHAR_CODE('dmgr'),
131  FOUR_CHAR_CODE('prof')
132  };
133 
134  enum
135  {
144  5
145  };
146 
151  enum
152  {
153  kBeginEndConfigureBit = 0,
154  kMovedDisplayBit = 1,
155  kSetMainDisplayBit = 2,
156  kSetDisplayModeBit = 3,
157  kAddDisplayBit = 4,
158  kRemoveDisplayBit = 5,
159  kNewDisplayBit = 6,
160  kDisposeDisplayBit = 7,
161  kEnabledDisplayBit = 8,
162  kDisabledDisplayBit = 9,
163  kMirrorDisplayBit = 10,
164  kUnMirrorDisplayBit = 11
165  };
166 
167  enum
168  {
171  0,
178  5,
183  9,
185  kExtendedNotificationProc = (1L << 16)
186  };
187 
189  enum
190  {
191  kFullNotify = 0,
193  1
195  };
196 
198  enum
199  {
200  kDummyDeviceID = 0x00FF,
202  kInvalidDisplayID = 0x0000,
203  kFirstDisplayID = 0x0100
204  };
205 
206  enum
207  {
210  };
211 
212  enum
213  {
216  kSuppressNumberMask = 1,
217  kForceNumberBit = 1,
218  kForceNumberMask = 2,
219  kSuppressNameBit = 2,
220  kSuppressNameMask = 4
221  };
222 
224  enum
225  {
226  kDMSupressNumbersMask =
227  (1 << 0),
228  kDMForceNumbersMask = (1 << 1),
230  kDMSupressNameMask = (1 << 2)
231  };
232 
234  enum
235  {
236  kNoFidelity = 0,
237  kMinimumFidelity = 1,
238  kDefaultFidelity =
239  500,
241  1000
243  };
244 
245  enum
246  {
247  kAnyPanelType = 0,
251  kAnyPortType = 0
252  };
253 
255  enum
256  {
260  };
261 
263  enum
264  {
265  kForceConfirmBit = 0,
266  kForceConfirmMask = (1 << kForceConfirmBit)
267  };
268 
270  enum
271  {
272  kDisplayModeListNotPreferredBit = 0,
273  kDisplayModeListNotPreferredMask = (1 << kDisplayModeListNotPreferredBit)
274  };
275 
277  enum
278  {
279  kComponentListNotPreferredBit = 0,
280  kComponentListNotPreferredMask = (1 << kComponentListNotPreferredBit)
281  };
282 
283  enum
284  {
285  kDisplayTimingInfoVersionZero = 1,
286  kDisplayTimingInfoReservedCountVersionZero = 16,
287  kDisplayModeEntryVersionZero = 0,
289  1
290  };
291 
292  enum
293  {
294  kMakeAndModelReservedCount = 4
295  };
296 
298  enum
299  {
300  kDisplayGestaltDisplayCommunicationAttr = FOUR_CHAR_CODE('comm'),
301  kDisplayGestaltForbidI2CMask =
302  (1 << 0),
306  (1 << 1),
307  kDisplayGestaltCalibratorAttr = FOUR_CHAR_CODE('cali'),
308  kDisplayGestaltBrightnessAffectsGammaMask =
309  (1 << 0),
312  (1 << 1)
313  };
314 
315  typedef UInt32 DMFidelityType;
321  typedef void *DMListType;
322  typedef unsigned long DMListIndexType;
326  {
327  UInt32 timingInfoVersion;
328  UInt32 timingInfoAttributes;
332  UInt32 timingInfoReserved[16];
333  };
336 
338  {
339  DisplayIDType itemID;
345  ResType itemClass;
348  DMFidelityType
350  ResType itemSubClass;
355  unsigned long itemFlags;
356  ResType itemReserved;
358  unsigned long itemFuture1;
360  unsigned long itemFuture2;
362  unsigned long itemFuture3;
364  unsigned long itemFuture4;
366  };
371  {
372  unsigned long locationConstant;
374  };
375  typedef struct AVLocationRec AVLocationRec;
376  typedef AVLocationRec *AVLocationPtr;
378  {
379  VDSwitchInfoPtr depthSwitchInfo;
382  UInt32 depthFlags;
383  UInt32 depthReserved1;
384  UInt32 depthReserved2;
385  };
386  typedef struct DMDepthInfoRec DMDepthInfoRec;
389  {
390  unsigned long depthBlockCount;
392  unsigned long depthBlockFlags;
393  unsigned long depthBlockReserved1;
394  unsigned long depthBlockReserved2;
395  };
399  {
400  UInt32 displayModeFlags;
401  VDSwitchInfoPtr displayModeSwitchInfo;
402  VDResolutionInfoPtr displayModeResolutionInfo;
403  VDTimingInfoPtr displayModeTimingInfo;
405  displayModeDepthBlockInfo;
411  };
414 
416  {
417  ResType notifyType;
419  ResType notifyClass;
420  DisplayIDType notifyPortID;
424  unsigned long notifyVersion;
425  unsigned long notifyFlags;
426  unsigned long notifyReserved;
427  unsigned long notifyFuture;
428  };
429  typedef struct DependentNotifyRec DependentNotifyRec;
431 
433  {
434  ResType manufacturer;
435  UInt32 model;
436  UInt32 serialNumber;
437  UInt32 manufactureDate;
438 
439  UInt32 makeReserved[4];
440  };
441  typedef struct DMMakeAndModelRec DMMakeAndModelRec;
444  enum
445  {
446  kIncludeOnlineActiveDisplaysMask = (1 << 0),
447  kIncludeOnlineDisabledDisplaysMask = (1 << 1),
448  kIncludeOfflineDisplaysMask = (1 << 2),
449  kIncludeOfflineDummyDisplaysMask = (1 << 3),
450  kIncludeHardwareMirroredDisplaysMask = (1 << 4)
451  };
452 
453  enum
454  {
457  (1 << 0),
460  kDMModeListExcludeDriverModesMask =
461  (1 << 2),
465  (1 << 3),
468  (1 << 4),
471  (1 << 5),
474  (1 << 6),
477  (1 << 7)
479  };
480 
483  {
484  GDHandle displayListEntryGDevice;
485  DisplayIDType displayListEntryDisplayID;
486  UInt32 displayListEntryIncludeFlags;
488 
489  UInt32 displayListEntryReserved2;
493  };
497  {
498  CMProfileRef profileRef;
499  Ptr profileReserved1;
502  };
505  typedef CALLBACK_API(void, DMNotificationProcPtr)(AppleEvent *theEvent);
506  typedef CALLBACK_API(void, DMExtendedNotificationProcPtr)(void *userData,
507  short theMessage,
508  void *notifyData);
509  typedef CALLBACK_API(void, DMComponentListIteratorProcPtr)(
510  void *userData, DMListIndexType itemIndex,
511  DMComponentListEntryPtr componentInfo);
512  typedef CALLBACK_API(void, DMDisplayModeListIteratorProcPtr)(
513  void *userData, DMListIndexType itemIndex,
514  DMDisplayModeListEntryPtr displaymodeInfo);
515  typedef CALLBACK_API(void, DMProfileListIteratorProcPtr)(
516  void *userData, DMListIndexType itemIndex,
517  DMProfileListEntryPtr profileInfo);
518  typedef CALLBACK_API(void, DMDisplayListIteratorProcPtr)(
519  void *userData, DMListIndexType itemIndex,
520  DisplayListEntryPtr displaymodeInfo);
521  typedef STACK_UPP_TYPE(DMNotificationProcPtr) DMNotificationUPP;
522  typedef STACK_UPP_TYPE(DMExtendedNotificationProcPtr) DMExtendedNotificationUPP;
523  typedef STACK_UPP_TYPE(DMComponentListIteratorProcPtr)
524  DMComponentListIteratorUPP;
525  typedef STACK_UPP_TYPE(DMDisplayModeListIteratorProcPtr)
526  DMDisplayModeListIteratorUPP;
527  typedef STACK_UPP_TYPE(DMProfileListIteratorProcPtr) DMProfileListIteratorUPP;
528  typedef STACK_UPP_TYPE(DMDisplayListIteratorProcPtr) DMDisplayListIteratorUPP;
537  DMNotificationUPP
538  NewDMNotificationUPP(DMNotificationProcPtr userRoutine);
539 #if !OPAQUE_UPP_TYPES
540  enum
541  {
542  uppDMNotificationProcInfo = 0x000000C0
543  };
544 #ifdef __cplusplus
545  inline DMNotificationUPP
546  NewDMNotificationUPP(DMNotificationProcPtr userRoutine)
547  {
548  return (DMNotificationUPP)NewRoutineDescriptor((ProcPtr)(userRoutine),
549  uppDMNotificationProcInfo,
550  GetCurrentArchitecture());
551  }
552 #else
553 #define NewDMNotificationUPP(userRoutine) \
554  (DMNotificationUPP) \
555  NewRoutineDescriptor((ProcPtr)(userRoutine), uppDMNotificationProcInfo, \
556  GetCurrentArchitecture())
557 #endif
558 #endif
559 
568  DMExtendedNotificationUPP
569  NewDMExtendedNotificationUPP(DMExtendedNotificationProcPtr userRoutine);
570 #if !OPAQUE_UPP_TYPES
571  enum
572  {
573  uppDMExtendedNotificationProcInfo = 0x00000EC0
574  };
575 #ifdef __cplusplus
576  inline DMExtendedNotificationUPP
577  NewDMExtendedNotificationUPP(DMExtendedNotificationProcPtr userRoutine)
578  {
579  return (DMExtendedNotificationUPP)NewRoutineDescriptor(
580  (ProcPtr)(userRoutine), uppDMExtendedNotificationProcInfo,
581  GetCurrentArchitecture());
582  }
583 #else
584 #define NewDMExtendedNotificationUPP(userRoutine) \
585  (DMExtendedNotificationUPP) NewRoutineDescriptor( \
586  (ProcPtr)(userRoutine), uppDMExtendedNotificationProcInfo, \
587  GetCurrentArchitecture())
588 #endif
589 #endif
590 
599  DMComponentListIteratorUPP
600  NewDMComponentListIteratorUPP(DMComponentListIteratorProcPtr userRoutine);
601 #if !OPAQUE_UPP_TYPES
602  enum
603  {
604  uppDMComponentListIteratorProcInfo = 0x00000FC0
605  };
606 #ifdef __cplusplus
607  inline DMComponentListIteratorUPP
608  NewDMComponentListIteratorUPP(DMComponentListIteratorProcPtr userRoutine)
609  {
610  return (DMComponentListIteratorUPP)NewRoutineDescriptor(
611  (ProcPtr)(userRoutine), uppDMComponentListIteratorProcInfo,
612  GetCurrentArchitecture());
613  }
614 #else
615 #define NewDMComponentListIteratorUPP(userRoutine) \
616  (DMComponentListIteratorUPP) NewRoutineDescriptor( \
617  (ProcPtr)(userRoutine), uppDMComponentListIteratorProcInfo, \
618  GetCurrentArchitecture())
619 #endif
620 #endif
621 
630  DMDisplayModeListIteratorUPP
631  NewDMDisplayModeListIteratorUPP(DMDisplayModeListIteratorProcPtr userRoutine);
632 #if !OPAQUE_UPP_TYPES
633  enum
634  {
635  uppDMDisplayModeListIteratorProcInfo = 0x00000FC0
636  };
637 #ifdef __cplusplus
638  inline DMDisplayModeListIteratorUPP
639  NewDMDisplayModeListIteratorUPP(DMDisplayModeListIteratorProcPtr userRoutine)
640  {
641  return (DMDisplayModeListIteratorUPP)NewRoutineDescriptor(
642  (ProcPtr)(userRoutine), uppDMDisplayModeListIteratorProcInfo,
643  GetCurrentArchitecture());
644  }
645 #else
646 #define NewDMDisplayModeListIteratorUPP(userRoutine) \
647  (DMDisplayModeListIteratorUPP) NewRoutineDescriptor( \
648  (ProcPtr)(userRoutine), uppDMDisplayModeListIteratorProcInfo, \
649  GetCurrentArchitecture())
650 #endif
651 #endif
652 
661  DMProfileListIteratorUPP
662  NewDMProfileListIteratorUPP(DMProfileListIteratorProcPtr userRoutine);
663 #if !OPAQUE_UPP_TYPES
664  enum
665  {
666  uppDMProfileListIteratorProcInfo = 0x00000FC0
667  };
668 #ifdef __cplusplus
669  inline DMProfileListIteratorUPP
670  NewDMProfileListIteratorUPP(DMProfileListIteratorProcPtr userRoutine)
671  {
672  return (DMProfileListIteratorUPP)NewRoutineDescriptor(
673  (ProcPtr)(userRoutine), uppDMProfileListIteratorProcInfo,
674  GetCurrentArchitecture());
675  }
676 #else
677 #define NewDMProfileListIteratorUPP(userRoutine) \
678  (DMProfileListIteratorUPP) NewRoutineDescriptor( \
679  (ProcPtr)(userRoutine), uppDMProfileListIteratorProcInfo, \
680  GetCurrentArchitecture())
681 #endif
682 #endif
683 
692  DMDisplayListIteratorUPP
693  NewDMDisplayListIteratorUPP(DMDisplayListIteratorProcPtr userRoutine);
694 #if !OPAQUE_UPP_TYPES
695  enum
696  {
697  uppDMDisplayListIteratorProcInfo = 0x00000FC0
698  };
699 #ifdef __cplusplus
700  inline DMDisplayListIteratorUPP
701  NewDMDisplayListIteratorUPP(DMDisplayListIteratorProcPtr userRoutine)
702  {
703  return (DMDisplayListIteratorUPP)NewRoutineDescriptor(
704  (ProcPtr)(userRoutine), uppDMDisplayListIteratorProcInfo,
705  GetCurrentArchitecture());
706  }
707 #else
708 #define NewDMDisplayListIteratorUPP(userRoutine) \
709  (DMDisplayListIteratorUPP) NewRoutineDescriptor( \
710  (ProcPtr)(userRoutine), uppDMDisplayListIteratorProcInfo, \
711  GetCurrentArchitecture())
712 #endif
713 #endif
714 
723  void
724  DisposeDMNotificationUPP(DMNotificationUPP userUPP);
725 #if !OPAQUE_UPP_TYPES
726 #ifdef __cplusplus
727  inline void DisposeDMNotificationUPP(DMNotificationUPP userUPP)
728  {
729  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
730  }
731 #else
732 #define DisposeDMNotificationUPP(userUPP) DisposeRoutineDescriptor(userUPP)
733 #endif
734 #endif
735 
744  void
745  DisposeDMExtendedNotificationUPP(DMExtendedNotificationUPP userUPP);
746 #if !OPAQUE_UPP_TYPES
747 #ifdef __cplusplus
748  inline void
749  DisposeDMExtendedNotificationUPP(DMExtendedNotificationUPP userUPP)
750  {
751  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
752  }
753 #else
754 #define DisposeDMExtendedNotificationUPP(userUPP) \
755  DisposeRoutineDescriptor(userUPP)
756 #endif
757 #endif
758 
767  void
768  DisposeDMComponentListIteratorUPP(DMComponentListIteratorUPP userUPP);
769 #if !OPAQUE_UPP_TYPES
770 #ifdef __cplusplus
771  inline void
772  DisposeDMComponentListIteratorUPP(DMComponentListIteratorUPP userUPP)
773  {
774  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
775  }
776 #else
777 #define DisposeDMComponentListIteratorUPP(userUPP) \
778  DisposeRoutineDescriptor(userUPP)
779 #endif
780 #endif
781 
790  void
791  DisposeDMDisplayModeListIteratorUPP(DMDisplayModeListIteratorUPP userUPP);
792 #if !OPAQUE_UPP_TYPES
793 #ifdef __cplusplus
794  inline void
795  DisposeDMDisplayModeListIteratorUPP(DMDisplayModeListIteratorUPP userUPP)
796  {
797  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
798  }
799 #else
800 #define DisposeDMDisplayModeListIteratorUPP(userUPP) \
801  DisposeRoutineDescriptor(userUPP)
802 #endif
803 #endif
804 
813  void
814  DisposeDMProfileListIteratorUPP(DMProfileListIteratorUPP userUPP);
815 #if !OPAQUE_UPP_TYPES
816 #ifdef __cplusplus
817  inline void DisposeDMProfileListIteratorUPP(DMProfileListIteratorUPP userUPP)
818  {
819  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
820  }
821 #else
822 #define DisposeDMProfileListIteratorUPP(userUPP) \
823  DisposeRoutineDescriptor(userUPP)
824 #endif
825 #endif
826 
835  void
836  DisposeDMDisplayListIteratorUPP(DMDisplayListIteratorUPP userUPP);
837 #if !OPAQUE_UPP_TYPES
838 #ifdef __cplusplus
839  inline void DisposeDMDisplayListIteratorUPP(DMDisplayListIteratorUPP userUPP)
840  {
841  DisposeRoutineDescriptor((UniversalProcPtr)userUPP);
842  }
843 #else
844 #define DisposeDMDisplayListIteratorUPP(userUPP) \
845  DisposeRoutineDescriptor(userUPP)
846 #endif
847 #endif
848 
857  void
858  InvokeDMNotificationUPP(AppleEvent *theEvent, DMNotificationUPP userUPP);
859 #if !OPAQUE_UPP_TYPES
860 #ifdef __cplusplus
862  DMNotificationUPP userUPP)
863  {
864  CALL_ONE_PARAMETER_UPP(userUPP, uppDMNotificationProcInfo, theEvent);
865  }
866 #else
867 #define InvokeDMNotificationUPP(theEvent, userUPP) \
868  CALL_ONE_PARAMETER_UPP((userUPP), uppDMNotificationProcInfo, (theEvent))
869 #endif
870 #endif
871 
880  void
881  InvokeDMExtendedNotificationUPP(void *userData, short theMessage,
882  void *notifyData,
883  DMExtendedNotificationUPP userUPP);
884 #if !OPAQUE_UPP_TYPES
885 #ifdef __cplusplus
886  inline void InvokeDMExtendedNotificationUPP(void *userData, short theMessage,
887  void *notifyData,
888  DMExtendedNotificationUPP userUPP)
889  {
890  CALL_THREE_PARAMETER_UPP(userUPP, uppDMExtendedNotificationProcInfo, userData,
891  theMessage, notifyData);
892  }
893 #else
894 #define InvokeDMExtendedNotificationUPP(userData, theMessage, notifyData, \
895  userUPP) \
896  CALL_THREE_PARAMETER_UPP((userUPP), uppDMExtendedNotificationProcInfo, \
897  (userData), (theMessage), (notifyData))
898 #endif
899 #endif
900 
909  void
910  InvokeDMComponentListIteratorUPP(void *userData, DMListIndexType itemIndex,
911  DMComponentListEntryPtr componentInfo,
912  DMComponentListIteratorUPP userUPP);
913 #if !OPAQUE_UPP_TYPES
914 #ifdef __cplusplus
915  inline void
916  InvokeDMComponentListIteratorUPP(void *userData, DMListIndexType itemIndex,
917  DMComponentListEntryPtr componentInfo,
918  DMComponentListIteratorUPP userUPP)
919  {
920  CALL_THREE_PARAMETER_UPP(userUPP, uppDMComponentListIteratorProcInfo,
921  userData, itemIndex, componentInfo);
922  }
923 #else
924 #define InvokeDMComponentListIteratorUPP(userData, itemIndex, componentInfo, \
925  userUPP) \
926  CALL_THREE_PARAMETER_UPP((userUPP), uppDMComponentListIteratorProcInfo, \
927  (userData), (itemIndex), (componentInfo))
928 #endif
929 #endif
930 
939  void
940  InvokeDMDisplayModeListIteratorUPP(void *userData, DMListIndexType itemIndex,
941  DMDisplayModeListEntryPtr displaymodeInfo,
942  DMDisplayModeListIteratorUPP userUPP);
943 #if !OPAQUE_UPP_TYPES
944 #ifdef __cplusplus
945  inline void
946  InvokeDMDisplayModeListIteratorUPP(void *userData, DMListIndexType itemIndex,
947  DMDisplayModeListEntryPtr displaymodeInfo,
948  DMDisplayModeListIteratorUPP userUPP)
949  {
950  CALL_THREE_PARAMETER_UPP(userUPP, uppDMDisplayModeListIteratorProcInfo,
951  userData, itemIndex, displaymodeInfo);
952  }
953 #else
954 #define InvokeDMDisplayModeListIteratorUPP(userData, itemIndex, \
955  displaymodeInfo, userUPP) \
956  CALL_THREE_PARAMETER_UPP((userUPP), uppDMDisplayModeListIteratorProcInfo, \
957  (userData), (itemIndex), (displaymodeInfo))
958 #endif
959 #endif
960 
969  void
970  InvokeDMProfileListIteratorUPP(void *userData, DMListIndexType itemIndex,
971  DMProfileListEntryPtr profileInfo,
972  DMProfileListIteratorUPP userUPP);
973 #if !OPAQUE_UPP_TYPES
974 #ifdef __cplusplus
975  inline void InvokeDMProfileListIteratorUPP(void *userData,
976  DMListIndexType itemIndex,
977  DMProfileListEntryPtr profileInfo,
978  DMProfileListIteratorUPP userUPP)
979  {
980  CALL_THREE_PARAMETER_UPP(userUPP, uppDMProfileListIteratorProcInfo, userData,
981  itemIndex, profileInfo);
982  }
983 #else
984 #define InvokeDMProfileListIteratorUPP(userData, itemIndex, profileInfo, \
985  userUPP) \
986  CALL_THREE_PARAMETER_UPP((userUPP), uppDMProfileListIteratorProcInfo, \
987  (userData), (itemIndex), (profileInfo))
988 #endif
989 #endif
990 
999  void
1000  InvokeDMDisplayListIteratorUPP(void *userData, DMListIndexType itemIndex,
1001  DisplayListEntryPtr displaymodeInfo,
1002  DMDisplayListIteratorUPP userUPP);
1003 #if !OPAQUE_UPP_TYPES
1004 #ifdef __cplusplus
1005  inline void InvokeDMDisplayListIteratorUPP(void *userData,
1006  DMListIndexType itemIndex,
1007  DisplayListEntryPtr displaymodeInfo,
1008  DMDisplayListIteratorUPP userUPP)
1009  {
1010  CALL_THREE_PARAMETER_UPP(userUPP, uppDMDisplayListIteratorProcInfo, userData,
1011  itemIndex, displaymodeInfo);
1012  }
1013 #else
1014 #define InvokeDMDisplayListIteratorUPP(userData, itemIndex, displaymodeInfo, \
1015  userUPP) \
1016  CALL_THREE_PARAMETER_UPP((userUPP), uppDMDisplayListIteratorProcInfo, \
1017  (userData), (itemIndex), (displaymodeInfo))
1018 #endif
1019 #endif
1020 
1021 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
1023 #define NewDMNotificationProc(userRoutine) NewDMNotificationUPP(userRoutine)
1024 #define NewDMExtendedNotificationProc(userRoutine) \
1025  NewDMExtendedNotificationUPP(userRoutine)
1026 #define NewDMComponentListIteratorProc(userRoutine) \
1027  NewDMComponentListIteratorUPP(userRoutine)
1028 #define NewDMDisplayModeListIteratorProc(userRoutine) \
1029  NewDMDisplayModeListIteratorUPP(userRoutine)
1030 #define NewDMProfileListIteratorProc(userRoutine) \
1031  NewDMProfileListIteratorUPP(userRoutine)
1032 #define NewDMDisplayListIteratorProc(userRoutine) \
1033  NewDMDisplayListIteratorUPP(userRoutine)
1034 #define CallDMNotificationProc(userRoutine, theEvent) \
1035  InvokeDMNotificationUPP(theEvent, userRoutine)
1036 #define CallDMExtendedNotificationProc(userRoutine, userData, theMessage, \
1037  notifyData) \
1038  InvokeDMExtendedNotificationUPP(userData, theMessage, notifyData, userRoutine)
1039 #define CallDMComponentListIteratorProc(userRoutine, userData, itemIndex, \
1040  componentInfo) \
1041  InvokeDMComponentListIteratorUPP(userData, itemIndex, componentInfo, \
1042  userRoutine)
1043 #define CallDMDisplayModeListIteratorProc(userRoutine, userData, itemIndex, \
1044  displaymodeInfo) \
1045  InvokeDMDisplayModeListIteratorUPP(userData, itemIndex, displaymodeInfo, \
1046  userRoutine)
1047 #define CallDMProfileListIteratorProc(userRoutine, userData, itemIndex, \
1048  profileInfo) \
1049  InvokeDMProfileListIteratorUPP(userData, itemIndex, profileInfo, userRoutine)
1050 #define CallDMDisplayListIteratorProc(userRoutine, userData, itemIndex, \
1051  displaymodeInfo) \
1052  InvokeDMDisplayListIteratorUPP(userData, itemIndex, displaymodeInfo, \
1053  userRoutine)
1054 #endif
1056 #if CALL_NOT_IN_CARBON
1065  OSErr
1066  DMDisplayGestalt(DisplayIDType theDisplayID, ResType displayGestaltSelector,
1067  UInt32 *displayGestaltResponse);
1068 
1077  OSErr
1078  DMUseScreenPrefs(Boolean usePrefs, Handle displayState);
1079 
1088  OSErr
1089  DMSuspendConfigure(Handle displayState, unsigned long reserved1);
1090 
1099  OSErr
1100  DMResumeConfigure(Handle displayState, unsigned long reserved1);
1101 
1110  OSErr
1111  DMSetGammaByAVID(AVIDType gammaAVID, UInt32 setGammaFlags,
1112  GammaTblHandle theGamma);
1113 
1122  OSErr
1123  DMGetGammaByAVID(AVIDType gammaAVID, UInt32 getGammaFlags,
1124  GammaTblHandle *theGamma);
1125 
1134  OSErr
1135  DMGetMakeAndModelByAVID(AVIDType theAVID, DMMakeAndModelPtr theMakeAndModel);
1136 
1145  OSErr
1146  DMNewDisplayList(UInt32 displayListIncludeFlags, UInt32 reserved1,
1147  UInt32 reserved2, DMListIndexType *theCount,
1148  DMListType *theDisplayList);
1149 
1158  OSErr
1160  DMListIndexType itemIndex, UInt32 reserved,
1161  DMDisplayListIteratorUPP listIterator,
1162  void *userData);
1163 
1172  OSErr
1173  DMNewProfileListByAVID(AVIDType theAVID, UInt32 reserved,
1174  DMListIndexType *profileCount, DMListType *profileList);
1175 
1184  OSErr
1185  DMGetIndexedProfileFromList(DMListType profileList, DMListIndexType itemIndex,
1186  UInt32 reserved,
1187  DMProfileListIteratorUPP listIterator,
1188  void *userData);
1189 
1190 #endif
1200  GDHandle
1202 
1211  GDHandle
1212  DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly);
1213 
1222  void
1223  DMDrawDesktopRect(Rect *globalRect);
1224 
1233  void
1235 
1244  OSErr
1245  DMBeginConfigureDisplays(Handle *displayState);
1246 
1255  OSErr
1256  DMEndConfigureDisplays(Handle displayState);
1257 
1266  OSErr
1267  DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode,
1268  unsigned long reserved, unsigned long displayID,
1269  Component displayComponent, Handle displayState);
1270 
1279  OSErr
1280  DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState);
1281 
1290  OSErr
1291  DMDisableDisplay(GDHandle disableDevice, Handle displayState);
1292 
1301  OSErr
1302  DMEnableDisplay(GDHandle enableDevice, Handle displayState);
1303 
1312  OSErr
1313  DMRemoveDisplay(GDHandle removeDevice, Handle displayState);
1314 
1323  OSErr
1324  DMSetMainDisplay(GDHandle newMainDevice, Handle displayState);
1325 
1334  OSErr
1335  DMSetDisplayMode(GDHandle theDevice, unsigned long mode,
1336  unsigned long *depthMode, unsigned long reserved,
1337  Handle displayState);
1338 
1347  OSErr
1348  DMCheckDisplayMode(GDHandle theDevice, unsigned long mode,
1349  unsigned long depthMode, unsigned long *switchFlags,
1350  unsigned long reserved, Boolean *modeOk);
1351 
1360  OSErr
1361  DMGetDeskRegion(RgnHandle *desktopRegion);
1362 
1371  OSErr
1372  DMRegisterNotifyProc(DMNotificationUPP notificationProc,
1373  DMProcessInfoPtr whichPSN);
1374 
1383  OSErr
1384  DMRemoveNotifyProc(DMNotificationUPP notificationProc,
1385  DMProcessInfoPtr whichPSN);
1386 
1395  OSErr
1396  DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable);
1397 
1406  OSErr
1407  DMCanMirrorNow(Boolean *canMirrorNow);
1408 
1417  OSErr
1418  DMIsMirroringOn(Boolean *isMirroringOn);
1419 
1428  OSErr
1429  DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState);
1430 
1439  OSErr
1440  DMUnmirrorDevice(GDHandle gDevice, Handle displayState);
1441 
1450  OSErr
1451  DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice);
1452 
1461  OSErr
1463 
1472  OSErr
1474 
1475 #if CALL_NOT_IN_CARBON
1484  OSErr
1486 
1487 #endif
1497  OSErr
1498  DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID,
1499  Boolean failToMain);
1500 
1509  OSErr
1510  DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice,
1511  Boolean failToMain);
1512 
1521  OSErr
1522  DMSetDisplayComponent(GDHandle theDevice, Component displayComponent);
1523 
1532  OSErr
1533  DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent);
1534 
1543  OSErr
1544  DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode,
1545  unsigned long reserved, DisplayIDType displayID,
1546  Component displayComponent, Handle displayState);
1547 
1556  OSErr
1557  DMDisposeDisplay(GDHandle disposeDevice, Handle displayState);
1558 
1567  OSErr
1569 
1578  OSErr
1579  DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc,
1580  void *notifyUserData, unsigned short nofifyOnFlags,
1581  DMProcessInfoPtr whichPSN);
1582 
1591  OSErr
1592  DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc,
1593  void *notifyUserData, DMProcessInfoPtr whichPSN,
1594  unsigned short removeFlags);
1595 
1604  OSErr
1605  DMNewAVPanelList(DisplayIDType displayID, ResType panelType,
1606  DMFidelityType minimumFidelity, unsigned long panelListFlags,
1607  unsigned long reserved, DMListIndexType *thePanelCount,
1608  DMListType *thePanelList);
1609 
1618  OSErr
1619  DMNewAVEngineList(DisplayIDType displayID, ResType engineType,
1620  DMFidelityType minimumFidelity, unsigned long engineListFlags,
1621  unsigned long reserved, DMListIndexType *engineCount,
1622  DMListType *engineList);
1623 
1632  OSErr
1633  DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags,
1634  unsigned long reserved, DMListIndexType *deviceCount,
1635  DMListType *deviceList);
1636 
1645  OSErr
1646  DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags,
1647  unsigned long reserved,
1648  DMListIndexType *devicePortCount,
1649  DMListType *theDevicePortList);
1650 
1659  OSErr
1660  DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex,
1661  unsigned long reserved,
1662  DMComponentListIteratorUPP listIterator,
1663  void *userData);
1664 
1673  OSErr
1675 
1684  OSErr
1685  DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 name);
1686 
1695  OSErr
1696  DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind,
1697  unsigned long reserved, AVIDType *newID);
1698 
1707  OSErr
1708  DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent,
1709  ComponentDescription *theDesciption,
1710  ResType *thePortKind);
1711 
1720  OSErr
1721  DMSendDependentNotification(ResType notifyType, ResType notifyClass,
1722  AVIDType displayID,
1723  ComponentInstance notifyComponent);
1724 
1733  OSErr
1735 
1744  OSErr
1745  DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags,
1746  unsigned long reserved2);
1747 
1756  OSErr
1757  DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind,
1758  unsigned long reserved, DisplayIDType *newID);
1759 
1768  OSErr
1769  DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity,
1770  unsigned long portListFlags, unsigned long reserved,
1771  DMListIndexType *devicePortCount,
1772  DMListType *theDevicePortList);
1773 
1782  OSErr
1783  DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent,
1784  ComponentDescription *theDesciption,
1785  ResType *theDeviceKind);
1786 
1795  OSErr
1796  DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags,
1797  unsigned long reserved, DMListIndexType *thePanelCount,
1798  DMListType *thePanelList);
1799 
1808  OSErr
1809  DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex,
1810  unsigned long reserved,
1811  DMDisplayModeListIteratorUPP listIterator,
1812  void *userData);
1813 
1822  OSErr
1823  DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit,
1824  Handle *theAVIconSuite, AVLocationRec *theAVLocation);
1825 
1834  OSErr
1835  DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState,
1836  unsigned long reserved1);
1837 
1846  OSErr
1847  DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState,
1848  unsigned long powerFlags, Handle displayState);
1849 
1858  OSErr
1859  DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID);
1860 
1869  OSErr
1870  DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow,
1871  Boolean *canChangeEnableNow);
1872 
1881  OSErr
1882  DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState);
1883 
1892  OSErr
1894 
1903  OSErr
1904  DMConfirmConfiguration(DMModalFilterUPP filterProc, UInt32 confirmFlags,
1905  UInt32 reserved, Handle displayState);
1906 
1907 #if PRAGMA_STRUCT_ALIGN
1908 #pragma options align = reset
1909 #elif PRAGMA_STRUCT_PACKPUSH
1910 #pragma pack(pop)
1911 #elif PRAGMA_STRUCT_PACK
1912 #pragma pack()
1913 #endif
1914 
1915 #ifdef PRAGMA_IMPORT_OFF
1916 #pragma import off
1917 #elif PRAGMA_IMPORT
1918 #pragma import reset
1919 #endif
1920 
1921 #ifdef __cplusplus
1922 }
1923 #endif
1924 
1925 #endif
AppleEvent Package Interfaces.
Color Matching Interfaces.
Component Manager Interfaces.
Set up for compiler independent conditionals.
Dialog Manager interfaces.
@ kDependentNotifyClassProfileChanged
Definition: Displays.h:130
@ kDependentNotifyClassDisplayMgrOverride
Definition: Displays.h:128
@ kDependentNotifyClassShowCursor
Definition: Displays.h:124
@ kDependentNotifyClassDriverOverride
Definition: Displays.h:126
void DMDrawDesktopRegion(RgnHandle globalRgn)
#define NewDMNotificationUPP(userRoutine)
Definition: Displays.h:553
OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
void InvokeDMNotificationUPP(AppleEvent *theEvent, DMNotificationUPP userUPP)
#define NewDMComponentListIteratorUPP(userRoutine)
Definition: Displays.h:615
OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, DMProcessInfoPtr whichPSN)
@ kPLIncludeOfflineDevicesBit
Definition: Displays.h:259
OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
OSErr DMBlockMirroring(void)
void InvokeDMProfileListIteratorUPP(void *userData, DMListIndexType itemIndex, DMProfileListEntryPtr profileInfo, DMProfileListIteratorUPP userUPP)
OSErr DMGetMakeAndModelByAVID(AVIDType theAVID, DMMakeAndModelPtr theMakeAndModel)
OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
#define NewDMDisplayListIteratorUPP(userRoutine)
Definition: Displays.h:708
OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
OSErr DMGetGammaByAVID(AVIDType gammaAVID, UInt32 getGammaFlags, GammaTblHandle *theGamma)
OSErr DMDisposeAVComponent(Component theAVComponent)
OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
OSErr DMResolveDisplayComponents(void)
OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
void DMDrawDesktopRect(Rect *globalRect)
OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
#define NewDMDisplayModeListIteratorUPP(userRoutine)
Definition: Displays.h:646
@ kFullDependencyNotify
Definition: Displays.h:192
OSErr DMNewDisplayList(UInt32 displayListIncludeFlags, UInt32 reserved1, UInt32 reserved2, DMListIndexType *theCount, DMListType *theDisplayList)
OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, DMProcessInfoPtr whichPSN)
OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
OSErr DMConfirmConfiguration(DMModalFilterUPP filterProc, UInt32 confirmFlags, UInt32 reserved, Handle displayState)
OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
@ kInvalidDisplayID
Definition: Displays.h:202
@ kFirstDisplayID
Definition: Displays.h:203
OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long powerFlags, Handle displayState)
OSErr DMResumeConfigure(Handle displayState, unsigned long reserved1)
OSErr DMGetIndexedProfileFromList(DMListType profileList, DMListIndexType itemIndex, UInt32 reserved, DMProfileListIteratorUPP listIterator, void *userData)
OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
@ kDisplayGestaltViewAngleAffectsGammaMask
Definition: Displays.h:311
@ kDisplayGestaltCalibratorAttr
Definition: Displays.h:307
@ kDisplayGestaltUseI2CPowerMask
Definition: Displays.h:305
OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
OSErr DMDisposeList(DMListType panelList)
OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
@ kDMModeListExcludeCustomModesMask
Definition: Displays.h:467
@ kDMModeListIncludeOfflineModesMask
Definition: Displays.h:459
@ kDMModeListExcludeDriverScaledModesMask
Definition: Displays.h:476
@ kDMModeListPreferSafeModesMask
Definition: Displays.h:473
@ kDMModeListExcludeDisplayModesMask
Definition: Displays.h:464
@ kDMModeListIncludeAllModesMask
Definition: Displays.h:456
@ kDMModeListPreferStretchedModesMask
Definition: Displays.h:470
OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
OSErr DMSetGammaByAVID(AVIDType gammaAVID, UInt32 setGammaFlags, GammaTblHandle theGamma)
GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
@ kAEDisplayNotice
Definition: Displays.h:82
@ kAESystemConfigNotice
Definition: Displays.h:81
OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
OSErr DMUnblockMirroring(void)
OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
OSErr DMUseScreenPrefs(Boolean usePrefs, Handle displayState)
OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
void * DMListType
Definition: Displays.h:321
@ kDefaultManufacturerFidelity
Definition: Displays.h:240
OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
#define NewDMExtendedNotificationUPP(userRoutine)
Definition: Displays.h:584
OSErr DMGetDisplayMode(GDHandle theDevice, VDSwitchInfoPtr switchInfo)
@ kForceConfirmMask
Definition: Displays.h:266
OSErr DMDisplayGestalt(DisplayIDType theDisplayID, ResType displayGestaltSelector, UInt32 *displayGestaltResponse)
OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
OSErr DMGetIndexedDisplayFromList(DMListType theDisplayList, DMListIndexType itemIndex, UInt32 reserved, DMDisplayListIteratorUPP listIterator, void *userData)
OSErr DMSuspendConfigure(Handle displayState, unsigned long reserved1)
#define NewDMProfileListIteratorUPP(userRoutine)
Definition: Displays.h:677
OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
OSErr DMIsMirroringOn(Boolean *isMirroringOn)
void InvokeDMDisplayListIteratorUPP(void *userData, DMListIndexType itemIndex, DisplayListEntryPtr displaymodeInfo, DMDisplayListIteratorUPP userUPP)
void DisposeDMDisplayModeListIteratorUPP(DMDisplayModeListIteratorUPP userUPP)
@ kDMNotifyDependents
Definition: Displays.h:179
@ kExtendedNotificationProc
Definition: Displays.h:185
@ kDMNotifyPrep
Definition: Displays.h:176
@ kDMNotifyExtendEvent
Definition: Displays.h:177
@ kDMNotifyRemoved
Definition: Displays.h:175
@ kDMNotifyEvent
Definition: Displays.h:174
@ kDMNotifyInstalled
Definition: Displays.h:173
@ kDMNotifyRequestConnectionProbe
Definition: Displays.h:170
@ kDMNotifyResumeConfigure
Definition: Displays.h:181
@ kDMNotifyRequestDisplayProbe
Definition: Displays.h:182
@ kDMNotifySuspendConfigure
Definition: Displays.h:180
OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
void InvokeDMExtendedNotificationUPP(void *userData, short theMessage, void *notifyData, DMExtendedNotificationUPP userUPP)
OSErr DMCanMirrorNow(Boolean *canMirrorNow)
OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, DMProcessInfoPtr whichPSN, unsigned short removeFlags)
OSErr DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState)
void DisposeDMComponentListIteratorUPP(DMComponentListIteratorUPP userUPP)
@ kDMSupressNameMask
Definition: Displays.h:230
@ kDMForceNumbersMask
Definition: Displays.h:228
void InvokeDMComponentListIteratorUPP(void *userData, DMListIndexType itemIndex, DMComponentListEntryPtr componentInfo, DMComponentListIteratorUPP userUPP)
GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
void DisposeDMProfileListIteratorUPP(DMProfileListIteratorUPP userUPP)
OSErr DMEndConfigureDisplays(Handle displayState)
@ kDisplayModeEntryVersionOne
Definition: Displays.h:288
OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
void InvokeDMDisplayModeListIteratorUPP(void *userData, DMListIndexType itemIndex, DMDisplayModeListEntryPtr displaymodeInfo, DMDisplayModeListIteratorUPP userUPP)
OSErr DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 name)
OSErr DMNewProfileListByAVID(AVIDType theAVID, UInt32 reserved, DMListIndexType *profileCount, DMListType *profileList)
OSErr DMBeginConfigureDisplays(Handle *displayState)
void DisposeDMNotificationUPP(DMNotificationUPP userUPP)
@ kAnyDeviceType
Definition: Displays.h:250
@ kAnyEngineType
Definition: Displays.h:249
@ kAnyPortType
Definition: Displays.h:251
void DisposeDMExtendedNotificationUPP(DMExtendedNotificationUPP userUPP)
@ kAllowDuplicatesBit
Definition: Displays.h:209
OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
@ kShowModeBit
Definition: Displays.h:140
@ kNeverShowModeBit
Definition: Displays.h:143
@ kDepthNotAvailableBit
Definition: Displays.h:139
@ kNoSwitchConfirmBit
Definition: Displays.h:137
@ kModeNotResizeBit
Definition: Displays.h:141
OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
OSErr DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow, Boolean *canChangeEnableNow)
OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
@ kSuppressNumberBit
Definition: Displays.h:215
void DisposeDMDisplayListIteratorUPP(DMDisplayListIteratorUPP userUPP)
OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, DMProcessInfoPtr whichPSN)
Event Manager Interfaces.
unsigned char * StringPtr
Definition: MacTypes.h:477
unsigned char Boolean
Definition: MacTypes.h:318
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Process Manager Interfaces.
x
Definition: ToolUtils.h:163
Video Driver Interfaces.
Definition: AEDataModel.h:175
Definition: Displays.h:371
Definition: Components.h:133
Definition: Components.h:220
Definition: Components.h:214
Definition: Displays.h:338
Point itemSort
Definition: Displays.h:353
DMFidelityType itemFidelity
Definition: Displays.h:349
unsigned long itemFlags
Definition: Displays.h:355
unsigned long itemFuture3
Definition: Displays.h:362
ResType itemClass
Definition: Displays.h:345
ResType itemSubClass
Definition: Displays.h:350
unsigned long itemFuture1
Definition: Displays.h:358
unsigned long itemFuture4
Definition: Displays.h:364
ResType itemReserved
Definition: Displays.h:356
unsigned long itemFuture2
Definition: Displays.h:360
Component itemComponent
Definition: Displays.h:340
ComponentDescription itemDescription
Definition: Displays.h:342
Definition: Displays.h:389
DMDepthInfoPtr depthVPBlock
Definition: Displays.h:391
unsigned long depthBlockReserved1
Definition: Displays.h:393
unsigned long depthBlockFlags
Definition: Displays.h:392
unsigned long depthBlockReserved2
Definition: Displays.h:394
Definition: Displays.h:378
UInt32 depthReserved1
Definition: Displays.h:383
UInt32 depthFlags
Definition: Displays.h:382
VPBlockPtr depthVPBlock
Definition: Displays.h:381
UInt32 depthReserved2
Definition: Displays.h:384
Definition: Displays.h:399
UInt32 displayModeVersion
Definition: Displays.h:406
StringPtr displayModeName
Definition: Displays.h:408
DMDisplayTimingInfoPtr displayModeDisplayInfo
Definition: Displays.h:410
Definition: Displays.h:326
SInt32 timingInfoRelativeDefault
Definition: Displays.h:330
SInt32 timingInfoRelativeQuality
Definition: Displays.h:329
UInt32 timingInfoReserved[16]
Definition: Displays.h:332
Definition: Displays.h:433
Definition: Displays.h:497
Ptr profileReserved3
Definition: Displays.h:501
Ptr profileReserved2
Definition: Displays.h:500
Definition: Displays.h:416
ComponentInstance notifyComponent
Definition: Displays.h:422
DisplayIDType notifyPortID
Definition: Displays.h:420
unsigned long notifyReserved
Definition: Displays.h:426
unsigned long notifyFuture
Definition: Displays.h:427
unsigned long notifyVersion
Definition: Displays.h:424
ResType notifyClass
Definition: Displays.h:419
unsigned long notifyFlags
Definition: Displays.h:425
Definition: Displays.h:483
UInt32 displayListEntryReserved4
Definition: Displays.h:491
UInt32 displayListEntryReserved3
Definition: Displays.h:490
UInt32 displayListEntryReserved5
Definition: Displays.h:492
UInt32 displayListEntryReserved1
Definition: Displays.h:487
Definition: Events.h:224
Definition: Quickdraw.h:2178
Definition: Quickdraw.h:2121
Definition: Quickdraw.h:306
Definition: Quickdraw.h:326
Definition: MacTypes.h:520
Definition: Processes.h:65
Definition: MacTypes.h:527
Definition: Video.h:910
Definition: Video.h:819
Definition: Video.h:550
Definition: Video.h:559
Definition: Video.h:492