11.1 Data Types
This
section lists the data types defined by and used in the
Application Kit.
typedef struct _NSAffineTransformStruct {
float m11, m12, m21, m22;
float tX, tY;
} NSAffineTransformStruct;
NSApplicationTerminateReply |
|
typedef enum NSApplicationTerminateReply {
NSTerminateCancel = 0,
NSTerminateNow = 1,
NSTerminateLater = 2
} NSApplicationTerminateReply;
typedef enum _NSBackingStoreType {
NSBackingStoreRetained = 0,
NSBackingStoreNonretained = 1,
NSBackingStoreBuffered = 2
} NSBackingStoreType;
typedef enum _NSBezelStyle {
NSRoundedBezelStyle = 1,
NSRegularSquareBezelStyle = 2,
NSThickSquareBezelStyle = 3,
NSThickerSquareBezelStyle = 4,
NSShadowlessSquareBezelStyle = 6,
NSCircularBezelStyle = 7
} NSBezelStyle;
typedef enum {
NSMoveToBezierPathElement,
NSLineToBezierPathElement,
NSCurveToBezierPathElement,
NSClosePathBezierPathElement
} NSBezierPathElement;
typedef enum _NSBitmapImageFileType {
NSTIFFFileType,
NSBMPFileType,
NSGIFFileType,
NSJPEGFileType,
NSPNGFileType
} NSBitmapImageFileType;
typedef enum _NSBorderType {
NSNoBorder = 0,
NSLineBorder = 1,
NSBezelBorder = 2,
NSGrooveBorder = 3
} NSBorderType;
typedef enum {
NSBoxPrimary = 0,
NSBoxSecondary = 1,
NSBoxSeparator =2,
NSBoxOldStyle =3
}NSBoxType;
typedef enum _NSButtonType {
NSMomentaryLightButton = 0,
NSPushOnPushOffButton = 1,
NSToggleButton = 2,
NSSwitchButton = 3,
NSRadioButton = 4,
NSMomentaryChangeButton = 5,
NSOnOffButton = 6,
NSMomentaryPushInButton = 7
} NSButtonType;
typedef enum _NSCellAttribute {
NSCellDisabled = 0,
NSCellState = 1,
NSPushInCell = 2,
NSCellEditable = 3,
NSChangeGrayCell = 4,
NSCellHighlighted = 5,
NSCellLightsByContents = 6,
NSCellLightsByGray = 7,
NSChangeBackgroundCell = 8,
NSCellLightsByBackground = 9,
NSCellIsBordered = 10,
NSCellHasOverlappingImage = 11,
NSCellHasImageHorizontal = 12,
NSCellHasImageOnLeftOrBottom = 13,
NSCellChangesContents = 14,
NSCellIsInsetButton = 15,
NSCellAllowsMixedState= 16
} NSCellAttribute;
typedef enum _NSCellImagePosition {
NSNoImage = 0,
NSImageOnly = 1,
NSImageLeft = 2,
NSImageRight = 3,
NSImageBelow = 4,
NSImageAbove = 5,
NSImageOverlaps = 6
} NSCellImagePosition;
typedef enum _NSCellState {
NSMixedState = -1,
NSOffState = 0,
NSOnState = 1
} NSCellStateValue;
typedef enum _NSCellType {
NSNullCellType = 0,
NSTextCellType = 1,
NSImageCellType = 2
} NSCellType;
typedef enum {
NSIdentityMappingCharacterCollection = 0,
NSAdobeCNS1CharacterCollection = 1,
NSAdobeGB1CharacterCollection = 2,
NSAdobeJapan1CharacterCollection = 3,
NSAdobeJapan2CharacterCollection = 4,
NSAdobeKorea1CharacterCollection = 5,
} NSCharacterCollection;
typedef enum _NSCompositingOperation {
NSCompositeClear = 0,
NSCompositeCopy = 1,
NSCompositeSourceOver = 2,
NSCompositeSourceIn = 3,
NSCompositeSourceOut = 4,
NSCompositeSourceAtop = 5,
NSCompositeDestinationOver = 6,
NSCompositeDestinationIn = 7,
NSCompositeDestinationOut = 8,
NSCompositeDestinationAtop = 9,
NSCompositeXOR = 10,
NSCompositePlusDarker = 11,
NSCompositeHighlight = 12,
NSCompositePlusLighter = 13
} NSCompositingOperation;
typedef enum _NSControlSize {
NSRegularControlSize,
NSSmallControlSize
} NSControlSize;
typedef enum _NSControlTint {
NSDefaultControlTint = 0,
NSClearControlTint = 7
} NSControlTint;
typedef enum _NSDocumentChangeType {
NSChangeDone = 0,
NSChangeUndone = 1,
NSChangeCleared = 2
} NSDocumentChangeType;
typedef unsigned int NSDragOperation;
typedef enum _NSDrawerState {
NSDrawerClosedState = 0,
NSDrawerOpeningState = 1,
NSDrawerOpenState = 2,
NSDrawerClosingState = 3
} NSDrawerState;
typedef enum _NSEventType {
NSLeftMouseDown = 1,
NSLeftMouseUp = 2,
NSRightMouseDown = 3,
NSRightMouseUp = 4,
NSMouseMoved = 5,
NSLeftMouseDragged = 6,
NSRightMouseDragged = 7,
NSMouseEntered = 8,
NSMouseExited = 9,
NSKeyDown = 10,
NSKeyUp = 11,
NSFlagsChanged = 12,
NSAppKitDefined = 13,
NSSystemDefined = 14,
NSApplicationDefined = 15,
NSPeriodic = 16,
NSCursorUpdate = 17,
NSScrollWheel = 22,
NSOtherMouseDown = 25,
NSOtherMouseUp = 26,
NSOtherMouseDragged = 27
} NSEventType;
typedef enum {
NSFocusRingOnly = 0,
NSFocusRingBelow = 1,
NSFocusRingAbove = 2
} NSFocusRingPlacement;
typedef enum _NSFontAction {
NSNoFontChangeAction = 0,
NSViaPanelFontAction = 1,
NSAddTraitFontAction = 2,
NSSizeUpFontAction = 3,
NSSizeDownFontAction = 4,
NSHeavierFontAction = 5,
NSLighterFontAction = 6,
NSRemoveTraitFontAction = 7
} NSFontAction;
typedef unsigned int NSFontTraitMask;
typedef unsigned int NSGlyph;
typedef enum {
NSGlyphInscribeBase = 0,
NSGlyphInscribeBelow = 1,
NSGlyphInscribeAbove = 2,
NSGlyphInscribeOverstrike = 3,
NSGlyphInscribeOverBelow = 4
} NSGlyphInscription;
typedef enum _NSGlyphLayoutMode {
NSGlyphLayoutAtAPoint = 0,
NSGlyphLayoutAgainstAPoint,
NSGlyphLayoutWithPrevious
} NSGlyphLayoutMode;
typedef enum _NSGlyphRelation {
NSGlyphBelow = 1,
NSGlyphAbove = 2
} NSGlyphRelation;
typedef enum _NSGradientType {
NSGradientNone = 0,
NSGradientConcaveWeak = 1,
NSGradientConcaveStrong = 2,
NSGradientConvexWeak = 3,
NSGradientConvexStrong = 4
} NSGradientType;
typedef enum {
NSImageAlignCenter = 0,
NSImageAlignTop,
NSImageAlignTopLeft,
NSImageAlignTopRight,
NSImageAlignLeft,
NSImageAlignBottom,
NSImageAlignBottomLeft,
NSImageAlignBottomRight,
NSImageAlignRight
} NSImageAlignment;
typedef enum {
NSImageCacheDefault,
NSImageCacheAlways,
NSImageCacheBySize,
NSImageCacheNever
} NSImageCacheMode;
typedef enum {
NSImageFrameNone = 0,
NSImageFramePhoto,
NSImageFrameGrayBezel,
NSImageFrameGroove,
NSImageFrameButton
} NSImageFrameStyle;
typedef enum {
NSImageInterpolationDefault,
NSImageInterpolationNone,
NSImageInterpolationLow,
NSImageInterpolationHigh
} NSImageInterpolation;
typedef enum {
NSImageLoadStatusCompleted,
NSImageLoadStatusCancelled,
NSImageLoadStatusInvalidData,
NSImageLoadStatusUnexpectedEOF,
NSImageLoadStatusReadError
} NSImageLoadStatus;
typedef enum {
NSImageRepLoadStatusUnknownType = -1,
NSImageRepLoadStatusReadingHeader = -2,
NSImageRepLoadStatusWillNeedAllData = -3,
NSImageRepLoadStatusInvalidData = -4,
NSImageRepLoadStatusUnexpectedEOF = -5,
NSImageRepLoadStatusCompleted = -6
} NSImageRepLoadStatus;
typedef enum {
NSScaleProportionally = 0,
NSScaleToFit,
NSScaleNone
} NSImageScaling;
typedef enum {
NSNoInterfaceStyle = 0,
NSNextStepInterfaceStyle = 1,
NSWindows95InterfaceStyle = 2,
NSMacintoshInterfaceStyle = 3
} NSInterfaceStyle;
typedef enum _NSLayoutDirection {
NSLayoutLeftToRight = 0,
NSLayoutRightToLeft
} NSLayoutDirection;
typedef enum _NSLayoutStatus {
NSLayoutNotDone = 0,
NSLayoutDone,
NSLayoutCantFit,
NSLayoutOutOfGlyphs
} NSLayoutStatus;
typedef enum _NSLineBreakMode {
NSLineBreakByWordWrapping = 0,
NSLineBreakByCharWrapping,
NSLineBreakByClipping,
NSLineBreakByTruncatingHead,
NSLineBreakByTruncatingTail,
NSLineBreakByTruncatingMiddle
} NSLineBreakMode;
typedef enum {
NSButtLineCapStyle = 0,
NSRoundLineCapStyle = 1,
NSSquareLineCapStyle = 2
} NSLineCapStyle;
typedef enum {
NSMiterLineJoinStyle = 0,
NSRoundLineJoinStyle = 1,
NSBevelLineJoinStyle = 2
} NSLineJoinStyle;
typedef enum {
NSLineDoesntMove = 0,
NSLineMovesLeft = 1,
NSLineMovesRight = 2,
NSLineMovesDown = 3,
NSLineMovesUp = 4
} NSLineMovementDirection;
typedef enum {
NSLineSweepLeft = 0,
NSLineSweepRight = 1,
NSLineSweepDown = 2,
NSLineSweepUp = 3
} NSLineSweepDirection;
typedef enum _NSMatrixMode {
NSRadioModeMatrix = 0,
NSHighlightModeMatrix = 1,
NSListModeMatrix = 2,
NSTrackModeMatrix =3
} NSMatrixMode;
typedef struct _NSModalSession *NSModalSession;
typedef enum _NSMultibyteGlyphPacking {
NSOneByteGlyphPacking,
NSJapaneseEUCGlyphPacking,
NSAsciiWithDoubleByteEUCGlyphPacking,
NSTwoByteGlyphPacking,
NSFourByteGlyphPacking,
NSNativeShortGlyphPacking
} NSMultibyteGlyphPacking;
typedef struct _CGLContextObject NSOpenGLContextAuxiliary;
typedef enum {
NSOpenGLCPSwapRectangle = 200,
NSOpenGLCPSwapRectangleEnable = 201,
NSOpenGLCPRasterizationEnable = 221,
NSOpenGLCPSwapInterval = 222,
NSOpenGLCPSurfaceOrder = 235,
NSOpenGLCPSurfaceOpacity = 236,
NSOpenGLCPStateValidation = 301
} NSOpenGLContextParameter;
typedef enum {
NSOpenGLGOFormatCacheSize = 501,
NSOpenGLGOClearFormatCache = 502,
NSOpenGLGORetainRenderers = 503,
NSOpenGLGOResetLibrary = 504
} NSOpenGLGlobalOption;
NSOpenGLPixelFormatAttribute |
|
typedef enum {
NSOpenGLPFAAllRenderers = 1,
NSOpenGLPFADoubleBuffer = 5,
NSOpenGLPFAStereo = 6,
NSOpenGLPFAAuxBuffers = 7,
NSOpenGLPFAColorSize = 8,
NSOpenGLPFAAlphaSize = 11,
NSOpenGLPFADepthSize = 12,
NSOpenGLPFAStencilSize = 13,
NSOpenGLPFAAccumSize = 14,
NSOpenGLPFAMinimumPolicy = 51,
NSOpenGLPFAMaximumPolicy = 52,
NSOpenGLPFAOffScreen = 53,
NSOpenGLPFAFullScreen = 54,
NSOpenGLPFASampleBuffers = 55,
NSOpenGLPFASamples = 56,
NSOpenGLPFAAuxDepthStencil = 57,
NSOpenGLPFARendererID = 70,
NSOpenGLPFASingleRenderer = 71,
NSOpenGLPFANoRecovery = 72,
NSOpenGLPFAAccelerated = 73,
NSOpenGLPFAClosestPolicy = 74,
NSOpenGLPFARobust = 75,
NSOpenGLPFABackingStore = 76,
NSOpenGLPFAMPSafe = 78,
NSOpenGLPFAWindow = 80,
NSOpenGLPFAMultiScreen = 81,
NSOpenGLPFACompliant = 83,
NSOpenGLPFAScreenMask = 84,
NSOpenGLPFAVirtualScreenCount = 128
} NSOpenGLPixelFormatAttribute;
NSOpenGLPixelFormatAuxiliary |
|
typedef struct _CGLPixelFormatObject NSOpenGLPixelFormatAuxiliary;
typedef enum {
NSPopUpNoArrow = 0,
NSPopUpArrowAtCenter = 1,
NSPopUpArrowAtBottom = 2
} NSPopUpArrowPosition;
typedef enum _NSPrinterTableStatus {
NSPrinterTableOK = 0,
NSPrinterTableNotFound = 1,
NSPrinterTableError = 2
} NSPrinterTableStatus;
typedef enum {
NSPortraitOrientation = 0,
NSLandscapeOrientation = 1
} NSPrintingOrientation;
typedef enum _NSPrintingPageOrder {
NSDescendingPageOrder = (-1),
NSSpecialPageOrder = 0,
NSAscendingPageOrder = 1,
NSUnknownPageOrder = 2
} NSPrintingPageOrder;
typedef enum {
NSAutoPagination = 0,
NSFitPagination = 1,
NSClipPagination = 2
} NSPrintingPaginationMode;
typedef enum _NSProgressIndicatorStyle {
NSProgressIndicatorBarStyle = 0,
NSProgressIndicatorSpinningStyle = 1
} NSProgressIndicatorStyle;
NSProgressIndicatorThickness |
|
typedef enum _NSProgressIndicatorThickness {
NSProgressIndicatorPreferredThickness = 14,
NSProgressIndicatorPreferredSmallThickness = 10,
NSProgressIndicatorPreferredLargeThickness = 18,
NSProgressIndicatorPreferredAquaThickness = 12
} NSProgressIndicatorThickness;
typedef enum {
NSQTMovieNormalPlayback,
NSQTMovieLoopingPlayback,
NSQTMovieLoopingBackAndForthPlayback
} NSQTMovieLoopMode;
NSRequestUserAttentionType |
|
typedef enum {
NSCriticalRequest = 0,
NSInformationalRequest = 10
} NSRequestUserAttentionType;
typedef enum {
NSHorizontalRuler,
NSVerticalRuler
} NSRulerOrientation;
typedef enum _NSSaveOperationType {
NSSaveOperation = 0,
NSSaveAsOperation = 1,
NSSaveToOperation = 2
} NSSaveOperationType;
typedef struct NSScreenAuxiliary NSScreenAuxiliaryOpaque;
typedef enum _NSScrollArrowPosition {
NSScrollerArrowsDefaultSetting = 0,
NSScrollerArrowsNone = 2
} NSScrollArrowPosition;
typedef enum _NSScrollerArrow {
NSScrollerIncrementArrow = 0,
NSScrollerDecrementArrow = 1
} NSScrollerArrow;
typedef enum _NSScrollerPart {
NSScrollerNoPart = 0,
NSScrollerDecrementPage = 1,
NSScrollerKnob = 2,
NSScrollerIncrementPage = 3,
NSScrollerDecrementLine = 4,
NSScrollerIncrementLine = 5,
NSScrollerKnobSlot = 6
} NSScrollerPart;
typedef enum _NSSelectionAffinity {
NSSelectionAffinityUpstream = 0,
NSSelectionAffinityDownstream = 1
} NSSelectionAffinity;
typedef enum _NSSelectionDirection {
NSDirectSelection = 0,
NSSelectingNext,
NSSelectingPrevious
} NSSelectionDirection;
typedef enum _NSSelectionGranularity {
NSSelectByCharacter = 0,
NSSelectByWord = 1,
NSSelectByParagraph = 2
} NSSelectionGranularity;
typedef enum {
NSTableViewDropOn,
NSTableViewDropAbove
} NSTableViewDropOperation;
typedef enum _NSTabState {
NSSelectedTab = 0,
NSBackgroundTab = 1,
NSPressedTab = 2
} NSTabState;
NSTabViewItemAuxiliaryOpaque |
|
typedef struct NSTabViewItemAuxiliary NSTabViewItemAuxiliaryOpaque;
typedef enum _NSTabViewType {
NSTopTabsBezelBorder = 0,
NSLeftTabsBezelBorder = 1,
NSBottomTabsBezelBorder = 2,
NSRightTabsBezelBorder = 3,
NSNoTabsBezelBorder = 4,
NSNoTabsLineBorder= 5,
NSNoTabsNoBorder = 6
} NSTabViewType;
typedef enum _NSTextAlignment {
NSLeftTextAlignment = 0,
NSRightTextAlignment = 1,
NSCenterTextAlignment = 2,
NSJustifiedTextAlignment = 3,
NSNaturalTextAlignment = 4
} NSTextAlignment;
typedef enum {
NSTextFieldSquareBezel = 0,
NSTextFieldRoundedBezel = 1
} NSTextFieldBezelStyle;
typedef enum _NSTextTabType {
NSLeftTabStopType = 0,
NSRightTabStopType,
NSCenterTabStopType,
NSDecimalTabStopType
} NSTextTabType;
typedef enum _NSTickMarkPosition {
NSTickMarkBelow = 0,
NSTickMarkAbove = 1,
NSTickMarkLeft = NSTickMarkAbove,
NSTickMarkRight = NSTickMarkBelow
} NSTickMarkPosition;
typedef enum _NSTIFFCompression {
NSTIFFCompressionNone = 1,
NSTIFFCompressionCCITTFAX3 = 3,
NSTIFFCompressionCCITTFAX4 = 4,
NSTIFFCompressionLZW = 5,
NSTIFFCompressionJPEG = 6,
NSTIFFCompressionNEXT = 32766,
NSTIFFCompressionPackBits = 32773,
NSTIFFCompressionOldJPEG = 32865
} NSTIFFCompression;
typedef enum _NSTitlePosition {
NSNoTitle = 0,
NSAboveTop = 1,
NSAtTop = 2,
NSBelowTop = 3,
NSAboveBottom = 4,
NSAtBottom = 5,
NSBelowBottom = 6
} NSTitlePosition;
typedef enum {
NSToolbarDisplayModeDefault,
NSToolbarDisplayModeIconAndLabel,
NSToolbarDisplayModeIconOnly,
NSToolbarDisplayModeLabelOnly
} NSToolbarDisplayMode;
typedef enum {
NSToolbarSizeModeDefault,
NSToolbarSizeModeRegular,
NSToolbarSizeModeSmall
} NSToolbarSizeMode;
typedef int NSToolTipTag;
typedef int NSTrackingRectTag;
typedef enum {
NSTypesetterLatestBehavior = -1,
NSTypesetterOriginalBehavior = 0,
NSTypesetterBehavior_10_2_WithCompatibility = 1,
NSTypesetterBehavior_10_2 = 2,
} NSTypesetterBehavior;
typedef struct _NSTypesetterGlyphInfo {
NSPoint curLocation;
float extent;
float belowBaseline;
float aboveBaseline;
unsigned glyphCharacterIndex;
NSFont *font;
NSSize attachmentSize;
struct {
BOOL defaultPositioning:1;
BOOL dontShow:1;
BOOL isAttachment:1;
} _giflags;
} NSTypesetterGlyphInfo;
typedef enum _NSUsableScrollerParts {
NSNoScrollerParts = 0,
NSOnlyScrollerArrows = 1,
NSAllScrollerParts = 2
} NSUsableScrollerParts;
typedef enum {
NSNonZeroWindingRule = 0,
NSEvenOddWindingRule = 1
} NSWindingRule;
typedef struct NSWindowAuxiliary NSWindowAuxiliaryOpaque;
typedef enum {
NSWindowCloseButton,
NSWindowMiniaturizeButton,
NSWindowZoomButton,
NSWindowToolbarButton,
NSWindowDocumentIconButton
} NSWindowButton;
typedef int NSWindowDepth;
typedef enum _NSWindowOrderingMode {
NSWindowAbove = 1,
NSWindowBelow = -1,
NSWindowOut = 0
} NSWindowOrderingMode;
typedef enum _NSWritingDirection {
NSWritingDirectionLeftToRight = 0,
NSWritingDirectionRightToLeft
} NSWritingDirection;
|