-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppearance.h
3082 lines (2782 loc) · 120 KB
/
Appearance.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: Appearance.h
Contains: Appearance Manager Interfaces.
Version: Technology: Mac OS 9
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 __APPEARANCE__
#define __APPEARANCE__
#ifndef __MACTYPES__
#include <MacTypes.h>
#endif
#ifndef __QUICKDRAW__
#include <Quickdraw.h>
#endif
#ifndef __TEXTEDIT__
#include <TextEdit.h>
#endif
#ifndef __QDOFFSCREEN__
#include <QDOffscreen.h>
#endif
#ifndef __MACWINDOWS__
#include <MacWindows.h>
#endif
#ifndef __CONTROLS__
#include <Controls.h>
#endif
#ifndef __MACERRORS__
#include <MacErrors.h>
#endif
#ifndef __TEXTUTILS__
#include <TextUtils.h>
#endif
#ifndef __CFSTRING__
#include <CFString.h>
#endif
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Appearance Manager constants, etc. */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Appearance Manager Apple Events (1.1 and later) */
#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 {
kAppearanceEventClass = FOUR_CHAR_CODE('appr'), /* Event Class */
kAEAppearanceChanged = FOUR_CHAR_CODE('thme'), /* Appearance changed (e.g. platinum to hi-tech) */
kAESystemFontChanged = FOUR_CHAR_CODE('sysf'), /* system font changed */
kAESmallSystemFontChanged = FOUR_CHAR_CODE('ssfn'), /* small system font changed */
kAEViewsFontChanged = FOUR_CHAR_CODE('vfnt') /* views font changed */
};
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Appearance Manager file types */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeDataFileType = FOUR_CHAR_CODE('thme'), /* file type for theme files */
kThemePlatinumFileType = FOUR_CHAR_CODE('pltn'), /* file type for platinum appearance */
kThemeCustomThemesFileType = FOUR_CHAR_CODE('scen'), /* file type for user themes */
kThemeSoundTrackFileType = FOUR_CHAR_CODE('tsnd')
};
enum {
kThemeBrushDialogBackgroundActive = 1, /* Dialogs */
kThemeBrushDialogBackgroundInactive = 2, /* Dialogs */
kThemeBrushAlertBackgroundActive = 3,
kThemeBrushAlertBackgroundInactive = 4,
kThemeBrushModelessDialogBackgroundActive = 5,
kThemeBrushModelessDialogBackgroundInactive = 6,
kThemeBrushUtilityWindowBackgroundActive = 7, /* Miscellaneous */
kThemeBrushUtilityWindowBackgroundInactive = 8, /* Miscellaneous */
kThemeBrushListViewSortColumnBackground = 9, /* Finder */
kThemeBrushListViewBackground = 10,
kThemeBrushIconLabelBackground = 11,
kThemeBrushListViewSeparator = 12,
kThemeBrushChasingArrows = 13,
kThemeBrushDragHilite = 14,
kThemeBrushDocumentWindowBackground = 15,
kThemeBrushFinderWindowBackground = 16
};
/* Brushes available in Appearance 1.1 or later */
enum {
kThemeBrushScrollBarDelimiterActive = 17,
kThemeBrushScrollBarDelimiterInactive = 18,
kThemeBrushFocusHighlight = 19,
kThemeBrushPopupArrowActive = 20,
kThemeBrushPopupArrowPressed = 21,
kThemeBrushPopupArrowInactive = 22,
kThemeBrushAppleGuideCoachmark = 23,
kThemeBrushIconLabelBackgroundSelected = 24,
kThemeBrushStaticAreaFill = 25,
kThemeBrushActiveAreaFill = 26,
kThemeBrushButtonFrameActive = 27,
kThemeBrushButtonFrameInactive = 28,
kThemeBrushButtonFaceActive = 29,
kThemeBrushButtonFaceInactive = 30,
kThemeBrushButtonFacePressed = 31,
kThemeBrushButtonActiveDarkShadow = 32,
kThemeBrushButtonActiveDarkHighlight = 33,
kThemeBrushButtonActiveLightShadow = 34,
kThemeBrushButtonActiveLightHighlight = 35,
kThemeBrushButtonInactiveDarkShadow = 36,
kThemeBrushButtonInactiveDarkHighlight = 37,
kThemeBrushButtonInactiveLightShadow = 38,
kThemeBrushButtonInactiveLightHighlight = 39,
kThemeBrushButtonPressedDarkShadow = 40,
kThemeBrushButtonPressedDarkHighlight = 41,
kThemeBrushButtonPressedLightShadow = 42,
kThemeBrushButtonPressedLightHighlight = 43,
kThemeBrushBevelActiveLight = 44,
kThemeBrushBevelActiveDark = 45,
kThemeBrushBevelInactiveLight = 46,
kThemeBrushBevelInactiveDark = 47
};
/* Brushes available in Appearance 1.1.1 or later */
enum {
kThemeBrushNotificationWindowBackground = 48
};
/* Brushes available in Appearance X or later */
enum {
kThemeBrushMovableModalBackground = 49,
kThemeBrushSheetBackground = 50,
kThemeBrushDrawerBackground = 51
};
/* These values are meta-brushes, specific colors that do not */
/* change from theme to theme. You can use them instead of using */
/* direct RGB values. */
enum {
kThemeBrushBlack = -1,
kThemeBrushWhite = -2
};
typedef SInt16 ThemeBrush;
enum {
kThemeTextColorDialogActive = 1,
kThemeTextColorDialogInactive = 2,
kThemeTextColorAlertActive = 3,
kThemeTextColorAlertInactive = 4,
kThemeTextColorModelessDialogActive = 5,
kThemeTextColorModelessDialogInactive = 6,
kThemeTextColorWindowHeaderActive = 7,
kThemeTextColorWindowHeaderInactive = 8,
kThemeTextColorPlacardActive = 9,
kThemeTextColorPlacardInactive = 10,
kThemeTextColorPlacardPressed = 11,
kThemeTextColorPushButtonActive = 12,
kThemeTextColorPushButtonInactive = 13,
kThemeTextColorPushButtonPressed = 14,
kThemeTextColorBevelButtonActive = 15,
kThemeTextColorBevelButtonInactive = 16,
kThemeTextColorBevelButtonPressed = 17,
kThemeTextColorPopupButtonActive = 18,
kThemeTextColorPopupButtonInactive = 19,
kThemeTextColorPopupButtonPressed = 20,
kThemeTextColorIconLabel = 21,
kThemeTextColorListView = 22
};
/* Text Colors available in Appearance 1.0.1 or later */
enum {
kThemeTextColorDocumentWindowTitleActive = 23,
kThemeTextColorDocumentWindowTitleInactive = 24,
kThemeTextColorMovableModalWindowTitleActive = 25,
kThemeTextColorMovableModalWindowTitleInactive = 26,
kThemeTextColorUtilityWindowTitleActive = 27,
kThemeTextColorUtilityWindowTitleInactive = 28,
kThemeTextColorPopupWindowTitleActive = 29,
kThemeTextColorPopupWindowTitleInactive = 30,
kThemeTextColorRootMenuActive = 31,
kThemeTextColorRootMenuSelected = 32,
kThemeTextColorRootMenuDisabled = 33,
kThemeTextColorMenuItemActive = 34,
kThemeTextColorMenuItemSelected = 35,
kThemeTextColorMenuItemDisabled = 36,
kThemeTextColorPopupLabelActive = 37,
kThemeTextColorPopupLabelInactive = 38
};
/* Text colors available in Appearance 1.1 or later */
enum {
kThemeTextColorTabFrontActive = 39,
kThemeTextColorTabNonFrontActive = 40,
kThemeTextColorTabNonFrontPressed = 41,
kThemeTextColorTabFrontInactive = 42,
kThemeTextColorTabNonFrontInactive = 43,
kThemeTextColorIconLabelSelected = 44,
kThemeTextColorBevelButtonStickyActive = 45,
kThemeTextColorBevelButtonStickyInactive = 46
};
/* Text colors available in Appearance 1.1.1 or later */
enum {
kThemeTextColorNotification = 47
};
/* These values are specific colors that do not change from */
/* theme to theme. You can use them instead of using direct RGB values. */
enum {
kThemeTextColorBlack = -1,
kThemeTextColorWhite = -2
};
typedef SInt16 ThemeTextColor;
/* States to draw primitives: disabled, active, and pressed (hilited) */
enum {
kThemeStateInactive = 0,
kThemeStateActive = 1,
kThemeStatePressed = 2,
kThemeStateRollover = 6,
kThemeStateUnavailable = 7,
kThemeStateUnavailableInactive = 8
};
/* obsolete name */
enum {
kThemeStateDisabled = 0
};
enum {
kThemeStatePressedUp = 2, /* draw with up pressed (increment/decrement buttons) */
kThemeStatePressedDown = 3 /* draw with down pressed (increment/decrement buttons) */
};
typedef UInt32 ThemeDrawState;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme cursor selectors available in Appearance 1.1 or later */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeArrowCursor = 0,
kThemeCopyArrowCursor = 1,
kThemeAliasArrowCursor = 2,
kThemeContextualMenuArrowCursor = 3,
kThemeIBeamCursor = 4,
kThemeCrossCursor = 5,
kThemePlusCursor = 6,
kThemeWatchCursor = 7, /* Can Animate */
kThemeClosedHandCursor = 8,
kThemeOpenHandCursor = 9,
kThemePointingHandCursor = 10,
kThemeCountingUpHandCursor = 11, /* Can Animate */
kThemeCountingDownHandCursor = 12, /* Can Animate */
kThemeCountingUpAndDownHandCursor = 13, /* Can Animate */
kThemeSpinningCursor = 14, /* Can Animate */
kThemeResizeLeftCursor = 15,
kThemeResizeRightCursor = 16,
kThemeResizeLeftRightCursor = 17
};
typedef UInt32 ThemeCursor;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme menu bar drawing states */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeMenuBarNormal = 0,
kThemeMenuBarSelected = 1
};
typedef UInt16 ThemeMenuBarState;
/* attributes */
enum {
kThemeMenuSquareMenuBar = (1 << 0)
};
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme menu drawing states */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeMenuActive = 0,
kThemeMenuSelected = 1,
kThemeMenuDisabled = 3
};
typedef UInt16 ThemeMenuState;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* MenuType: add kThemeMenuTypeInactive to menu type for DrawThemeMenuBackground if entire */
/* menu is inactive */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeMenuTypePullDown = 0,
kThemeMenuTypePopUp = 1,
kThemeMenuTypeHierarchical = 2,
kThemeMenuTypeInactive = 0x0100
};
typedef UInt16 ThemeMenuType;
enum {
kThemeMenuItemPlain = 0,
kThemeMenuItemHierarchical = 1, /* item has hierarchical arrow*/
kThemeMenuItemScrollUpArrow = 2, /* for scrollable menus, indicates item is scroller*/
kThemeMenuItemScrollDownArrow = 3,
kThemeMenuItemAtTop = 0x0100, /* indicates item is being drawn at top of menu*/
kThemeMenuItemAtBottom = 0x0200, /* indicates item is being drawn at bottom of menu*/
kThemeMenuItemHierBackground = 0x0400, /* item is within a hierarchical menu*/
kThemeMenuItemPopUpBackground = 0x0800, /* item is within a popped up menu*/
kThemeMenuItemHasIcon = 0x8000 /* add into non-arrow type when icon present.*/
};
typedef UInt16 ThemeMenuItemType;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme Backgrounds */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeBackgroundTabPane = 1,
kThemeBackgroundPlacard = 2,
kThemeBackgroundWindowHeader = 3,
kThemeBackgroundListViewWindowHeader = 4,
kThemeBackgroundSecondaryGroupBox = 5
};
typedef UInt32 ThemeBackgroundKind;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme Collection tags for Get/SetTheme */
/* */
/* X ALERT: Please note that Get/SetTheme are severely neutered under Mac OS X at present. */
/* The first group of tags below are available to get under both 9 and X. The */
/* second group is 9 only. None of the tags can be used in SetTheme on X, as it */
/* is completely inert on X, and will return unimpErr. */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeNameTag = FOUR_CHAR_CODE('name'), /* Str255*/
kThemeVariantNameTag = FOUR_CHAR_CODE('varn'), /* Str255*/
kThemeHighlightColorTag = FOUR_CHAR_CODE('hcol'), /* RGBColor*/
kThemeScrollBarArrowStyleTag = FOUR_CHAR_CODE('sbar'), /* ThemeScrollBarArrowStyle*/
kThemeScrollBarThumbStyleTag = FOUR_CHAR_CODE('sbth'), /* ThemeScrollBarThumbStyle*/
kThemeSoundsEnabledTag = FOUR_CHAR_CODE('snds'), /* Boolean*/
kThemeDblClickCollapseTag = FOUR_CHAR_CODE('coll') /* Boolean*/
};
enum {
kThemeAppearanceFileNameTag = FOUR_CHAR_CODE('thme'), /* Str255*/
kThemeSystemFontTag = FOUR_CHAR_CODE('lgsf'), /* Str255*/
kThemeSmallSystemFontTag = FOUR_CHAR_CODE('smsf'), /* Str255*/
kThemeViewsFontTag = FOUR_CHAR_CODE('vfnt'), /* Str255*/
kThemeViewsFontSizeTag = FOUR_CHAR_CODE('vfsz'), /* SInt16*/
kThemeDesktopPatternNameTag = FOUR_CHAR_CODE('patn'), /* Str255*/
kThemeDesktopPatternTag = FOUR_CHAR_CODE('patt'), /* <variable-length data> (flattened pattern)*/
kThemeDesktopPictureNameTag = FOUR_CHAR_CODE('dpnm'), /* Str255*/
kThemeDesktopPictureAliasTag = FOUR_CHAR_CODE('dpal'), /* <alias handle>*/
kThemeDesktopPictureAlignmentTag = FOUR_CHAR_CODE('dpan'), /* UInt32*/
kThemeHighlightColorNameTag = FOUR_CHAR_CODE('hcnm'), /* Str255*/
kThemeExamplePictureIDTag = FOUR_CHAR_CODE('epic'), /* SInt16*/
kThemeSoundTrackNameTag = FOUR_CHAR_CODE('sndt'), /* Str255*/
kThemeSoundMaskTag = FOUR_CHAR_CODE('smsk'), /* UInt32*/
kThemeUserDefinedTag = FOUR_CHAR_CODE('user'), /* Boolean (this should _always_ be true if present - used by Control Panel).*/
kThemeSmoothFontEnabledTag = FOUR_CHAR_CODE('smoo'), /* Boolean*/
kThemeSmoothFontMinSizeTag = FOUR_CHAR_CODE('smos') /* UInt16 (must be >= 12 and <= 24)*/
};
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme Control Settings */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeCheckBoxClassicX = 0, /* check box with an 'X'*/
kThemeCheckBoxCheckMark = 1 /* check box with a real check mark*/
};
typedef UInt16 ThemeCheckBoxStyle;
enum {
kThemeScrollBarArrowsSingle = 0, /* single arrow on each end*/
kThemeScrollBarArrowsLowerRight = 1 /* double arrows only on right or bottom*/
};
typedef UInt16 ThemeScrollBarArrowStyle;
enum {
kThemeScrollBarThumbNormal = 0, /* normal, classic thumb size*/
kThemeScrollBarThumbProportional = 1 /* proportional thumbs*/
};
typedef UInt16 ThemeScrollBarThumbStyle;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Font constants */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeSystemFont = 0,
kThemeSmallSystemFont = 1,
kThemeSmallEmphasizedSystemFont = 2,
kThemeViewsFont = 3, /* The following ID's are only available with MacOS X or CarbonLib 1.3 and later*/
kThemeEmphasizedSystemFont = 4,
kThemeApplicationFont = 5,
kThemeLabelFont = 6,
kThemeMenuTitleFont = 100,
kThemeMenuItemFont = 101,
kThemeMenuItemMarkFont = 102,
kThemeMenuItemCmdKeyFont = 103,
kThemeWindowTitleFont = 104,
kThemePushButtonFont = 105,
kThemeUtilityWindowTitleFont = 106,
kThemeAlertHeaderFont = 107,
kThemeCurrentPortFont = 200
};
typedef UInt16 ThemeFontID;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Tab constants */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeTabNonFront = 0,
kThemeTabNonFrontPressed = 1,
kThemeTabNonFrontInactive = 2,
kThemeTabFront = 3,
kThemeTabFrontInactive = 4,
kThemeTabNonFrontUnavailable = 5,
kThemeTabFrontUnavailable = 6
};
typedef UInt16 ThemeTabStyle;
enum {
kThemeTabNorth = 0,
kThemeTabSouth = 1,
kThemeTabEast = 2,
kThemeTabWest = 3
};
typedef UInt16 ThemeTabDirection;
/* NOTE ON TAB HEIGHT */
/* Use the kThemeSmallTabHeightMax and kThemeLargeTabHeightMax when calculating the rects */
/* to draw tabs into. This height includes the tab frame overlap. Tabs that are not in the */
/* front are only drawn down to where they meet the frame, as if the height was just */
/* kThemeLargeTabHeight, for example, as opposed to the ...Max constant. Remember that for */
/* East and West tabs, the height referred to below is actually the width. */
enum {
kThemeSmallTabHeight = 16, /* amount small tabs protrude from frame.*/
kThemeLargeTabHeight = 21, /* amount large tabs protrude from frame.*/
kThemeTabPaneOverlap = 3, /* amount tabs overlap frame.*/
kThemeSmallTabHeightMax = 19, /* small tab height + overlap*/
kThemeLargeTabHeightMax = 24 /* large tab height + overlap*/
};
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Track kinds */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeMediumScrollBar = 0,
kThemeSmallScrollBar = 1,
kThemeMediumSlider = 2,
kThemeMediumProgressBar = 3,
kThemeMediumIndeterminateBar = 4,
kThemeRelevanceBar = 5,
kThemeSmallSlider = 6,
kThemeLargeProgressBar = 7,
kThemeLargeIndeterminateBar = 8
};
typedef UInt16 ThemeTrackKind;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Track enable states */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
/* track states */
kThemeTrackActive = 0,
kThemeTrackDisabled = 1,
kThemeTrackNothingToScroll = 2,
kThemeTrackInactive = 3
};
typedef UInt8 ThemeTrackEnableState;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Track pressed states */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
/* press states (ignored unless track is active) */
kThemeLeftOutsideArrowPressed = 0x01,
kThemeLeftInsideArrowPressed = 0x02,
kThemeLeftTrackPressed = 0x04,
kThemeThumbPressed = 0x08,
kThemeRightTrackPressed = 0x10,
kThemeRightInsideArrowPressed = 0x20,
kThemeRightOutsideArrowPressed = 0x40,
kThemeTopOutsideArrowPressed = kThemeLeftOutsideArrowPressed,
kThemeTopInsideArrowPressed = kThemeLeftInsideArrowPressed,
kThemeTopTrackPressed = kThemeLeftTrackPressed,
kThemeBottomTrackPressed = kThemeRightTrackPressed,
kThemeBottomInsideArrowPressed = kThemeRightInsideArrowPressed,
kThemeBottomOutsideArrowPressed = kThemeRightOutsideArrowPressed
};
typedef UInt8 ThemeTrackPressState;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Thumb directions */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
/* thumb direction */
kThemeThumbPlain = 0,
kThemeThumbUpward = 1,
kThemeThumbDownward = 2
};
typedef UInt8 ThemeThumbDirection;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Track attributes */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeTrackHorizontal = (1 << 0), /* track is drawn horizontally*/
kThemeTrackRightToLeft = (1 << 1), /* track progresses from right to left*/
kThemeTrackShowThumb = (1 << 2), /* track's thumb should be drawn*/
kThemeTrackThumbRgnIsNotGhost = (1 << 3), /* the provided thumbRgn should be drawn opaque, not as a ghost*/
kThemeTrackNoScrollBarArrows = (1 << 4) /* the scroll bar doesn't have arrows*/
};
typedef UInt16 ThemeTrackAttributes;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Track info block */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
struct ScrollBarTrackInfo {
SInt32 viewsize; /* current view range size */
ThemeTrackPressState pressState; /* pressed parts state */
};
typedef struct ScrollBarTrackInfo ScrollBarTrackInfo;
struct SliderTrackInfo {
ThemeThumbDirection thumbDir; /* thumb direction */
ThemeTrackPressState pressState; /* pressed parts state */
};
typedef struct SliderTrackInfo SliderTrackInfo;
struct ProgressTrackInfo {
UInt8 phase; /* phase for indeterminate progress */
};
typedef struct ProgressTrackInfo ProgressTrackInfo;
struct ThemeTrackDrawInfo {
ThemeTrackKind kind; /* what kind of track this info is for */
Rect bounds; /* track basis rectangle */
SInt32 min; /* min track value */
SInt32 max; /* max track value */
SInt32 value; /* current thumb value */
UInt32 reserved;
ThemeTrackAttributes attributes; /* various track attributes */
ThemeTrackEnableState enableState; /* enable state */
UInt8 filler1;
union {
ScrollBarTrackInfo scrollbar;
SliderTrackInfo slider;
ProgressTrackInfo progress;
} trackInfo;
};
typedef struct ThemeTrackDrawInfo ThemeTrackDrawInfo;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* ThemeWindowAttributes */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeWindowHasGrow = (1 << 0), /* can the size of the window be changed by the user? */
kThemeWindowHasHorizontalZoom = (1 << 3), /* window can zoom only horizontally */
kThemeWindowHasVerticalZoom = (1 << 4), /* window can zoom only vertically */
kThemeWindowHasFullZoom = kThemeWindowHasHorizontalZoom + kThemeWindowHasVerticalZoom, /* window zooms in all directions */
kThemeWindowHasCloseBox = (1 << 5), /* window has a close box */
kThemeWindowHasCollapseBox = (1 << 6), /* window has a collapse box */
kThemeWindowHasTitleText = (1 << 7), /* window has a title/title icon */
kThemeWindowIsCollapsed = (1 << 8), /* window is in the collapsed state */
kThemeWindowHasDirty = (1 << 9)
};
typedef UInt32 ThemeWindowAttributes;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Window Types Supported by the Appearance Manager */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeDocumentWindow = 0,
kThemeDialogWindow = 1,
kThemeMovableDialogWindow = 2,
kThemeAlertWindow = 3,
kThemeMovableAlertWindow = 4,
kThemePlainDialogWindow = 5,
kThemeShadowDialogWindow = 6,
kThemePopupWindow = 7,
kThemeUtilityWindow = 8,
kThemeUtilitySideWindow = 9,
kThemeSheetWindow = 10
};
typedef UInt16 ThemeWindowType;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Window Widgets Supported by the Appearance Manager */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeWidgetCloseBox = 0,
kThemeWidgetZoomBox = 1,
kThemeWidgetCollapseBox = 2,
kThemeWidgetDirtyCloseBox = 6
};
typedef UInt16 ThemeTitleBarWidget;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Popup arrow orientations */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeArrowLeft = 0,
kThemeArrowDown = 1,
kThemeArrowRight = 2,
kThemeArrowUp = 3
};
typedef UInt16 ThemeArrowOrientation;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Popup arrow sizes */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeArrow3pt = 0,
kThemeArrow5pt = 1,
kThemeArrow7pt = 2,
kThemeArrow9pt = 3
};
typedef UInt16 ThemePopupArrowSize;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Grow box directions */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeGrowLeft = (1 << 0), /* can grow to the left */
kThemeGrowRight = (1 << 1), /* can grow to the right */
kThemeGrowUp = (1 << 2), /* can grow up */
kThemeGrowDown = (1 << 3) /* can grow down */
};
typedef UInt16 ThemeGrowDirection;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Button kinds */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemePushButton = 0,
kThemeCheckBox = 1,
kThemeRadioButton = 2,
kThemeBevelButton = 3, /* bevel button (obsolete) */
kThemeArrowButton = 4, /* popup button without text (no label). See ThemeButtonAdornment for glyphs. */
kThemePopupButton = 5, /* popup button */
kThemeDisclosureButton = 6,
kThemeIncDecButton = 7, /* increment/decrement buttons (no label) */
kThemeSmallBevelButton = 8, /* small-shadow bevel button */
kThemeMediumBevelButton = 3, /* med-shadow bevel button */
kThemeLargeBevelButton = 9, /* large-shadow bevel button */
kThemeListHeaderButton = 10, /* sort button for top of list */
kThemeRoundButton = 11, /* round button */
kThemeLargeRoundButton = 12, /* large round button */
kThemeSmallCheckBox = 13, /* small checkbox */
kThemeSmallRadioButton = 14, /* small radio button */
kThemeRoundedBevelButton = 15, /* rounded bevel button */
kThemeNormalCheckBox = kThemeCheckBox,
kThemeNormalRadioButton = kThemeRadioButton
};
typedef UInt16 ThemeButtonKind;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Common button values */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeButtonOff = 0,
kThemeButtonOn = 1,
kThemeButtonMixed = 2,
kThemeDisclosureRight = 0,
kThemeDisclosureDown = 1,
kThemeDisclosureLeft = 2
};
typedef UInt16 ThemeButtonValue;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Button adornment types */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeAdornmentNone = 0,
kThemeAdornmentDefault = (1 << 0), /* if set, draw default ornamentation ( for push button and generic well ) */
kThemeAdornmentFocus = (1 << 2), /* if set, draw focus */
kThemeAdornmentRightToLeft = (1 << 4), /* if set, draw right to left label */
kThemeAdornmentDrawIndicatorOnly = (1 << 5), /* if set, don't draw or erase label ( radio, check, disclosure ) */
kThemeAdornmentHeaderButtonLeftNeighborSelected = (1 << 6), /* if set, draw the left border of the button as selected ( list header button only ) */
kThemeAdornmentHeaderButtonRightNeighborSelected = (1 << 7), /* if set, draw the right border of the button ( list header button only ) */
kThemeAdornmentHeaderButtonSortUp = (1 << 8), /* if set, draw the sort indicator pointing upward ( list header button only ) */
kThemeAdornmentHeaderMenuButton = (1 << 9), /* if set, draw as a header menu button ( list header button only ) */
kThemeAdornmentHeaderButtonNoShadow = (1 << 10), /* if set, draw the non-shadow area of the button ( list header button only ) */
kThemeAdornmentHeaderButtonShadowOnly = (1 << 11), /* if set, draw the only the shadow area of the button ( list header button only ) */
kThemeAdornmentNoShadow = kThemeAdornmentHeaderButtonNoShadow, /* old name */
kThemeAdornmentShadowOnly = kThemeAdornmentHeaderButtonShadowOnly, /* old name */
kThemeAdornmentArrowLeftArrow = (1 << 6), /* If set, draw a left arrow on the arrow button */
kThemeAdornmentArrowDownArrow = (1 << 7), /* If set, draw a down arrow on the arrow button */
kThemeAdornmentArrowDoubleArrow = (1 << 8), /* If set, draw a double arrow on the arrow button */
kThemeAdornmentArrowUpArrow = (1 << 9) /* If set, draw a up arrow on the arrow button */
};
typedef UInt16 ThemeButtonAdornment;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Button drawing info block */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
struct ThemeButtonDrawInfo {
ThemeDrawState state;
ThemeButtonValue value;
ThemeButtonAdornment adornment;
};
typedef struct ThemeButtonDrawInfo ThemeButtonDrawInfo;
typedef ThemeButtonDrawInfo * ThemeButtonDrawInfoPtr;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Sound Support */
/* */
/* X ALERT: Please note that none of the theme sound APIs currently function on X. */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Sound classes */
/* */
/* You can use the constants below to set what sounds are active using the SetTheme API. */
/* Use these with the kThemeSoundMask tag. */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeNoSounds = 0,
kThemeWindowSoundsMask = (1 << 0),
kThemeMenuSoundsMask = (1 << 1),
kThemeControlSoundsMask = (1 << 2),
kThemeFinderSoundsMask = (1 << 3)
};
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Drag Sounds */
/* */
/* Drag sounds are looped for the duration of the drag. */
/* */
/* Call BeginThemeDragSound at the start of the drag. */
/* Call EndThemeDragSound when the drag has finished. */
/* */
/* Note that in order to maintain a consistent user experience, only one drag sound may */
/* occur at a time. The sound should be attached to a mouse action, start after the */
/* mouse goes down and stop when the mouse is released. */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeDragSoundNone = 0,
kThemeDragSoundMoveWindow = FOUR_CHAR_CODE('wmov'),
kThemeDragSoundGrowWindow = FOUR_CHAR_CODE('wgro'),
kThemeDragSoundMoveUtilWindow = FOUR_CHAR_CODE('umov'),
kThemeDragSoundGrowUtilWindow = FOUR_CHAR_CODE('ugro'),
kThemeDragSoundMoveDialog = FOUR_CHAR_CODE('dmov'),
kThemeDragSoundMoveAlert = FOUR_CHAR_CODE('amov'),
kThemeDragSoundMoveIcon = FOUR_CHAR_CODE('imov'),
kThemeDragSoundSliderThumb = FOUR_CHAR_CODE('slth'),
kThemeDragSoundSliderGhost = FOUR_CHAR_CODE('slgh'),
kThemeDragSoundScrollBarThumb = FOUR_CHAR_CODE('sbth'),
kThemeDragSoundScrollBarGhost = FOUR_CHAR_CODE('sbgh'),
kThemeDragSoundScrollBarArrowDecreasing = FOUR_CHAR_CODE('sbad'),
kThemeDragSoundScrollBarArrowIncreasing = FOUR_CHAR_CODE('sbai'),
kThemeDragSoundDragging = FOUR_CHAR_CODE('drag')
};
typedef OSType ThemeDragSoundKind;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* State-change sounds */
/* */
/* State-change sounds are played asynchonously as a one-shot. */
/* */
/* Call PlayThemeSound to play the sound. The sound will play */
/* asynchronously until complete, then stop automatically. */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
enum {
kThemeSoundNone = 0,
kThemeSoundMenuOpen = FOUR_CHAR_CODE('mnuo'), /* menu sounds */
kThemeSoundMenuClose = FOUR_CHAR_CODE('mnuc'),
kThemeSoundMenuItemHilite = FOUR_CHAR_CODE('mnui'),
kThemeSoundMenuItemRelease = FOUR_CHAR_CODE('mnus'),
kThemeSoundWindowClosePress = FOUR_CHAR_CODE('wclp'), /* window sounds */
kThemeSoundWindowCloseEnter = FOUR_CHAR_CODE('wcle'),
kThemeSoundWindowCloseExit = FOUR_CHAR_CODE('wclx'),
kThemeSoundWindowCloseRelease = FOUR_CHAR_CODE('wclr'),
kThemeSoundWindowZoomPress = FOUR_CHAR_CODE('wzmp'),
kThemeSoundWindowZoomEnter = FOUR_CHAR_CODE('wzme'),
kThemeSoundWindowZoomExit = FOUR_CHAR_CODE('wzmx'),
kThemeSoundWindowZoomRelease = FOUR_CHAR_CODE('wzmr'),
kThemeSoundWindowCollapsePress = FOUR_CHAR_CODE('wcop'),
kThemeSoundWindowCollapseEnter = FOUR_CHAR_CODE('wcoe'),
kThemeSoundWindowCollapseExit = FOUR_CHAR_CODE('wcox'),
kThemeSoundWindowCollapseRelease = FOUR_CHAR_CODE('wcor'),
kThemeSoundWindowDragBoundary = FOUR_CHAR_CODE('wdbd'),
kThemeSoundUtilWinClosePress = FOUR_CHAR_CODE('uclp'), /* utility window sounds */
kThemeSoundUtilWinCloseEnter = FOUR_CHAR_CODE('ucle'),
kThemeSoundUtilWinCloseExit = FOUR_CHAR_CODE('uclx'),
kThemeSoundUtilWinCloseRelease = FOUR_CHAR_CODE('uclr'),
kThemeSoundUtilWinZoomPress = FOUR_CHAR_CODE('uzmp'),
kThemeSoundUtilWinZoomEnter = FOUR_CHAR_CODE('uzme'),
kThemeSoundUtilWinZoomExit = FOUR_CHAR_CODE('uzmx'),
kThemeSoundUtilWinZoomRelease = FOUR_CHAR_CODE('uzmr'),
kThemeSoundUtilWinCollapsePress = FOUR_CHAR_CODE('ucop'),
kThemeSoundUtilWinCollapseEnter = FOUR_CHAR_CODE('ucoe'),
kThemeSoundUtilWinCollapseExit = FOUR_CHAR_CODE('ucox'),
kThemeSoundUtilWinCollapseRelease = FOUR_CHAR_CODE('ucor'),
kThemeSoundUtilWinDragBoundary = FOUR_CHAR_CODE('udbd'),
kThemeSoundWindowOpen = FOUR_CHAR_CODE('wopn'), /* window close and zoom action */
kThemeSoundWindowClose = FOUR_CHAR_CODE('wcls'),
kThemeSoundWindowZoomIn = FOUR_CHAR_CODE('wzmi'),
kThemeSoundWindowZoomOut = FOUR_CHAR_CODE('wzmo'),
kThemeSoundWindowCollapseUp = FOUR_CHAR_CODE('wcol'),
kThemeSoundWindowCollapseDown = FOUR_CHAR_CODE('wexp'),
kThemeSoundWindowActivate = FOUR_CHAR_CODE('wact'),
kThemeSoundUtilWindowOpen = FOUR_CHAR_CODE('uopn'),
kThemeSoundUtilWindowClose = FOUR_CHAR_CODE('ucls'),
kThemeSoundUtilWindowZoomIn = FOUR_CHAR_CODE('uzmi'),
kThemeSoundUtilWindowZoomOut = FOUR_CHAR_CODE('uzmo'),
kThemeSoundUtilWindowCollapseUp = FOUR_CHAR_CODE('ucol'),
kThemeSoundUtilWindowCollapseDown = FOUR_CHAR_CODE('uexp'),
kThemeSoundUtilWindowActivate = FOUR_CHAR_CODE('uact'),
kThemeSoundDialogOpen = FOUR_CHAR_CODE('dopn'),
kThemeSoundDialogClose = FOUR_CHAR_CODE('dlgc'),
kThemeSoundAlertOpen = FOUR_CHAR_CODE('aopn'),
kThemeSoundAlertClose = FOUR_CHAR_CODE('altc'),
kThemeSoundPopupWindowOpen = FOUR_CHAR_CODE('pwop'),
kThemeSoundPopupWindowClose = FOUR_CHAR_CODE('pwcl'),
kThemeSoundButtonPress = FOUR_CHAR_CODE('btnp'), /* button */
kThemeSoundButtonEnter = FOUR_CHAR_CODE('btne'),
kThemeSoundButtonExit = FOUR_CHAR_CODE('btnx'),
kThemeSoundButtonRelease = FOUR_CHAR_CODE('btnr'),
kThemeSoundDefaultButtonPress = FOUR_CHAR_CODE('dbtp'), /* default button */
kThemeSoundDefaultButtonEnter = FOUR_CHAR_CODE('dbte'),
kThemeSoundDefaultButtonExit = FOUR_CHAR_CODE('dbtx'),
kThemeSoundDefaultButtonRelease = FOUR_CHAR_CODE('dbtr'),
kThemeSoundCancelButtonPress = FOUR_CHAR_CODE('cbtp'), /* cancel button */
kThemeSoundCancelButtonEnter = FOUR_CHAR_CODE('cbte'),
kThemeSoundCancelButtonExit = FOUR_CHAR_CODE('cbtx'),
kThemeSoundCancelButtonRelease = FOUR_CHAR_CODE('cbtr'),
kThemeSoundCheckboxPress = FOUR_CHAR_CODE('chkp'), /* checkboxes */
kThemeSoundCheckboxEnter = FOUR_CHAR_CODE('chke'),
kThemeSoundCheckboxExit = FOUR_CHAR_CODE('chkx'),
kThemeSoundCheckboxRelease = FOUR_CHAR_CODE('chkr'),
kThemeSoundRadioPress = FOUR_CHAR_CODE('radp'), /* radio buttons */
kThemeSoundRadioEnter = FOUR_CHAR_CODE('rade'),
kThemeSoundRadioExit = FOUR_CHAR_CODE('radx'),
kThemeSoundRadioRelease = FOUR_CHAR_CODE('radr'),
kThemeSoundScrollArrowPress = FOUR_CHAR_CODE('sbap'), /* scroll bars */
kThemeSoundScrollArrowEnter = FOUR_CHAR_CODE('sbae'),
kThemeSoundScrollArrowExit = FOUR_CHAR_CODE('sbax'),
kThemeSoundScrollArrowRelease = FOUR_CHAR_CODE('sbar'),
kThemeSoundScrollEndOfTrack = FOUR_CHAR_CODE('sbte'),
kThemeSoundScrollTrackPress = FOUR_CHAR_CODE('sbtp'),
kThemeSoundSliderEndOfTrack = FOUR_CHAR_CODE('slte'), /* sliders */
kThemeSoundSliderTrackPress = FOUR_CHAR_CODE('sltp'),
kThemeSoundBalloonOpen = FOUR_CHAR_CODE('blno'), /* help balloons */
kThemeSoundBalloonClose = FOUR_CHAR_CODE('blnc'),
kThemeSoundBevelPress = FOUR_CHAR_CODE('bevp'), /* Bevel buttons */
kThemeSoundBevelEnter = FOUR_CHAR_CODE('beve'),
kThemeSoundBevelExit = FOUR_CHAR_CODE('bevx'),
kThemeSoundBevelRelease = FOUR_CHAR_CODE('bevr'),
kThemeSoundLittleArrowUpPress = FOUR_CHAR_CODE('laup'), /* Little Arrows */
kThemeSoundLittleArrowDnPress = FOUR_CHAR_CODE('ladp'),
kThemeSoundLittleArrowEnter = FOUR_CHAR_CODE('lare'),
kThemeSoundLittleArrowExit = FOUR_CHAR_CODE('larx'),
kThemeSoundLittleArrowUpRelease = FOUR_CHAR_CODE('laur'),
kThemeSoundLittleArrowDnRelease = FOUR_CHAR_CODE('ladr'),
kThemeSoundPopupPress = FOUR_CHAR_CODE('popp'), /* Popup Buttons */
kThemeSoundPopupEnter = FOUR_CHAR_CODE('pope'),
kThemeSoundPopupExit = FOUR_CHAR_CODE('popx'),
kThemeSoundPopupRelease = FOUR_CHAR_CODE('popr'),
kThemeSoundDisclosurePress = FOUR_CHAR_CODE('dscp'), /* Disclosure Buttons */
kThemeSoundDisclosureEnter = FOUR_CHAR_CODE('dsce'),
kThemeSoundDisclosureExit = FOUR_CHAR_CODE('dscx'),
kThemeSoundDisclosureRelease = FOUR_CHAR_CODE('dscr'),
kThemeSoundTabPressed = FOUR_CHAR_CODE('tabp'), /* Tabs */
kThemeSoundTabEnter = FOUR_CHAR_CODE('tabe'),
kThemeSoundTabExit = FOUR_CHAR_CODE('tabx'),
kThemeSoundTabRelease = FOUR_CHAR_CODE('tabr'),
kThemeSoundDragTargetHilite = FOUR_CHAR_CODE('dthi'), /* drag manager */
kThemeSoundDragTargetUnhilite = FOUR_CHAR_CODE('dtuh'),
kThemeSoundDragTargetDrop = FOUR_CHAR_CODE('dtdr'),
kThemeSoundEmptyTrash = FOUR_CHAR_CODE('ftrs'), /* finder */
kThemeSoundSelectItem = FOUR_CHAR_CODE('fsel'),
kThemeSoundNewItem = FOUR_CHAR_CODE('fnew'),
kThemeSoundReceiveDrop = FOUR_CHAR_CODE('fdrp'),
kThemeSoundCopyDone = FOUR_CHAR_CODE('fcpd'),
kThemeSoundResolveAlias = FOUR_CHAR_CODE('fral'),
kThemeSoundLaunchApp = FOUR_CHAR_CODE('flap'),
kThemeSoundDiskInsert = FOUR_CHAR_CODE('dski'),
kThemeSoundDiskEject = FOUR_CHAR_CODE('dske'),
kThemeSoundFinderDragOnIcon = FOUR_CHAR_CODE('fdon'),
kThemeSoundFinderDragOffIcon = FOUR_CHAR_CODE('fdof')
};
typedef OSType ThemeSoundKind;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Window Metrics */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Window metrics are used by the Appearance manager to fill in the blanks necessary to */
/* draw windows. If a value is not appropriate for the type of window, be sure to fill in */
/* the slot in the structure with zero. For the popupTabOffset parameter, you can pass a*/
/* real value based on the left edge of the window. This value might be interpreted in a */
/* different manner when depending on the value of the popupTabPosition field. The values */
/* you can pass into popupTabPosition are: */
/* */
/* kThemePopupTabNormalPosition */
/* Starts the tab left edge at the position indicated by the popupTabOffset field. */
/* */
/* kThemePopupTabCenterOnWindow */
/* tells us to ignore the offset field and instead simply center the width of the */
/* handle on the window. */
/* */
/* kThemePopupTabCenterOnOffset */
/* tells us to center the width of the handle around the value passed in offset. */
/* */
/* The Appearance Manager will try its best to accomodate the requested placement, but may */
/* move the handle slightly to make it fit correctly. */
/* */
enum {
kThemePopupTabNormalPosition = 0,
kThemePopupTabCenterOnWindow = 1,
kThemePopupTabCenterOnOffset = 2
};
struct ThemeWindowMetrics {
UInt16 metricSize; /* should be always be sizeof( ThemeWindowMetrics )*/
SInt16 titleHeight;
SInt16 titleWidth;
SInt16 popupTabOffset;
SInt16 popupTabWidth;
UInt16 popupTabPosition;
};
typedef struct ThemeWindowMetrics ThemeWindowMetrics;
typedef ThemeWindowMetrics * ThemeWindowMetricsPtr;
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme Metrics */
/*ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ*/
/* Theme metrics allow you to find out sizes of things in the current environment, such as */
/* how wide a scroll bar is, etc. */
enum {
kThemeMetricScrollBarWidth = 0,
kThemeMetricSmallScrollBarWidth = 1,
kThemeMetricCheckBoxHeight = 2,
kThemeMetricRadioButtonHeight = 3,
kThemeMetricEditTextWhitespace = 4,
kThemeMetricEditTextFrameOutset = 5,
kThemeMetricListBoxFrameOutset = 6,
kThemeMetricFocusRectOutset = 7,
kThemeMetricImageWellThickness = 8,
kThemeMetricScrollBarOverlap = 9,
kThemeMetricLargeTabHeight = 10,
kThemeMetricLargeTabCapsWidth = 11,
kThemeMetricTabFrameOverlap = 12,
kThemeMetricTabIndentOrStyle = 13,
kThemeMetricTabOverlap = 14,
kThemeMetricSmallTabHeight = 15,
kThemeMetricSmallTabCapsWidth = 16,
kThemeMetricDisclosureButtonHeight = 17,
kThemeMetricRoundButtonSize = 18,
kThemeMetricPushButtonHeight = 19,
kThemeMetricListHeaderHeight = 20,
kThemeMetricSmallCheckBoxHeight = 21,
kThemeMetricDisclosureButtonWidth = 22,
kThemeMetricSmallDisclosureButtonHeight = 23,
kThemeMetricSmallDisclosureButtonWidth = 24,
kThemeMetricDisclosureTriangleHeight = 25,
kThemeMetricDisclosureTriangleWidth = 26,
kThemeMetricLittleArrowsHeight = 27,
kThemeMetricLittleArrowsWidth = 28,
kThemeMetricPaneSplitterHeight = 29,
kThemeMetricPopupButtonHeight = 30,
kThemeMetricSmallPopupButtonHeight = 31,
kThemeMetricLargeProgressBarThickness = 32,
kThemeMetricPullDownHeight = 33,
kThemeMetricSmallPullDownHeight = 34,
kThemeMetricSmallPushButtonHeight = 35,
kThemeMetricSmallRadioButtonHeight = 36,
kThemeMetricRelevanceIndicatorHeight = 37,
kThemeMetricResizeControlHeight = 38,
kThemeMetricSmallResizeControlHeight = 39,
kThemeMetricLargeRoundButtonSize = 40,
kThemeMetricHSliderHeight = 41,
kThemeMetricHSliderTickHeight = 42,
kThemeMetricSmallHSliderHeight = 43,