Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/OS.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | 2e671fa40eec |
children | 38807a925e24 |
comparison
equal
deleted
inserted
replaced
122:2e671fa40eec | 123:63a09873578e |
---|---|
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 *******************************************************************************/ | 10 *******************************************************************************/ |
11 module dwt.internal.cocoa.OS; | 11 module dwt.internal.cocoa.OS; |
12 | 12 |
13 // CFString.h | 13 // These enums need to be up here otherwise they'll cause forward reference errors |
14 enum CFStringEncoding // CFStringBuiltInEncodings | |
15 { | |
16 kCFStringEncodingMacRoman = 0, | |
17 kCFStringEncodingWindowsLatin1 = 0x0500, | |
18 kCFStringEncodingISOLatin1 = 0x0201, | |
19 kCFStringEncodingNextStepLatin = 0x0B01, | |
20 kCFStringEncodingASCII = 0x0600, | |
21 kCFStringEncodingUnicode = 0x0100, | |
22 kCFStringEncodingUTF8 = 0x08000100, | |
23 kCFStringEncodingNonLossyASCII = 0x0BFF, | |
24 | |
25 kCFStringEncodingUTF16 = 0x0100, | |
26 kCFStringEncodingUTF16BE = 0x10000100, | |
27 kCFStringEncodingUTF16LE = 0x14000100, | |
28 kCFStringEncodingUTF32 = 0x0c000100, | |
29 kCFStringEncodingUTF32BE = 0x18000100, | |
30 kCFStringEncodingUTF32LE = 0x1c000100 | |
31 } | |
32 | |
33 // NSScroller.h | 14 // NSScroller.h |
34 enum NSScrollerPart | 15 enum NSScrollerPart |
35 { | 16 { |
36 NSScrollerNoPart = 0, | 17 NSScrollerNoPart = 0, |
37 NSScrollerDecrementPage = 1, | 18 NSScrollerDecrementPage = 1, |
47 { | 28 { |
48 NSNoBorder = 0, | 29 NSNoBorder = 0, |
49 NSLineBorder = 1, | 30 NSLineBorder = 1, |
50 NSBezelBorder = 2, | 31 NSBezelBorder = 2, |
51 NSGrooveBorder = 3 | 32 NSGrooveBorder = 3 |
52 } | |
53 | |
54 enum NSSearchPathDirectory | |
55 { | |
56 NSApplicationDirectory = 1, | |
57 NSDemoApplicationDirectory, | |
58 NSDeveloperApplicationDirectory, | |
59 NSAdminApplicationDirectory, | |
60 NSLibraryDirectory, | |
61 NSDeveloperDirectory, | |
62 NSUserDirectory, | |
63 NSDocumentationDirectory, | |
64 NSDocumentDirectory, | |
65 NSCoreServiceDirectory, | |
66 NSDesktopDirectory = 12, | |
67 NSCachesDirectory = 13, | |
68 NSApplicationSupportDirectory = 14, | |
69 NSDownloadsDirectory = 15, | |
70 NSAllApplicationsDirectory = 100, | |
71 NSAllLibrariesDirectory = 101 | |
72 } | |
73 | |
74 enum NSSearchPathDomainMask | |
75 { | |
76 NSUserDomainMask = 1, | |
77 NSLocalDomainMask = 2, | |
78 NSNetworkDomainMask = 4, | |
79 NSSystemDomainMask = 8, | |
80 NSAllDomainsMask = 0x0ffff, | |
81 } | 33 } |
82 | 34 |
83 import dwt.dwthelper.utils; | 35 import dwt.dwthelper.utils; |
84 | 36 |
85 import dwt.internal.C; | 37 import dwt.internal.C; |
99 import dwt.internal.cocoa.NSBezierPath; | 51 import dwt.internal.cocoa.NSBezierPath; |
100 import dwt.internal.cocoa.NSBitmapImageRep; | 52 import dwt.internal.cocoa.NSBitmapImageRep; |
101 import dwt.internal.cocoa.NSBox; | 53 import dwt.internal.cocoa.NSBox; |
102 import dwt.internal.cocoa.NSButtonCell; | 54 import dwt.internal.cocoa.NSButtonCell; |
103 import dwt.internal.cocoa.NSCell; | 55 import dwt.internal.cocoa.NSCell; |
104 import dwt.internal.cocoa.NSDatePicker; | |
105 import dwt.internal.cocoa.NSEvent; | 56 import dwt.internal.cocoa.NSEvent; |
106 import dwt.internal.cocoa.NSGradient; | 57 import dwt.internal.cocoa.NSGradient; |
107 import dwt.internal.cocoa.NSGraphicsContext; | 58 import dwt.internal.cocoa.NSGraphicsContext; |
108 import dwt.internal.cocoa.NSImage; | 59 import dwt.internal.cocoa.NSImage; |
109 import dwt.internal.cocoa.NSNumberFormatter; | 60 import dwt.internal.cocoa.NSImageCell; |
110 import dwt.internal.cocoa.NSParagraphStyle; | 61 import dwt.internal.cocoa.NSParagraphStyle; |
111 import dwt.internal.cocoa.NSPoint; | 62 import dwt.internal.cocoa.NSPoint; |
112 import dwt.internal.cocoa.NSPrintPanel; | |
113 import dwt.internal.cocoa.NSRange; | 63 import dwt.internal.cocoa.NSRange; |
114 import dwt.internal.cocoa.NSRect; | 64 import dwt.internal.cocoa.NSRect; |
115 import dwt.internal.cocoa.NSScrollView; | 65 import dwt.internal.cocoa.NSScrollView; |
116 import dwt.internal.cocoa.NSScroller; | 66 import dwt.internal.cocoa.NSScroller; |
117 import dwt.internal.cocoa.NSSize; | 67 import dwt.internal.cocoa.NSSize; |
118 import dwt.internal.cocoa.NSString; | 68 import dwt.internal.cocoa.NSString; |
119 import dwt.internal.cocoa.NSTabView; | |
120 import dwt.internal.cocoa.NSTableView; | |
121 import dwt.internal.cocoa.NSText; | 69 import dwt.internal.cocoa.NSText; |
122 import dwt.internal.cocoa.NSView; | 70 import dwt.internal.cocoa.NSView; |
123 import NSWindowTypes = dwt.internal.cocoa.NSWindow; | 71 import NSWindowTypes = dwt.internal.cocoa.NSWindow; |
124 import Cocoa = dwt.internal.objc.cocoa.Cocoa; | 72 import Cocoa = dwt.internal.objc.cocoa.Cocoa; |
125 import objc = dwt.internal.objc.runtime; | 73 import objc = dwt.internal.objc.runtime; |
2749 public static const Cocoa.NSInteger NSAlertThirdButtonReturn = 1002; | 2697 public static const Cocoa.NSInteger NSAlertThirdButtonReturn = 1002; |
2750 public static const int NSAllScrollerParts = 2; | 2698 public static const int NSAllScrollerParts = 2; |
2751 alias Cocoa.NSBitmapFormat.NSAlphaFirstBitmapFormat NSAlphaFirstBitmapFormat; | 2699 alias Cocoa.NSBitmapFormat.NSAlphaFirstBitmapFormat NSAlphaFirstBitmapFormat; |
2752 alias Cocoa.NSBitmapFormat.NSAlphaNonpremultipliedBitmapFormat NSAlphaNonpremultipliedBitmapFormat; | 2700 alias Cocoa.NSBitmapFormat.NSAlphaNonpremultipliedBitmapFormat NSAlphaNonpremultipliedBitmapFormat; |
2753 public static const int NSAlphaShiftKeyMask = 65536; | 2701 public static const int NSAlphaShiftKeyMask = 65536; |
2754 public static const Cocoa.NSUInteger NSAlternateKeyMask = 524288; | 2702 public static const int NSAlternateKeyMask = 524288; |
2755 public static const int NSAnimationBlocking = 0; | 2703 public static const int NSAnimationBlocking = 0; |
2756 public static const int NSAnimationEaseIn = 1; | 2704 public static const int NSAnimationEaseIn = 1; |
2757 public static const int NSAnimationEaseInOut = 0; | 2705 public static const int NSAnimationEaseInOut = 0; |
2758 public static const int NSAnimationEaseOut = 2; | 2706 public static const int NSAnimationEaseOut = 2; |
2759 public static const int NSAnimationEffectDisappearingItemDefault = 0; | 2707 public static const int NSAnimationEffectDisappearingItemDefault = 0; |
2813 alias Cocoa.NSLineJoinStyle.NSBevelLineJoinStyle NSBevelLineJoinStyle; | 2761 alias Cocoa.NSLineJoinStyle.NSBevelLineJoinStyle NSBevelLineJoinStyle; |
2814 alias NSBorderType.NSBezelBorder NSBezelBorder; | 2762 alias NSBorderType.NSBezelBorder NSBezelBorder; |
2815 public static const int NSBlueControlTint = 1; | 2763 public static const int NSBlueControlTint = 1; |
2816 public static const int NSBoldFontMask = 2; | 2764 public static const int NSBoldFontMask = 2; |
2817 alias Cocoa.NSBorderlessWindowMask NSBorderlessWindowMask; | 2765 alias Cocoa.NSBorderlessWindowMask NSBorderlessWindowMask; |
2818 alias NSTabViewType.NSBottomTabsBezelBorder NSBottomTabsBezelBorder; | 2766 alias Cocoa.NSTabViewType.NSBottomTabsBezelBorder NSBottomTabsBezelBorder; |
2819 public static const int NSBoxCustom = 4; | 2767 public static const int NSBoxCustom = 4; |
2820 public static const int NSBoxOldStyle = 3; | 2768 public static const int NSBoxOldStyle = 3; |
2821 public static const int NSBoxPrimary = 0; | 2769 public static const int NSBoxPrimary = 0; |
2822 public static const int NSBoxSecondary = 1; | 2770 public static const int NSBoxSecondary = 1; |
2823 public static const NSBoxType NSBoxSeparator = 2; | 2771 public static const int NSBoxSeparator = 2; |
2824 public static const int NSBreakFunctionKey = 63282; | 2772 public static const int NSBreakFunctionKey = 63282; |
2825 public static const int NSBrowserAutoColumnResizing = 1; | 2773 public static const int NSBrowserAutoColumnResizing = 1; |
2826 public static const int NSBrowserDropAbove = 1; | 2774 public static const int NSBrowserDropAbove = 1; |
2827 public static const int NSBrowserDropOn = 0; | 2775 public static const int NSBrowserDropOn = 0; |
2828 public static const int NSBrowserNoColumnResizing = 0; | 2776 public static const int NSBrowserNoColumnResizing = 0; |
2867 public static const int NSCircularSlider = 1; | 2815 public static const int NSCircularSlider = 1; |
2868 public static const int NSClearControlTint = 7; | 2816 public static const int NSClearControlTint = 7; |
2869 public static const int NSClearDisplayFunctionKey = 63290; | 2817 public static const int NSClearDisplayFunctionKey = 63290; |
2870 public static const int NSClearLineFunctionKey = 63289; | 2818 public static const int NSClearLineFunctionKey = 63289; |
2871 public static const int NSClipPagination = 2; | 2819 public static const int NSClipPagination = 2; |
2872 alias NSDatePickerStyle.NSClockAndCalendarDatePickerStyle NSClockAndCalendarDatePickerStyle; | 2820 alias Cocoa.NSDatePickerStyle.NSClockAndCalendarDatePickerStyle NSClockAndCalendarDatePickerStyle; |
2873 public static const int NSClosableWindowMask = 2; | 2821 public static const int NSClosableWindowMask = 2; |
2874 alias Cocoa.NSBezierPathElement.NSClosePathBezierPathElement NSClosePathBezierPathElement; | 2822 alias Cocoa.NSBezierPathElement.NSClosePathBezierPathElement NSClosePathBezierPathElement; |
2875 public static const int NSColorListModeColorPanel = 5; | 2823 public static const int NSColorListModeColorPanel = 5; |
2876 public static const int NSColorPanelAllModesMask = 65535; | 2824 public static const int NSColorPanelAllModesMask = 65535; |
2877 public static const int NSColorPanelCMYKModeMask = 4; | 2825 public static const int NSColorPanelCMYKModeMask = 4; |
2885 public static const int NSColorRenderingIntentAbsoluteColorimetric = 1; | 2833 public static const int NSColorRenderingIntentAbsoluteColorimetric = 1; |
2886 public static const int NSColorRenderingIntentDefault = 0; | 2834 public static const int NSColorRenderingIntentDefault = 0; |
2887 public static const int NSColorRenderingIntentPerceptual = 3; | 2835 public static const int NSColorRenderingIntentPerceptual = 3; |
2888 public static const int NSColorRenderingIntentRelativeColorimetric = 2; | 2836 public static const int NSColorRenderingIntentRelativeColorimetric = 2; |
2889 public static const int NSColorRenderingIntentSaturation = 4; | 2837 public static const int NSColorRenderingIntentSaturation = 4; |
2890 public static const Cocoa.NSUInteger NSCommandKeyMask = 1048576; | 2838 public static const int NSCommandKeyMask = 1048576; |
2891 alias Cocoa.NSCompositingOperation.NSCompositeClear NSCompositeClear; | 2839 alias Cocoa.NSCompositingOperation.NSCompositeClear NSCompositeClear; |
2892 public static const int NSCompositeCopy = 1; | 2840 public static const int NSCompositeCopy = 1; |
2893 public static const int NSCompositeDestinationAtop = 9; | 2841 public static const int NSCompositeDestinationAtop = 9; |
2894 public static const int NSCompositeDestinationIn = 7; | 2842 public static const int NSCompositeDestinationIn = 7; |
2895 public static const int NSCompositeDestinationOut = 8; | 2843 public static const int NSCompositeDestinationOut = 8; |
2905 public static const int NSCompressedFontMask = 512; | 2853 public static const int NSCompressedFontMask = 512; |
2906 public static const int NSCondensedFontMask = 64; | 2854 public static const int NSCondensedFontMask = 64; |
2907 public static const int NSContentsCellMask = 1; | 2855 public static const int NSContentsCellMask = 1; |
2908 public static const int NSContinuousCapacityLevelIndicatorStyle = 1; | 2856 public static const int NSContinuousCapacityLevelIndicatorStyle = 1; |
2909 public static const int NSControlGlyph = 16777215; | 2857 public static const int NSControlGlyph = 16777215; |
2910 public static const Cocoa.NSUInteger NSControlKeyMask = 262144; | 2858 public static const int NSControlKeyMask = 262144; |
2911 public static const int NSCrayonModeColorPanel = 7; | 2859 public static const int NSCrayonModeColorPanel = 7; |
2912 alias Cocoa.NSAlertStyle.NSCriticalAlertStyle NSCriticalAlertStyle; | 2860 alias Cocoa.NSAlertStyle.NSCriticalAlertStyle NSCriticalAlertStyle; |
2913 public static const int NSCriticalRequest = 0; | 2861 public static const int NSCriticalRequest = 0; |
2914 public static const int NSCursorPointingDevice = 2; | 2862 public static const int NSCursorPointingDevice = 2; |
2915 alias Cocoa.NSEventType.NSCursorUpdate NSCursorUpdate; | 2863 alias Cocoa.NSEventType.NSCursorUpdate NSCursorUpdate; |
2931 public static const int NSDiscreteCapacityLevelIndicatorStyle = 2; | 2879 public static const int NSDiscreteCapacityLevelIndicatorStyle = 2; |
2932 public static const int NSDisplayWindowRunLoopOrdering = 600000; | 2880 public static const int NSDisplayWindowRunLoopOrdering = 600000; |
2933 public static const int NSDocModalWindowMask = 64; | 2881 public static const int NSDocModalWindowMask = 64; |
2934 public static const int NSDockWindowLevel = 20; | 2882 public static const int NSDockWindowLevel = 20; |
2935 public static const int NSDoubleType = 6; | 2883 public static const int NSDoubleType = 6; |
2936 public static const wchar NSDownArrowFunctionKey = 63233; | 2884 public static const int NSDownArrowFunctionKey = 63233; |
2937 public static const int NSDownTextMovement = 22; | 2885 public static const int NSDownTextMovement = 22; |
2938 alias Cocoa.NSDragOperation.NSDragOperationAll_Obsolete NSDragOperationAll; | 2886 public static const int NSDragOperationAll = 15; |
2939 alias Cocoa.NSDragOperation.NSDragOperationAll_Obsolete NSDragOperationAll_Obsolete; | 2887 public static const int NSDragOperationAll_Obsolete = 15; |
2940 alias Cocoa.NSDragOperation.NSDragOperationCopy NSDragOperationCopy; | 2888 public static const int NSDragOperationCopy = 1; |
2941 alias Cocoa.NSDragOperation.NSDragOperationDelete NSDragOperationDelete; | 2889 public static const int NSDragOperationDelete = 32; |
2942 alias Cocoa.NSDragOperation.NSDragOperationEvery NSDragOperationEvery; | 2890 public static const int NSDragOperationEvery = -1; |
2943 alias Cocoa.NSDragOperation.NSDragOperationGeneric NSDragOperationGeneric; | 2891 public static const int NSDragOperationGeneric = 4; |
2944 alias Cocoa.NSDragOperation.NSDragOperationLink NSDragOperationLink; | 2892 public static const int NSDragOperationLink = 2; |
2945 alias Cocoa.NSDragOperation.NSDragOperationMove NSDragOperationMove; | 2893 public static const int NSDragOperationMove = 16; |
2946 alias Cocoa.NSDragOperation.NSDragOperationNone NSDragOperationNone; | 2894 public static const int NSDragOperationNone = 0; |
2947 alias Cocoa.NSDragOperation.NSDragOperationPrivate NSDragOperationPrivate; | 2895 public static const int NSDragOperationPrivate = 8; |
2948 public static const int NSDrawerClosedState = 0; | 2896 public static const int NSDrawerClosedState = 0; |
2949 public static const int NSDrawerClosingState = 3; | 2897 public static const int NSDrawerClosingState = 3; |
2950 public static const int NSDrawerOpenState = 2; | 2898 public static const int NSDrawerOpenState = 2; |
2951 public static const int NSDrawerOpeningState = 1; | 2899 public static const int NSDrawerOpeningState = 1; |
2952 public static const int NSEndFunctionKey = 63275; | 2900 public static const int NSEndFunctionKey = 63275; |
2953 public static const wchar NSEnterCharacter = 3; | 2901 public static const int NSEnterCharacter = 3; |
2954 public static const int NSEraDatePickerElementFlag = 256; | 2902 public static const int NSEraDatePickerElementFlag = 256; |
2955 public static const int NSEraserPointingDevice = 3; | 2903 public static const int NSEraserPointingDevice = 3; |
2956 alias Cocoa.NSWindingRule.NSEvenOddWindingRule NSEvenOddWindingRule; | 2904 alias Cocoa.NSWindingRule.NSEvenOddWindingRule NSEvenOddWindingRule; |
2957 public static const int NSExclude10_4ElementsIconCreationOption = 4; | 2905 public static const int NSExclude10_4ElementsIconCreationOption = 4; |
2958 public static const int NSExcludeQuickDrawElementsIconCreationOption = 2; | 2906 public static const int NSExcludeQuickDrawElementsIconCreationOption = 2; |
2999 public static const int NSFPRevertButton = 130; | 2947 public static const int NSFPRevertButton = 130; |
3000 public static const int NSFPSetButton = 132; | 2948 public static const int NSFPSetButton = 132; |
3001 public static const int NSFPSizeField = 129; | 2949 public static const int NSFPSizeField = 129; |
3002 public static const int NSFPSizeTitle = 133; | 2950 public static const int NSFPSizeTitle = 133; |
3003 public static const int NSFileHandlingPanelCancelButton = 0; | 2951 public static const int NSFileHandlingPanelCancelButton = 0; |
3004 public static const Cocoa.NSInteger NSFileHandlingPanelOKButton = 1; | 2952 public static const int NSFileHandlingPanelOKButton = 1; |
3005 public static const int NSFindFunctionKey = 63301; | 2953 public static const int NSFindFunctionKey = 63301; |
3006 public static const int NSFindPanelActionNext = 2; | 2954 public static const int NSFindPanelActionNext = 2; |
3007 public static const int NSFindPanelActionPrevious = 3; | 2955 public static const int NSFindPanelActionPrevious = 3; |
3008 public static const int NSFindPanelActionReplace = 5; | 2956 public static const int NSFindPanelActionReplace = 5; |
3009 public static const int NSFindPanelActionReplaceAll = 4; | 2957 public static const int NSFindPanelActionReplaceAll = 4; |
3095 public static const int NSHelpFunctionKey = 63302; | 3043 public static const int NSHelpFunctionKey = 63302; |
3096 public static const int NSHelpKeyMask = 4194304; | 3044 public static const int NSHelpKeyMask = 4194304; |
3097 public static const int NSHighlightModeMatrix = 1; | 3045 public static const int NSHighlightModeMatrix = 1; |
3098 public static const int NSHomeFunctionKey = 63273; | 3046 public static const int NSHomeFunctionKey = 63273; |
3099 public static const int NSHorizontalRuler = 0; | 3047 public static const int NSHorizontalRuler = 0; |
3100 alias NSDatePickerElementFlags.NSHourMinuteDatePickerElementFlag NSHourMinuteDatePickerElementFlag; | 3048 alias Cocoa.NSDatePickerElementFlags.NSHourMinuteDatePickerElementFlag NSHourMinuteDatePickerElementFlag; |
3101 alias NSDatePickerElementFlags.NSHourMinuteSecondDatePickerElementFlag NSHourMinuteSecondDatePickerElementFlag; | 3049 alias Cocoa.NSDatePickerElementFlags.NSHourMinuteSecondDatePickerElementFlag NSHourMinuteSecondDatePickerElementFlag; |
3102 public static const int NSIdentityMappingCharacterCollection = 0; | 3050 public static const int NSIdentityMappingCharacterCollection = 0; |
3103 public static const int NSIllegalTextMovement = 0; | 3051 public static const int NSIllegalTextMovement = 0; |
3104 alias Cocoa.NSCellImagePosition.NSImageAbove NSImageAbove; | 3052 alias Cocoa.NSCellImagePosition.NSImageAbove NSImageAbove; |
3105 alias Cocoa.NSImageAlignment.NSImageAlignBottom NSImageAlignBottom; | 3053 alias NSImageAlignment.NSImageAlignBottom NSImageAlignBottom; |
3106 alias Cocoa.NSImageAlignment.NSImageAlignBottomLeft NSImageAlignBottomLeft; | 3054 alias NSImageAlignment.NSImageAlignBottomLeft NSImageAlignBottomLeft; |
3107 alias Cocoa.NSImageAlignment.NSImageAlignBottomRight NSImageAlignBottomRight; | 3055 alias NSImageAlignment.NSImageAlignBottomRight NSImageAlignBottomRight; |
3108 alias Cocoa.NSImageAlignment.NSImageAlignCenter NSImageAlignCenter; | 3056 alias NSImageAlignment.NSImageAlignCenter NSImageAlignCenter; |
3109 alias Cocoa.NSImageAlignment.NSImageAlignLeft NSImageAlignLeft; | 3057 alias NSImageAlignment.NSImageAlignLeft NSImageAlignLeft; |
3110 alias Cocoa.NSImageAlignment.NSImageAlignRight NSImageAlignRight; | 3058 alias NSImageAlignment.NSImageAlignRight NSImageAlignRight; |
3111 public static const int NSImageAlignTop = 1; | 3059 alias NSImageAlignment.NSImageAlignTop NSImageAlignTop; |
3112 public static const int NSImageAlignTopLeft = 2; | 3060 alias NSImageAlignment.NSImageAlignTopLeft NSImageAlignTopLeft; |
3113 public static const int NSImageAlignTopRight = 3; | 3061 alias NSImageAlignment.NSImageAlignTopRight NSImageAlignTopRight; |
3114 public static const int NSImageBelow = 4; | 3062 public static const int NSImageBelow = 4; |
3115 public static const int NSImageCacheAlways = 1; | 3063 public static const int NSImageCacheAlways = 1; |
3116 public static const int NSImageCacheBySize = 2; | 3064 public static const int NSImageCacheBySize = 2; |
3117 public static const int NSImageCacheDefault = 0; | 3065 public static const int NSImageCacheDefault = 0; |
3118 alias Cocoa.NSImageCacheMode.NSImageCacheNever NSImageCacheNever; | 3066 alias Cocoa.NSImageCacheMode.NSImageCacheNever NSImageCacheNever; |
3218 public static const int NSMouseMovedMask = 32; | 3166 public static const int NSMouseMovedMask = 32; |
3219 alias Cocoa.NSBezierPathElement.NSMoveToBezierPathElement NSMoveToBezierPathElement; | 3167 alias Cocoa.NSBezierPathElement.NSMoveToBezierPathElement NSMoveToBezierPathElement; |
3220 public static const int NSNarrowFontMask = 16; | 3168 public static const int NSNarrowFontMask = 16; |
3221 public static const int NSNativeShortGlyphPacking = 5; | 3169 public static const int NSNativeShortGlyphPacking = 5; |
3222 public static const int NSNaturalTextAlignment = 4; | 3170 public static const int NSNaturalTextAlignment = 4; |
3223 public static const wchar NSNewlineCharacter = 10; | 3171 public static const int NSNewlineCharacter = 10; |
3224 public static const int NSNextFunctionKey = 63296; | 3172 public static const int NSNextFunctionKey = 63296; |
3225 public static const int NSNextStepInterfaceStyle = 1; | 3173 public static const int NSNextStepInterfaceStyle = 1; |
3226 alias NSBorderType.NSNoBorder NSNoBorder; | 3174 alias NSBorderType.NSNoBorder NSNoBorder; |
3227 public static const int NSNoCellMask = 0; | 3175 public static const int NSNoCellMask = 0; |
3228 public static const int NSNoFontChangeAction = 0; | 3176 public static const int NSNoFontChangeAction = 0; |
3261 public static const int NSOpenGLGORetainRenderers = 503; | 3209 public static const int NSOpenGLGORetainRenderers = 503; |
3262 public static const int NSOpenGLPFAAccelerated = 73; | 3210 public static const int NSOpenGLPFAAccelerated = 73; |
3263 public static const int NSOpenGLPFAAccumSize = 14; | 3211 public static const int NSOpenGLPFAAccumSize = 14; |
3264 public static const int NSOpenGLPFAAllRenderers = 1; | 3212 public static const int NSOpenGLPFAAllRenderers = 1; |
3265 public static const int NSOpenGLPFAAllowOfflineRenderers = 96; | 3213 public static const int NSOpenGLPFAAllowOfflineRenderers = 96; |
3266 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFAAlphaSize NSOpenGLPFAAlphaSize; | 3214 public static const int NSOpenGLPFAAlphaSize = 11; |
3267 public static const int NSOpenGLPFAAuxBuffers = 7; | 3215 public static const int NSOpenGLPFAAuxBuffers = 7; |
3268 public static const int NSOpenGLPFAAuxDepthStencil = 57; | 3216 public static const int NSOpenGLPFAAuxDepthStencil = 57; |
3269 public static const int NSOpenGLPFABackingStore = 76; | 3217 public static const int NSOpenGLPFABackingStore = 76; |
3270 public static const int NSOpenGLPFAClosestPolicy = 74; | 3218 public static const int NSOpenGLPFAClosestPolicy = 74; |
3271 public static const int NSOpenGLPFAColorFloat = 58; | 3219 public static const int NSOpenGLPFAColorFloat = 58; |
3272 public static const int NSOpenGLPFAColorSize = 8; | 3220 public static const int NSOpenGLPFAColorSize = 8; |
3273 public static const int NSOpenGLPFACompliant = 83; | 3221 public static const int NSOpenGLPFACompliant = 83; |
3274 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFADepthSize NSOpenGLPFADepthSize; | 3222 public static const int NSOpenGLPFADepthSize = 12; |
3275 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFADoubleBuffer NSOpenGLPFADoubleBuffer; | 3223 public static const int NSOpenGLPFADoubleBuffer = 5; |
3276 public static const int NSOpenGLPFAFullScreen = 54; | 3224 public static const int NSOpenGLPFAFullScreen = 54; |
3277 public static const int NSOpenGLPFAMPSafe = 78; | 3225 public static const int NSOpenGLPFAMPSafe = 78; |
3278 public static const int NSOpenGLPFAMaximumPolicy = 52; | 3226 public static const int NSOpenGLPFAMaximumPolicy = 52; |
3279 public static const int NSOpenGLPFAMinimumPolicy = 51; | 3227 public static const int NSOpenGLPFAMinimumPolicy = 51; |
3280 public static const int NSOpenGLPFAMultiScreen = 81; | 3228 public static const int NSOpenGLPFAMultiScreen = 81; |
3283 public static const int NSOpenGLPFAOffScreen = 53; | 3231 public static const int NSOpenGLPFAOffScreen = 53; |
3284 public static const int NSOpenGLPFAPixelBuffer = 90; | 3232 public static const int NSOpenGLPFAPixelBuffer = 90; |
3285 public static const int NSOpenGLPFARendererID = 70; | 3233 public static const int NSOpenGLPFARendererID = 70; |
3286 public static const int NSOpenGLPFARobust = 75; | 3234 public static const int NSOpenGLPFARobust = 75; |
3287 public static const int NSOpenGLPFASampleAlpha = 61; | 3235 public static const int NSOpenGLPFASampleAlpha = 61; |
3288 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFASampleBuffers NSOpenGLPFASampleBuffers; | 3236 public static const int NSOpenGLPFASampleBuffers = 55; |
3289 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFASamples NSOpenGLPFASamples; | 3237 public static const int NSOpenGLPFASamples = 56; |
3290 public static const int NSOpenGLPFAScreenMask = 84; | 3238 public static const int NSOpenGLPFAScreenMask = 84; |
3291 public static const int NSOpenGLPFASingleRenderer = 71; | 3239 public static const int NSOpenGLPFASingleRenderer = 71; |
3292 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFAStencilSize NSOpenGLPFAStencilSize; | 3240 public static const int NSOpenGLPFAStencilSize = 13; |
3293 alias Cocoa.NSOpenGLPixelFormatAttribute.NSOpenGLPFAStereo NSOpenGLPFAStereo; | 3241 public static const int NSOpenGLPFAStereo = 6; |
3294 public static const int NSOpenGLPFASupersample = 60; | 3242 public static const int NSOpenGLPFASupersample = 60; |
3295 public static const int NSOpenGLPFAVirtualScreenCount = 128; | 3243 public static const int NSOpenGLPFAVirtualScreenCount = 128; |
3296 public static const int NSOpenGLPFAWindow = 80; | 3244 public static const int NSOpenGLPFAWindow = 80; |
3297 alias Cocoa.NSEventType.NSOtherMouseDown NSOtherMouseDown; | 3245 alias Cocoa.NSEventType.NSOtherMouseDown NSOtherMouseDown; |
3298 public static const int NSOtherMouseDownMask = 33554432; | 3246 public static const int NSOtherMouseDownMask = 33554432; |
3301 alias Cocoa.NSEventType.NSOtherMouseUp NSOtherMouseUp; | 3249 alias Cocoa.NSEventType.NSOtherMouseUp NSOtherMouseUp; |
3302 public static const int NSOtherMouseUpMask = 67108864; | 3250 public static const int NSOtherMouseUpMask = 67108864; |
3303 public static const int NSOtherTextMovement = 0; | 3251 public static const int NSOtherTextMovement = 0; |
3304 public static const int NSOutlineViewDropOnItemIndex = -1; | 3252 public static const int NSOutlineViewDropOnItemIndex = -1; |
3305 public static const int NSPNGFileType = 4; | 3253 public static const int NSPNGFileType = 4; |
3306 public static const wchar NSPageDownFunctionKey = 63277; | 3254 public static const int NSPageDownFunctionKey = 63277; |
3307 public static const wchar NSPageUpFunctionKey = 63276; | 3255 public static const int NSPageUpFunctionKey = 63276; |
3308 public static const int NSParagraphSeparatorCharacter = 8233; | 3256 public static const int NSParagraphSeparatorCharacter = 8233; |
3309 public static const int NSPathStyleNavigationBar = 1; | 3257 public static const int NSPathStyleNavigationBar = 1; |
3310 public static const int NSPathStylePopUp = 2; | 3258 public static const int NSPathStylePopUp = 2; |
3311 public static const int NSPathStyleStandard = 0; | 3259 public static const int NSPathStyleStandard = 0; |
3312 public static const int NSPatternColorSpaceModel = 6; | 3260 public static const int NSPatternColorSpaceModel = 6; |
3332 public static const int NSPrevFunctionKey = 63295; | 3280 public static const int NSPrevFunctionKey = 63295; |
3333 public static const int NSPrintFunctionKey = 63288; | 3281 public static const int NSPrintFunctionKey = 63288; |
3334 public static const int NSPrintPanelShowsCopies = 1; | 3282 public static const int NSPrintPanelShowsCopies = 1; |
3335 public static const int NSPrintPanelShowsOrientation = 8; | 3283 public static const int NSPrintPanelShowsOrientation = 8; |
3336 public static const int NSPrintPanelShowsPageRange = 2; | 3284 public static const int NSPrintPanelShowsPageRange = 2; |
3337 alias NSPrintPanelOptions.NSPrintPanelShowsPageSetupAccessory NSPrintPanelShowsPageSetupAccessory; | 3285 alias Cocoa.NSPrintPanelOptions.NSPrintPanelShowsPageSetupAccessory NSPrintPanelShowsPageSetupAccessory; |
3338 public static const int NSPrintPanelShowsPaperSize = 4; | 3286 public static const int NSPrintPanelShowsPaperSize = 4; |
3339 public static const int NSPrintPanelShowsPreview = 131072; | 3287 public static const int NSPrintPanelShowsPreview = 131072; |
3340 public static const int NSPrintPanelShowsScaling = 16; | 3288 public static const int NSPrintPanelShowsScaling = 16; |
3341 public static const int NSPrintScreenFunctionKey = 63278; | 3289 public static const int NSPrintScreenFunctionKey = 63278; |
3342 public static const int NSPrinterTableError = 2; | 3290 public static const int NSPrinterTableError = 2; |
3401 public static const int NSRunContinuesResponse = -1002; | 3349 public static const int NSRunContinuesResponse = -1002; |
3402 public static const int NSRunStoppedResponse = -1000; | 3350 public static const int NSRunStoppedResponse = -1000; |
3403 public static const int NSSaveAsOperation = 1; | 3351 public static const int NSSaveAsOperation = 1; |
3404 public static const int NSSaveOperation = 0; | 3352 public static const int NSSaveOperation = 0; |
3405 public static const int NSSaveToOperation = 2; | 3353 public static const int NSSaveToOperation = 2; |
3406 alias Cocoa.NSImageScaling.NSImageScaleNone NSScaleNone; | 3354 alias Cocoa.NSImageScaling.NSScaleNone NSScaleNone; |
3407 public static const int NSScaleProportionally = 0; | 3355 public static const int NSScaleProportionally = 0; |
3408 public static const int NSScaleToFit = 1; | 3356 public static const int NSScaleToFit = 1; |
3409 public static const int NSScreenChangedEventType = 8; | 3357 public static const int NSScreenChangedEventType = 8; |
3410 public static const int NSScreenSaverWindowLevel = 1000; | 3358 public static const int NSScreenSaverWindowLevel = 1000; |
3411 public static const int NSScrollLockFunctionKey = 63279; | 3359 public static const int NSScrollLockFunctionKey = 63279; |
3454 public static const int NSServiceInvalidPasteboardDataError = 66563; | 3402 public static const int NSServiceInvalidPasteboardDataError = 66563; |
3455 public static const int NSServiceMalformedServiceDictionaryError = 66564; | 3403 public static const int NSServiceMalformedServiceDictionaryError = 66564; |
3456 public static const int NSServiceMiscellaneousError = 66800; | 3404 public static const int NSServiceMiscellaneousError = 66800; |
3457 public static const int NSServiceRequestTimedOutError = 66562; | 3405 public static const int NSServiceRequestTimedOutError = 66562; |
3458 alias Cocoa.NSBezelStyle.NSShadowlessSquareBezelStyle NSShadowlessSquareBezelStyle; | 3406 alias Cocoa.NSBezelStyle.NSShadowlessSquareBezelStyle NSShadowlessSquareBezelStyle; |
3459 public static const Cocoa.NSUInteger NSShiftKeyMask = 131072; | 3407 public static const int NSShiftKeyMask = 131072; |
3460 public static const int NSShowControlGlyphs = 1; | 3408 public static const int NSShowControlGlyphs = 1; |
3461 public static const int NSShowInvisibleGlyphs = 2; | 3409 public static const int NSShowInvisibleGlyphs = 2; |
3462 public static const int NSSingleDateMode = 0; | 3410 public static const int NSSingleDateMode = 0; |
3463 public static const int NSSingleUnderlineStyle = 1; | 3411 public static const int NSSingleUnderlineStyle = 1; |
3464 public static const int NSSizeDownFontAction = 4; | 3412 public static const int NSSizeDownFontAction = 4; |
3508 public static const int NSTableViewDropAbove = 1; | 3456 public static const int NSTableViewDropAbove = 1; |
3509 public static const int NSTableViewDropOn = 0; | 3457 public static const int NSTableViewDropOn = 0; |
3510 public static const int NSTableViewFirstColumnOnlyAutoresizingStyle = 5; | 3458 public static const int NSTableViewFirstColumnOnlyAutoresizingStyle = 5; |
3511 public static const int NSTableViewGridNone = 0; | 3459 public static const int NSTableViewGridNone = 0; |
3512 public static const int NSTableViewLastColumnOnlyAutoresizingStyle = 4; | 3460 public static const int NSTableViewLastColumnOnlyAutoresizingStyle = 4; |
3513 alias NSTableViewColumnAutoresizingStyle.NSTableViewNoColumnAutoresizing NSTableViewNoColumnAutoresizing; | 3461 alias Cocoa.NSTableViewColumnAutoresizingStyle.NSTableViewNoColumnAutoresizing NSTableViewNoColumnAutoresizing; |
3514 public static const int NSTableViewReverseSequentialColumnAutoresizingStyle = 3; | 3462 public static const int NSTableViewReverseSequentialColumnAutoresizingStyle = 3; |
3515 public static const int NSTableViewSelectionHighlightStyleRegular = 0; | 3463 public static const int NSTableViewSelectionHighlightStyleRegular = 0; |
3516 public static const int NSTableViewSelectionHighlightStyleSourceList = 1; | 3464 public static const int NSTableViewSelectionHighlightStyleSourceList = 1; |
3517 public static const int NSTableViewSequentialColumnAutoresizingStyle = 2; | 3465 public static const int NSTableViewSequentialColumnAutoresizingStyle = 2; |
3518 public static const int NSTableViewSolidHorizontalGridLineMask = 2; | 3466 public static const int NSTableViewSolidHorizontalGridLineMask = 2; |
3541 public static const int NSTextBlockPadding = -1; | 3489 public static const int NSTextBlockPadding = -1; |
3542 public static const int NSTextBlockPercentageValueType = 1; | 3490 public static const int NSTextBlockPercentageValueType = 1; |
3543 public static const int NSTextBlockTopAlignment = 0; | 3491 public static const int NSTextBlockTopAlignment = 0; |
3544 public static const int NSTextBlockWidth = 0; | 3492 public static const int NSTextBlockWidth = 0; |
3545 public static const int NSTextCellType = 1; | 3493 public static const int NSTextCellType = 1; |
3546 alias NSDatePickerStyle.NSTextFieldAndStepperDatePickerStyle NSTextFieldAndStepperDatePickerStyle; | 3494 alias Cocoa.NSDatePickerStyle.NSTextFieldAndStepperDatePickerStyle NSTextFieldAndStepperDatePickerStyle; |
3547 public static const int NSTextFieldDatePickerStyle = 2; | 3495 public static const int NSTextFieldDatePickerStyle = 2; |
3548 public static const int NSTextFieldRoundedBezel = 1; | 3496 public static const int NSTextFieldRoundedBezel = 1; |
3549 public static const int NSTextFieldSquareBezel = 0; | 3497 public static const int NSTextFieldSquareBezel = 0; |
3550 public static const int NSTextListPrependEnclosingMarker = 1; | 3498 public static const int NSTextListPrependEnclosingMarker = 1; |
3551 public static const int NSTextReadInapplicableDocumentTypeError = 65806; | 3499 public static const int NSTextReadInapplicableDocumentTypeError = 65806; |
3619 public static const int NSUnitalicFontMask = 16777216; | 3567 public static const int NSUnitalicFontMask = 16777216; |
3620 public static const int NSUnknownColorSpaceModel = -1; | 3568 public static const int NSUnknownColorSpaceModel = -1; |
3621 public static const int NSUnknownPageOrder = 2; | 3569 public static const int NSUnknownPageOrder = 2; |
3622 public static const int NSUnknownPointingDevice = 0; | 3570 public static const int NSUnknownPointingDevice = 0; |
3623 public static const int NSUnscaledWindowMask = 2048; | 3571 public static const int NSUnscaledWindowMask = 2048; |
3624 public static const wchar NSUpArrowFunctionKey = 63232; | 3572 public static const int NSUpArrowFunctionKey = 63232; |
3625 public static const int NSUpTextMovement = 21; | 3573 public static const int NSUpTextMovement = 21; |
3626 public static const int NSUpdateWindowsRunLoopOrdering = 500000; | 3574 public static const int NSUpdateWindowsRunLoopOrdering = 500000; |
3627 public static const int NSUserFunctionKey = 63286; | 3575 public static const int NSUserFunctionKey = 63286; |
3628 public static const int NSUtilityWindowMask = 16; | 3576 public static const int NSUtilityWindowMask = 16; |
3629 public static const int NSVariableStatusItemLength = -1; | 3577 public static const int NSVariableStatusItemLength = -1; |
3671 public static const int NSWorkspaceLaunchWithoutActivation = 512; | 3619 public static const int NSWorkspaceLaunchWithoutActivation = 512; |
3672 public static const int NSWorkspaceLaunchWithoutAddingToRecents = 256; | 3620 public static const int NSWorkspaceLaunchWithoutAddingToRecents = 256; |
3673 public static const int NSWritingDirectionLeftToRight = 0; | 3621 public static const int NSWritingDirectionLeftToRight = 0; |
3674 public static const int NSWritingDirectionNatural = -1; | 3622 public static const int NSWritingDirectionNatural = -1; |
3675 public static const int NSWritingDirectionRightToLeft = 1; | 3623 public static const int NSWritingDirectionRightToLeft = 1; |
3676 alias NSDatePickerElementFlags.NSYearMonthDatePickerElementFlag NSYearMonthDatePickerElementFlag; | 3624 alias Cocoa.NSDatePickerElementFlags.NSYearMonthDatePickerElementFlag NSYearMonthDatePickerElementFlag; |
3677 alias NSDatePickerElementFlags.NSYearMonthDayDatePickerElementFlag NSYearMonthDayDatePickerElementFlag; | 3625 alias Cocoa.NSDatePickerElementFlags.NSYearMonthDayDatePickerElementFlag NSYearMonthDayDatePickerElementFlag; |
3678 alias CFStringEncoding.kCFStringEncodingUTF8 kCFStringEncodingUTF8; | 3626 public static const int kCFStringEncodingUTF8 = 134217984; |
3679 public static const int NSASCIIStringEncoding = 1; | 3627 public static const int NSASCIIStringEncoding = 1; |
3680 public static const int NSAdminApplicationDirectory = 4; | 3628 public static const int NSAdminApplicationDirectory = 4; |
3681 public static const int NSAggregateExpressionType = 14; | 3629 public static const int NSAggregateExpressionType = 14; |
3682 alias NSSearchPathDirectory.NSAllApplicationsDirectory NSAllApplicationsDirectory; | 3630 alias Cocoa.NSSearchPathDirectory.NSAllApplicationsDirectory NSAllApplicationsDirectory; |
3683 alias NSSearchPathDomainMask.NSAllDomainsMask NSAllDomainsMask; | 3631 alias Cocoa.NSSearchPathDomainMask.NSAllDomainsMask NSAllDomainsMask; |
3684 public static const int NSAllLibrariesDirectory = 101; | 3632 public static const int NSAllLibrariesDirectory = 101; |
3685 public static const int NSAllPredicateModifier = 1; | 3633 public static const int NSAllPredicateModifier = 1; |
3686 public static const int NSAnchoredSearch = 8; | 3634 public static const int NSAnchoredSearch = 8; |
3687 public static const int NSAndPredicateType = 1; | 3635 public static const int NSAndPredicateType = 1; |
3688 public static const int NSAnyPredicateModifier = 2; | 3636 public static const int NSAnyPredicateModifier = 2; |
3911 public static const int NSNotificationSuspensionBehaviorHold = 3; | 3859 public static const int NSNotificationSuspensionBehaviorHold = 3; |
3912 public static const int NSNumberFormatterBehavior10_0 = 1000; | 3860 public static const int NSNumberFormatterBehavior10_0 = 1000; |
3913 public static const int NSNumberFormatterBehavior10_4 = 1040; | 3861 public static const int NSNumberFormatterBehavior10_4 = 1040; |
3914 public static const int NSNumberFormatterBehaviorDefault = 0; | 3862 public static const int NSNumberFormatterBehaviorDefault = 0; |
3915 public static const int NSNumberFormatterCurrencyStyle = 2; | 3863 public static const int NSNumberFormatterCurrencyStyle = 2; |
3916 alias NSNumberFormatterStyle.NSNumberFormatterDecimalStyle NSNumberFormatterDecimalStyle; | 3864 alias Cocoa.NSNumberFormatterStyle.NSNumberFormatterDecimalStyle NSNumberFormatterDecimalStyle; |
3917 public static const int NSNumberFormatterNoStyle = 0; | 3865 public static const int NSNumberFormatterNoStyle = 0; |
3918 public static const int NSNumberFormatterPadAfterPrefix = 1; | 3866 public static const int NSNumberFormatterPadAfterPrefix = 1; |
3919 public static const int NSNumberFormatterPadAfterSuffix = 3; | 3867 public static const int NSNumberFormatterPadAfterSuffix = 3; |
3920 public static const int NSNumberFormatterPadBeforePrefix = 0; | 3868 public static const int NSNumberFormatterPadBeforePrefix = 0; |
3921 public static const int NSNumberFormatterPadBeforeSuffix = 2; | 3869 public static const int NSNumberFormatterPadBeforeSuffix = 2; |