-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColorPickerComponents.h
2817 lines (2598 loc) · 104 KB
/
ColorPickerComponents.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
File: ColorPickerComponents.h
Contains: Color Picker Component Interfaces.
Version: Technology: Mac OS 8.5
Release: Universal Interfaces 3.4
Copyright: © 1994-2001 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#ifndef __COLORPICKERCOMPONENTS__
#define __COLORPICKERCOMPONENTS__
#ifndef __COLORPICKER__
#include <ColorPicker.h>
#endif
#ifndef __COMPONENTS__
#include <Components.h>
#endif
#ifndef __MIXEDMODE__
#include <MixedMode.h>
#endif
#ifndef __BALLOONS__
#include <Balloons.h>
#endif
#ifndef __DIALOGS__
#include <Dialogs.h>
#endif
#if PRAGMA_ONCE
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_IMPORT
#pragma import on
#endif
#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
#pragma pack(2)
#endif
enum {
kPickerComponentType = FOUR_CHAR_CODE('cpkr')
};
enum {
kPickerInit = 0,
kPickerTestGraphicsWorld = 1,
kPickerGetDialog = 2,
kPickerGetItemList = 3,
kPickerGetColor = 4,
kPickerSetColor = 5,
kPickerEvent = 6,
kPickerEdit = 7,
kPickerSetVisibility = 8,
kPickerDisplay = 9,
kPickerItemHit = 10,
kPickerSetBaseItem = 11,
kPickerGetProfile = 12,
kPickerSetProfile = 13,
kPickerGetPrompt = 14,
kPickerSetPrompt = 15,
kPickerGetIconData = 16,
kPickerGetEditMenuState = 17,
kPickerSetOrigin = 18,
kPickerExtractHelpItem = 19,
kPickerSetColorChangedProc = 20,
kNPickerGetColor = 21,
kNPickerSetColor = 22,
kNPickerGetProfile = 23,
kNPickerSetProfile = 24,
kNPickerSetColorChangedProc = 25
};
/* These structs were moved here from the ColorPicker header.*/
typedef SInt16 PickerAction;
enum {
kPickerDidNothing = 0, /* was kDidNothing */
kPickerColorChanged = 1, /* was kColorChanged */
kPickerOkHit = 2, /* was kOkHit */
kPickerCancelHit = 3, /* was kCancelHit */
kPickerNewPickerChosen = 4, /* was kNewPickerChosen */
kPickerApplItemHit = 5 /* was kApplItemHit */
};
typedef SInt16 PickerColorType;
enum {
kOriginalColor = 0,
kNewColor = 1
};
typedef SInt16 PickerEditOperation;
enum {
kPickerCut = 0, /* was kCut */
kPickerCopy = 1, /* was kCopy */
kPickerPaste = 2, /* was kPaste */
kPickerClear = 3, /* was kClear */
kPickerUndo = 4 /* was kUndo */
};
typedef SInt16 PickerItemModifier;
enum {
kPickerMouseDown = 0, /* was kMouseDown */
kPickerKeyDown = 1, /* was kKeyDown */
kPickerFieldEntered = 2, /* was kFieldEntered */
kPickerFieldLeft = 3, /* was kFieldLeft */
kPickerCutOp = 4, /* was kCutOp */
kPickerCopyOp = 5, /* was kCopyOp */
kPickerPasteOp = 6, /* was kPasteOp */
kPickerClearOp = 7, /* was kClearOp */
kPickerUndoOp = 8 /* was kUndoOp */
};
/* These are for the flags field in the picker's 'thng' resource. */
enum {
kPickerCanDoColor = 1, /* was CanDoColor */
kPickerCanDoBlackWhite = 2, /* was CanDoBlackWhite */
kPickerAlwaysModifiesPalette = 4, /* was AlwaysModifiesPalette */
kPickerMayModifyPalette = 8, /* was MayModifyPalette */
kPickerIsColorSyncAware = 16, /* was PickerIsColorSyncAware */
kPickerCanDoSystemDialog = 32, /* was CanDoSystemDialog */
kPickerCanDoApplDialog = 64, /* was CanDoApplDialog */
kPickerHasOwnDialog = 128, /* was HasOwnDialog */
kPickerCanDetach = 256, /* was CanDetach */
kPickerIsColorSync2Aware = 512 /* was PickerIsColorSync2Aware */
};
typedef SInt16 PickerEventForcaster;
enum {
kPickerNoForcast = 0, /* was kNoForcast */
kPickerMenuChoice = 1, /* was kMenuChoice */
kPickerDialogAccept = 2, /* was kDialogAccept */
kPickerDialogCancel = 3, /* was kDialogCancel */
kPickerLeaveFocus = 4, /* was kLeaveFocus */
kPickerSwitch = 5,
kPickerNormalKeyDown = 6, /* was kNormalKeyDown */
kPickerNormalMouseDown = 7 /* was kNormalMouseDown */
};
struct PickerIconData {
short scriptCode;
short iconSuiteID;
ResType helpResType;
short helpResID;
};
typedef struct PickerIconData PickerIconData;
struct PickerInitData {
DialogRef pickerDialog;
DialogRef choicesDialog;
long flags;
Picker yourself;
};
typedef struct PickerInitData PickerInitData;
struct PickerMenuState {
Boolean cutEnabled;
Boolean copyEnabled;
Boolean pasteEnabled;
Boolean clearEnabled;
Boolean undoEnabled;
SInt8 filler;
Str255 undoString;
};
typedef struct PickerMenuState PickerMenuState;
struct SystemDialogInfo {
long flags;
long pickerType;
DialogPlacementSpec placeWhere;
Point dialogOrigin;
PickerMenuItemInfo mInfo;
};
typedef struct SystemDialogInfo SystemDialogInfo;
struct PickerDialogInfo {
long flags;
long pickerType;
Point * dialogOrigin;
PickerMenuItemInfo mInfo;
};
typedef struct PickerDialogInfo PickerDialogInfo;
struct ApplicationDialogInfo {
long flags;
long pickerType;
DialogRef theDialog;
Point pickerOrigin;
PickerMenuItemInfo mInfo;
};
typedef struct ApplicationDialogInfo ApplicationDialogInfo;
struct PickerEventData {
EventRecord * event;
PickerAction action;
short itemHit;
Boolean handled;
SInt8 filler;
ColorChangedUPP colorProc;
long colorProcData;
PickerEventForcaster forcast;
};
typedef struct PickerEventData PickerEventData;
struct PickerEditData {
PickerEditOperation theEdit;
PickerAction action;
Boolean handled;
SInt8 filler;
};
typedef struct PickerEditData PickerEditData;
struct PickerItemHitData {
short itemHit;
PickerItemModifier iMod;
PickerAction action;
ColorChangedUPP colorProc;
long colorProcData;
Point where;
};
typedef struct PickerItemHitData PickerItemHitData;
struct PickerHelpItemInfo {
long options;
Point tip;
Rect altRect;
short theProc;
short helpVariant;
HMMessageRecord helpMessage;
};
typedef struct PickerHelpItemInfo PickerHelpItemInfo;
#if OLDROUTINENAMES
enum {
kInitPicker = kPickerInit,
kTestGraphicsWorld = kPickerTestGraphicsWorld,
kGetDialog = kPickerGetDialog,
kGetItemList = kPickerGetItemList,
kGetColor = kPickerGetColor,
kSetColor = kPickerSetColor,
kEvent = kPickerEvent,
kEdit = kPickerEdit,
kSetVisibility = kPickerSetVisibility,
kDrawPicker = kPickerDisplay,
kItemHit = kPickerItemHit,
kSetBaseItem = kPickerSetBaseItem,
kGetProfile = kPickerGetProfile,
kSetProfile = kPickerSetProfile,
kGetPrompt = kPickerGetPrompt,
kSetPrompt = kPickerSetPrompt,
kGetIconData = kPickerGetIconData,
kGetEditMenuState = kPickerGetEditMenuState,
kSetOrigin = kPickerSetOrigin,
kExtractHelpItem = kPickerExtractHelpItem
};
enum {
kDidNothing = kPickerDidNothing,
kColorChanged = kPickerColorChanged,
kOkHit = kPickerOkHit,
kCancelHit = kPickerCancelHit,
kNewPickerChosen = kPickerNewPickerChosen,
kApplItemHit = kPickerApplItemHit
};
enum {
kCut = kPickerCut,
kCopy = kPickerCopy,
kPaste = kPickerPaste,
kClear = kPickerClear,
kUndo = kPickerUndo
};
enum {
kMouseDown = kPickerMouseDown,
kKeyDown = kPickerKeyDown,
kFieldEntered = kPickerFieldEntered,
kFieldLeft = kPickerFieldLeft,
kCutOp = kPickerCutOp,
kCopyOp = kPickerCopyOp,
kPasteOp = kPickerPasteOp,
kClearOp = kPickerClearOp,
kUndoOp = kPickerUndoOp
};
enum {
kNoForcast = kPickerNoForcast,
kMenuChoice = kPickerMenuChoice,
kDialogAccept = kPickerDialogAccept,
kDialogCancel = kPickerDialogCancel,
kLeaveFocus = kPickerLeaveFocus,
kNormalKeyDown = kPickerNormalKeyDown,
kNormalMouseDown = kPickerNormalMouseDown
};
typedef short ColorType;
typedef short EditOperation;
typedef short ItemModifier;
typedef short EventForcaster;
struct EventData {
EventRecord * event;
PickerAction action;
short itemHit;
Boolean handled;
SInt8 filler;
ColorChangedUPP colorProc;
long colorProcData;
EventForcaster forcast;
};
typedef struct EventData EventData;
struct EditData {
EditOperation theEdit;
PickerAction action;
Boolean handled;
SInt8 filler;
};
typedef struct EditData EditData;
struct ItemHitData {
short itemHit;
ItemModifier iMod;
PickerAction action;
ColorChangedUPP colorProc;
long colorProcData;
Point where;
};
typedef struct ItemHitData ItemHitData;
struct HelpItemInfo {
long options;
Point tip;
Rect altRect;
short theProc;
short helpVariant;
HMMessageRecord helpMessage;
};
typedef struct HelpItemInfo HelpItemInfo;
#endif /* OLDROUTINENAMES */
typedef CALLBACK_API( ComponentResult , PickerOpenProcPtr )(long storage, ComponentInstance self);
typedef CALLBACK_API( ComponentResult , PickerCloseProcPtr )(long storage, ComponentInstance self);
typedef CALLBACK_API( ComponentResult , PickerCanDoProcPtr )(long storage, short selector);
typedef CALLBACK_API( ComponentResult , PickerVersionProcPtr )(long storage);
typedef CALLBACK_API( ComponentResult , PickerRegisterProcPtr )(long storage);
typedef CALLBACK_API( ComponentResult , PickerSetTargetProcPtr )(long storage, ComponentInstance topOfCallChain);
typedef STACK_UPP_TYPE(PickerOpenProcPtr) PickerOpenUPP;
typedef STACK_UPP_TYPE(PickerCloseProcPtr) PickerCloseUPP;
typedef STACK_UPP_TYPE(PickerCanDoProcPtr) PickerCanDoUPP;
typedef STACK_UPP_TYPE(PickerVersionProcPtr) PickerVersionUPP;
typedef STACK_UPP_TYPE(PickerRegisterProcPtr) PickerRegisterUPP;
typedef STACK_UPP_TYPE(PickerSetTargetProcPtr) PickerSetTargetUPP;
#if CALL_NOT_IN_CARBON
/*
* PickerInit()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
PickerInit(
long storage,
PickerInitData * data) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0000, 0x7000, 0xA82A);
#endif /* CALL_NOT_IN_CARBON */
typedef CALLBACK_API( ComponentResult , PickerInitProcPtr )(long storage, PickerInitData *data);
#if CALL_NOT_IN_CARBON
/*
* PickerTestGraphicsWorld()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
PickerTestGraphicsWorld(
long storage,
PickerInitData * data) FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
#endif /* CALL_NOT_IN_CARBON */
typedef CALLBACK_API( ComponentResult , PickerTestGraphicsWorldProcPtr )(long storage, PickerInitData *data);
#if CALL_NOT_IN_CARBON
/*
* PickerGetDialog()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
PickerGetDialog(long storage) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0002, 0x7000, 0xA82A);
#endif /* CALL_NOT_IN_CARBON */
typedef CALLBACK_API( ComponentResult , PickerGetDialogProcPtr )(long storage);
#if CALL_NOT_IN_CARBON
/*
* PickerGetItemList()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
PickerGetItemList(long storage) FIVEWORDINLINE(0x2F3C, 0x0000, 0x0003, 0x7000, 0xA82A);
#endif /* CALL_NOT_IN_CARBON */
typedef CALLBACK_API( ComponentResult , PickerGetItemListProcPtr )(long storage);
#if CALL_NOT_IN_CARBON
/*
* PickerGetColor()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( ComponentResult )
PickerGetColor(
long storage,
PickerColorType whichColor,
PMColorPtr color) FIVEWORDINLINE(0x2F3C, 0x0006, 0x0004, 0x7000, 0xA82A);
#endif /* CALL_NOT_IN_CARBON */
typedef CALLBACK_API( ComponentResult , PickerGetColorProcPtr )(long storage, PickerColorType whichColor, PMColorPtr color);
typedef STACK_UPP_TYPE(PickerInitProcPtr) PickerInitUPP;
typedef STACK_UPP_TYPE(PickerTestGraphicsWorldProcPtr) PickerTestGraphicsWorldUPP;
typedef STACK_UPP_TYPE(PickerGetDialogProcPtr) PickerGetDialogUPP;
typedef STACK_UPP_TYPE(PickerGetItemListProcPtr) PickerGetItemListUPP;
typedef STACK_UPP_TYPE(PickerGetColorProcPtr) PickerGetColorUPP;
#if CALL_NOT_IN_CARBON
/*
* NewPickerOpenUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerOpenUPP )
NewPickerOpenUPP(PickerOpenProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerOpenProcInfo = 0x000003F0 }; /* pascal 4_bytes Func(4_bytes, 4_bytes) */
#ifdef __cplusplus
inline PickerOpenUPP NewPickerOpenUPP(PickerOpenProcPtr userRoutine) { return (PickerOpenUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerOpenProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerOpenUPP(userRoutine) (PickerOpenUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerOpenProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerCloseUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerCloseUPP )
NewPickerCloseUPP(PickerCloseProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerCloseProcInfo = 0x000003F0 }; /* pascal 4_bytes Func(4_bytes, 4_bytes) */
#ifdef __cplusplus
inline PickerCloseUPP NewPickerCloseUPP(PickerCloseProcPtr userRoutine) { return (PickerCloseUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerCloseProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerCloseUPP(userRoutine) (PickerCloseUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerCloseProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerCanDoUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerCanDoUPP )
NewPickerCanDoUPP(PickerCanDoProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerCanDoProcInfo = 0x000002F0 }; /* pascal 4_bytes Func(4_bytes, 2_bytes) */
#ifdef __cplusplus
inline PickerCanDoUPP NewPickerCanDoUPP(PickerCanDoProcPtr userRoutine) { return (PickerCanDoUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerCanDoProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerCanDoUPP(userRoutine) (PickerCanDoUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerCanDoProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerVersionUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerVersionUPP )
NewPickerVersionUPP(PickerVersionProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerVersionProcInfo = 0x000000F0 }; /* pascal 4_bytes Func(4_bytes) */
#ifdef __cplusplus
inline PickerVersionUPP NewPickerVersionUPP(PickerVersionProcPtr userRoutine) { return (PickerVersionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerVersionProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerVersionUPP(userRoutine) (PickerVersionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerVersionProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerRegisterUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerRegisterUPP )
NewPickerRegisterUPP(PickerRegisterProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerRegisterProcInfo = 0x000000F0 }; /* pascal 4_bytes Func(4_bytes) */
#ifdef __cplusplus
inline PickerRegisterUPP NewPickerRegisterUPP(PickerRegisterProcPtr userRoutine) { return (PickerRegisterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerRegisterProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerRegisterUPP(userRoutine) (PickerRegisterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerRegisterProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerSetTargetUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerSetTargetUPP )
NewPickerSetTargetUPP(PickerSetTargetProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerSetTargetProcInfo = 0x000003F0 }; /* pascal 4_bytes Func(4_bytes, 4_bytes) */
#ifdef __cplusplus
inline PickerSetTargetUPP NewPickerSetTargetUPP(PickerSetTargetProcPtr userRoutine) { return (PickerSetTargetUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerSetTargetProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerSetTargetUPP(userRoutine) (PickerSetTargetUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerSetTargetProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerInitUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerInitUPP )
NewPickerInitUPP(PickerInitProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerInitProcInfo = 0x000003F0 }; /* pascal 4_bytes Func(4_bytes, 4_bytes) */
#ifdef __cplusplus
inline PickerInitUPP NewPickerInitUPP(PickerInitProcPtr userRoutine) { return (PickerInitUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerInitProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerInitUPP(userRoutine) (PickerInitUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerInitProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerTestGraphicsWorldUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerTestGraphicsWorldUPP )
NewPickerTestGraphicsWorldUPP(PickerTestGraphicsWorldProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerTestGraphicsWorldProcInfo = 0x000003F0 }; /* pascal 4_bytes Func(4_bytes, 4_bytes) */
#ifdef __cplusplus
inline PickerTestGraphicsWorldUPP NewPickerTestGraphicsWorldUPP(PickerTestGraphicsWorldProcPtr userRoutine) { return (PickerTestGraphicsWorldUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerTestGraphicsWorldProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerTestGraphicsWorldUPP(userRoutine) (PickerTestGraphicsWorldUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerTestGraphicsWorldProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerGetDialogUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerGetDialogUPP )
NewPickerGetDialogUPP(PickerGetDialogProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerGetDialogProcInfo = 0x000000F0 }; /* pascal 4_bytes Func(4_bytes) */
#ifdef __cplusplus
inline PickerGetDialogUPP NewPickerGetDialogUPP(PickerGetDialogProcPtr userRoutine) { return (PickerGetDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerGetDialogProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerGetDialogUPP(userRoutine) (PickerGetDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerGetDialogProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerGetItemListUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerGetItemListUPP )
NewPickerGetItemListUPP(PickerGetItemListProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerGetItemListProcInfo = 0x000000F0 }; /* pascal 4_bytes Func(4_bytes) */
#ifdef __cplusplus
inline PickerGetItemListUPP NewPickerGetItemListUPP(PickerGetItemListProcPtr userRoutine) { return (PickerGetItemListUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerGetItemListProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerGetItemListUPP(userRoutine) (PickerGetItemListUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerGetItemListProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* NewPickerGetColorUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( PickerGetColorUPP )
NewPickerGetColorUPP(PickerGetColorProcPtr userRoutine);
#if !OPAQUE_UPP_TYPES
enum { uppPickerGetColorProcInfo = 0x00000EF0 }; /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
#ifdef __cplusplus
inline PickerGetColorUPP NewPickerGetColorUPP(PickerGetColorProcPtr userRoutine) { return (PickerGetColorUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerGetColorProcInfo, GetCurrentArchitecture()); }
#else
#define NewPickerGetColorUPP(userRoutine) (PickerGetColorUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppPickerGetColorProcInfo, GetCurrentArchitecture())
#endif
#endif
/*
* DisposePickerOpenUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerOpenUPP(PickerOpenUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerOpenUPP(PickerOpenUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerOpenUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerCloseUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerCloseUPP(PickerCloseUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerCloseUPP(PickerCloseUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerCloseUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerCanDoUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerCanDoUPP(PickerCanDoUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerCanDoUPP(PickerCanDoUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerCanDoUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerVersionUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerVersionUPP(PickerVersionUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerVersionUPP(PickerVersionUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerVersionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerRegisterUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerRegisterUPP(PickerRegisterUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerRegisterUPP(PickerRegisterUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerRegisterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerSetTargetUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerSetTargetUPP(PickerSetTargetUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerSetTargetUPP(PickerSetTargetUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerSetTargetUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerInitUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerInitUPP(PickerInitUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerInitUPP(PickerInitUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerInitUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerTestGraphicsWorldUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerTestGraphicsWorldUPP(PickerTestGraphicsWorldUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerTestGraphicsWorldUPP(PickerTestGraphicsWorldUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerTestGraphicsWorldUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerGetDialogUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerGetDialogUPP(PickerGetDialogUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerGetDialogUPP(PickerGetDialogUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerGetDialogUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerGetItemListUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerGetItemListUPP(PickerGetItemListUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerGetItemListUPP(PickerGetItemListUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerGetItemListUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* DisposePickerGetColorUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( void )
DisposePickerGetColorUPP(PickerGetColorUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline void DisposePickerGetColorUPP(PickerGetColorUPP userUPP) { DisposeRoutineDescriptor((UniversalProcPtr)userUPP); }
#else
#define DisposePickerGetColorUPP(userUPP) DisposeRoutineDescriptor(userUPP)
#endif
#endif
/*
* InvokePickerOpenUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerOpenUPP(
long storage,
ComponentInstance self,
PickerOpenUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline ComponentResult InvokePickerOpenUPP(long storage, ComponentInstance self, PickerOpenUPP userUPP) { return (ComponentResult)CALL_TWO_PARAMETER_UPP(userUPP, uppPickerOpenProcInfo, storage, self); }
#else
#define InvokePickerOpenUPP(storage, self, userUPP) (ComponentResult)CALL_TWO_PARAMETER_UPP((userUPP), uppPickerOpenProcInfo, (storage), (self))
#endif
#endif
/*
* InvokePickerCloseUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerCloseUPP(
long storage,
ComponentInstance self,
PickerCloseUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline ComponentResult InvokePickerCloseUPP(long storage, ComponentInstance self, PickerCloseUPP userUPP) { return (ComponentResult)CALL_TWO_PARAMETER_UPP(userUPP, uppPickerCloseProcInfo, storage, self); }
#else
#define InvokePickerCloseUPP(storage, self, userUPP) (ComponentResult)CALL_TWO_PARAMETER_UPP((userUPP), uppPickerCloseProcInfo, (storage), (self))
#endif
#endif
/*
* InvokePickerCanDoUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerCanDoUPP(
long storage,
short selector,
PickerCanDoUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline ComponentResult InvokePickerCanDoUPP(long storage, short selector, PickerCanDoUPP userUPP) { return (ComponentResult)CALL_TWO_PARAMETER_UPP(userUPP, uppPickerCanDoProcInfo, storage, selector); }
#else
#define InvokePickerCanDoUPP(storage, selector, userUPP) (ComponentResult)CALL_TWO_PARAMETER_UPP((userUPP), uppPickerCanDoProcInfo, (storage), (selector))
#endif
#endif
/*
* InvokePickerVersionUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerVersionUPP(
long storage,
PickerVersionUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline ComponentResult InvokePickerVersionUPP(long storage, PickerVersionUPP userUPP) { return (ComponentResult)CALL_ONE_PARAMETER_UPP(userUPP, uppPickerVersionProcInfo, storage); }
#else
#define InvokePickerVersionUPP(storage, userUPP) (ComponentResult)CALL_ONE_PARAMETER_UPP((userUPP), uppPickerVersionProcInfo, (storage))
#endif
#endif
/*
* InvokePickerRegisterUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerRegisterUPP(
long storage,
PickerRegisterUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline ComponentResult InvokePickerRegisterUPP(long storage, PickerRegisterUPP userUPP) { return (ComponentResult)CALL_ONE_PARAMETER_UPP(userUPP, uppPickerRegisterProcInfo, storage); }
#else
#define InvokePickerRegisterUPP(storage, userUPP) (ComponentResult)CALL_ONE_PARAMETER_UPP((userUPP), uppPickerRegisterProcInfo, (storage))
#endif
#endif
/*
* InvokePickerSetTargetUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerSetTargetUPP(
long storage,
ComponentInstance topOfCallChain,
PickerSetTargetUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus
inline ComponentResult InvokePickerSetTargetUPP(long storage, ComponentInstance topOfCallChain, PickerSetTargetUPP userUPP) { return (ComponentResult)CALL_TWO_PARAMETER_UPP(userUPP, uppPickerSetTargetProcInfo, storage, topOfCallChain); }
#else
#define InvokePickerSetTargetUPP(storage, topOfCallChain, userUPP) (ComponentResult)CALL_TWO_PARAMETER_UPP((userUPP), uppPickerSetTargetProcInfo, (storage), (topOfCallChain))
#endif
#endif
/*
* InvokePickerInitUPP()
*
* Availability:
* Non-Carbon CFM: available as macro/inline
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API_C( ComponentResult )
InvokePickerInitUPP(
long storage,
PickerInitData * data,
PickerInitUPP userUPP);
#if !OPAQUE_UPP_TYPES
#ifdef __cplusplus