AppKitCompatibilityDeclarations.h [plain text]
#ifndef AppKitCompatibilityDeclarations_h
#define AppKitCompatibilityDeclarations_h
#import <Availability.h>
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
#import <AppKit/AppKit.h>
static const NSAlertStyle NSAlertStyleCritical = NSCriticalAlertStyle;
static const NSAlertStyle NSAlertStyleInformational = NSInformationalAlertStyle;
static const NSAlertStyle NSAlertStyleWarning = NSWarningAlertStyle;
static const NSButtonType NSButtonTypeMomentaryLight = NSMomentaryLightButton;
static const NSButtonType NSButtonTypePushOnPushOff = NSPushOnPushOffButton;
static const NSButtonType NSButtonTypeToggle = NSToggleButton;
static const NSButtonType NSButtonTypeSwitch = NSSwitchButton;
static const NSButtonType NSButtonTypeRadio = NSRadioButton;
static const NSButtonType NSButtonTypeMomentaryChange = NSMomentaryChangeButton;
static const NSButtonType NSButtonTypeOnOff = NSOnOffButton;
static const NSButtonType NSButtonTypeMomentaryPushIn = NSMomentaryPushInButton;
static const NSButtonType NSButtonTypeAccelerator = NSAcceleratorButton;
static const NSButtonType NSButtonTypeMultiLevelAccelerator = NSMultiLevelAcceleratorButton;
static const NSCompositingOperation NSCompositingOperationCopy = NSCompositeCopy;
static const NSCompositingOperation NSCompositingOperationDestinationIn = NSCompositeDestinationIn;
static const NSCompositingOperation NSCompositingOperationDestinationOut = NSCompositeDestinationOut;
static const NSCompositingOperation NSCompositingOperationDestinationOver = NSCompositeDestinationOver;
static const NSCompositingOperation NSCompositingOperationSourceAtop = NSCompositeSourceAtop;
static const NSCompositingOperation NSCompositingOperationSourceIn = NSCompositeSourceIn;
static const NSCompositingOperation NSCompositingOperationSourceOver = NSCompositeSourceOver;
static const NSControlSize NSControlSizeRegular = NSRegularControlSize;
static const NSControlSize NSControlSizeSmall = NSSmallControlSize;
static const NSControlSize NSControlSizeMini = NSMiniControlSize;
static const NSSliderType NSSliderTypeLinear = NSLinearSlider;
static const NSSliderType NSSliderTypeCircular = NSCircularSlider;
static const NSEventMask NSEventMaskAny = NSAnyEventMask;
static const NSEventMask NSEventMaskFlagsChanged = NSFlagsChangedMask;
static const NSEventMask NSEventMaskKeyDown = NSKeyDownMask;
static const NSEventMask NSEventMaskKeyUp = NSKeyUpMask;
static const NSEventMask NSEventMaskLeftMouseDown = NSLeftMouseDownMask;
static const NSEventMask NSEventMaskLeftMouseDragged = NSLeftMouseDraggedMask;
static const NSEventMask NSEventMaskLeftMouseUp = NSLeftMouseUpMask;
static const NSEventMask NSEventMaskOtherMouseDown = NSOtherMouseDownMask;
static const NSEventMask NSEventMaskOtherMouseUp = NSOtherMouseUpMask;
static const NSEventMask NSEventMaskPeriodic = NSPeriodicMask;
static const NSEventMask NSEventMaskRightMouseDown = NSRightMouseDownMask;
static const NSEventMask NSEventMaskRightMouseUp = NSRightMouseUpMask;
static const NSEventMask NSEventMaskMouseMoved = NSMouseMovedMask;
static const NSEventMask NSEventMaskScrollWheel = NSScrollWheelMask;
static const NSEventModifierFlags NSEventModifierFlagOption = NSAlternateKeyMask;
static const NSEventModifierFlags NSEventModifierFlagControl = NSControlKeyMask;
static const NSEventModifierFlags NSEventModifierFlagCapsLock = NSAlphaShiftKeyMask;
static const NSEventModifierFlags NSEventModifierFlagCommand = NSCommandKeyMask;
static const NSEventModifierFlags NSEventModifierFlagDeviceIndependentFlagsMask = NSDeviceIndependentModifierFlagsMask;
static const NSEventModifierFlags NSEventModifierFlagFunction = NSFunctionKeyMask;
static const NSEventModifierFlags NSEventModifierFlagNumericPad = NSNumericPadKeyMask;
static const NSEventModifierFlags NSEventModifierFlagShift = NSShiftKeyMask;
static const NSEventModifierFlags NSEventModifierFlagHelp = NSHelpKeyMask;
static const NSEventType NSEventTypeApplicationDefined = NSApplicationDefined;
static const NSEventType NSEventTypeFlagsChanged = NSFlagsChanged;
static const NSEventType NSEventTypeKeyDown = NSKeyDown;
static const NSEventType NSEventTypeKeyUp = NSKeyUp;
static const NSEventType NSEventTypeLeftMouseDown = NSLeftMouseDown;
static const NSEventType NSEventTypeLeftMouseDragged = NSLeftMouseDragged;
static const NSEventType NSEventTypeLeftMouseUp = NSLeftMouseUp;
static const NSEventType NSEventTypeMouseEntered = NSMouseEntered;
static const NSEventType NSEventTypeMouseExited = NSMouseExited;
static const NSEventType NSEventTypeMouseMoved = NSMouseMoved;
static const NSEventType NSEventTypeOtherMouseDown = NSOtherMouseDown;
static const NSEventType NSEventTypeOtherMouseDragged = NSOtherMouseDragged;
static const NSEventType NSEventTypeOtherMouseUp = NSOtherMouseUp;
static const NSEventType NSEventTypePeriodic = NSPeriodic;
static const NSEventType NSEventTypeRightMouseDown = NSRightMouseDown;
static const NSEventType NSEventTypeRightMouseDragged = NSRightMouseDragged;
static const NSEventType NSEventTypeRightMouseUp = NSRightMouseUp;
static const NSEventType NSEventTypeScrollWheel = NSScrollWheel;
static const NSEventType NSEventTypeSystemDefined = NSSystemDefined;
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100
static const NSTextAlignment NSTextAlignmentRight = NSRightTextAlignment;
static const NSTextAlignment NSTextAlignmentCenter = NSCenterTextAlignment;
static const NSTextAlignment NSTextAlignmentLeft = NSLeftTextAlignment;
static const NSTextAlignment NSTextAlignmentNatural = NSNaturalTextAlignment;
static const NSTextAlignment NSTextAlignmentJustified = NSJustifiedTextAlignment;
typedef NSInteger NSWritingDirectionFormatType;
static const NSWritingDirectionFormatType = NSTextWritingDirectionOverride;
static const NSWritingDirectionEmbedding = NSTextWritingDirectionEmbedding;
#endif
typedef NSUInteger NSWindowStyleMask;
static const NSWindowStyleMask NSWindowStyleMaskBorderless = NSBorderlessWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskClosable = NSClosableWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskFullScreen = NSFullScreenWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskFullSizeContentView = NSFullSizeContentViewWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskHUDWindow = NSHUDWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskMiniaturizable = NSMiniaturizableWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskNonactivatingPanel = NSNonactivatingPanelMask;
static const NSWindowStyleMask NSWindowStyleMaskResizable = NSResizableWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskTexturedBackground = NSTexturedBackgroundWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskTitled = NSTitledWindowMask;
static const NSWindowStyleMask NSWindowStyleMaskUtilityWindow = NSUtilityWindowMask;
#endif
#endif // AppKitCompatibilityDeclarations_h