1 # Generated from 'Menus.h' 2 3 def FOUR_CHAR_CODE(x): return x 4 noMark = 0 5 kMenuDrawMsg = 0 6 kMenuSizeMsg = 2 7 kMenuPopUpMsg = 3 8 kMenuCalcItemMsg = 5 9 kMenuThemeSavvyMsg = 7 10 mDrawMsg = 0 11 mSizeMsg = 2 12 mPopUpMsg = 3 13 mCalcItemMsg = 5 14 mChooseMsg = 1 15 mDrawItemMsg = 4 16 kMenuChooseMsg = 1 17 kMenuDrawItemMsg = 4 18 kThemeSavvyMenuResponse = 0x7473 19 kMenuInitMsg = 8 20 kMenuDisposeMsg = 9 21 kMenuFindItemMsg = 10 22 kMenuHiliteItemMsg = 11 23 kMenuDrawItemsMsg = 12 24 textMenuProc = 0 25 hMenuCmd = 27 26 hierMenu = -1 27 kInsertHierarchicalMenu = -1 28 mctAllItems = -98 29 mctLastIDIndic = -99 30 kMenuStdMenuProc = 63 31 kMenuStdMenuBarProc = 63 32 kMenuNoModifiers = 0 33 kMenuShiftModifier = (1 << 0) 34 kMenuOptionModifier = (1 << 1) 35 kMenuControlModifier = (1 << 2) 36 kMenuNoCommandModifier = (1 << 3) 37 kMenuNoIcon = 0 38 kMenuIconType = 1 39 kMenuShrinkIconType = 2 40 kMenuSmallIconType = 3 41 kMenuColorIconType = 4 42 kMenuIconSuiteType = 5 43 kMenuIconRefType = 6 44 kMenuCGImageRefType = 7 45 kMenuSystemIconSelectorType = 8 46 kMenuIconResourceType = 9 47 kMenuNullGlyph = 0x00 48 kMenuTabRightGlyph = 0x02 49 kMenuTabLeftGlyph = 0x03 50 kMenuEnterGlyph = 0x04 51 kMenuShiftGlyph = 0x05 52 kMenuControlGlyph = 0x06 53 kMenuOptionGlyph = 0x07 54 kMenuSpaceGlyph = 0x09 55 kMenuDeleteRightGlyph = 0x0A 56 kMenuReturnGlyph = 0x0B 57 kMenuReturnR2LGlyph = 0x0C 58 kMenuNonmarkingReturnGlyph = 0x0D 59 kMenuPencilGlyph = 0x0F 60 kMenuDownwardArrowDashedGlyph = 0x10 61 kMenuCommandGlyph = 0x11 62 kMenuCheckmarkGlyph = 0x12 63 kMenuDiamondGlyph = 0x13 64 kMenuAppleLogoFilledGlyph = 0x14 65 kMenuParagraphKoreanGlyph = 0x15 66 kMenuDeleteLeftGlyph = 0x17 67 kMenuLeftArrowDashedGlyph = 0x18 68 kMenuUpArrowDashedGlyph = 0x19 69 kMenuRightArrowDashedGlyph = 0x1A 70 kMenuEscapeGlyph = 0x1B 71 kMenuClearGlyph = 0x1C 72 kMenuLeftDoubleQuotesJapaneseGlyph = 0x1D 73 kMenuRightDoubleQuotesJapaneseGlyph = 0x1E 74 kMenuTrademarkJapaneseGlyph = 0x1F 75 kMenuBlankGlyph = 0x61 76 kMenuPageUpGlyph = 0x62 77 kMenuCapsLockGlyph = 0x63 78 kMenuLeftArrowGlyph = 0x64 79 kMenuRightArrowGlyph = 0x65 80 kMenuNorthwestArrowGlyph = 0x66 81 kMenuHelpGlyph = 0x67 82 kMenuUpArrowGlyph = 0x68 83 kMenuSoutheastArrowGlyph = 0x69 84 kMenuDownArrowGlyph = 0x6A 85 kMenuPageDownGlyph = 0x6B 86 kMenuAppleLogoOutlineGlyph = 0x6C 87 kMenuContextualMenuGlyph = 0x6D 88 kMenuPowerGlyph = 0x6E 89 kMenuF1Glyph = 0x6F 90 kMenuF2Glyph = 0x70 91 kMenuF3Glyph = 0x71 92 kMenuF4Glyph = 0x72 93 kMenuF5Glyph = 0x73 94 kMenuF6Glyph = 0x74 95 kMenuF7Glyph = 0x75 96 kMenuF8Glyph = 0x76 97 kMenuF9Glyph = 0x77 98 kMenuF10Glyph = 0x78 99 kMenuF11Glyph = 0x79 100 kMenuF12Glyph = 0x7A 101 kMenuF13Glyph = 0x87 102 kMenuF14Glyph = 0x88 103 kMenuF15Glyph = 0x89 104 kMenuControlISOGlyph = 0x8A 105 kMenuAttrExcludesMarkColumn = (1 << 0) 106 kMenuAttrAutoDisable = (1 << 2) 107 kMenuAttrUsePencilGlyph = (1 << 3) 108 kMenuAttrHidden = (1 << 4) 109 kMenuItemAttrDisabled = (1 << 0) 110 kMenuItemAttrIconDisabled = (1 << 1) 111 kMenuItemAttrSubmenuParentChoosable = (1 << 2) 112 kMenuItemAttrDynamic = (1 << 3) 113 kMenuItemAttrNotPreviousAlternate = (1 << 4) 114 kMenuItemAttrHidden = (1 << 5) 115 kMenuItemAttrSeparator = (1 << 6) 116 kMenuItemAttrSectionHeader = (1 << 7) 117 kMenuItemAttrIgnoreMeta = (1 << 8) 118 kMenuItemAttrAutoRepeat = (1 << 9) 119 kMenuItemAttrUseVirtualKey = (1 << 10) 120 kMenuItemAttrCustomDraw = (1 << 11) 121 kMenuItemAttrIncludeInCmdKeyMatching = (1 << 12) 122 kMenuTrackingModeMouse = 1 123 kMenuTrackingModeKeyboard = 2 124 kMenuEventIncludeDisabledItems = 0x0001 125 kMenuEventQueryOnly = 0x0002 126 kMenuEventDontCheckSubmenus = 0x0004 127 kMenuItemDataText = (1 << 0) 128 kMenuItemDataMark = (1 << 1) 129 kMenuItemDataCmdKey = (1 << 2) 130 kMenuItemDataCmdKeyGlyph = (1 << 3) 131 kMenuItemDataCmdKeyModifiers = (1 << 4) 132 kMenuItemDataStyle = (1 << 5) 133 kMenuItemDataEnabled = (1 << 6) 134 kMenuItemDataIconEnabled = (1 << 7) 135 kMenuItemDataIconID = (1 << 8) 136 kMenuItemDataIconHandle = (1 << 9) 137 kMenuItemDataCommandID = (1 << 10) 138 kMenuItemDataTextEncoding = (1 << 11) 139 kMenuItemDataSubmenuID = (1 << 12) 140 kMenuItemDataSubmenuHandle = (1 << 13) 141 kMenuItemDataFontID = (1 << 14) 142 kMenuItemDataRefcon = (1 << 15) 143 kMenuItemDataAttributes = (1 << 16) 144 kMenuItemDataCFString = (1 << 17) 145 kMenuItemDataProperties = (1 << 18) 146 kMenuItemDataIndent = (1 << 19) 147 kMenuItemDataCmdVirtualKey = (1 << 20) 148 kMenuItemDataAllDataVersionOne = 0x000FFFFF 149 kMenuItemDataAllDataVersionTwo = kMenuItemDataAllDataVersionOne | kMenuItemDataCmdVirtualKey 150 kMenuDefProcPtr = 0 151 kMenuPropertyPersistent = 0x00000001 152 kHierarchicalFontMenuOption = 0x00000001 153 gestaltContextualMenuAttr = FOUR_CHAR_CODE('cmnu') 154 gestaltContextualMenuUnusedBit = 0 155 gestaltContextualMenuTrapAvailable = 1 156 gestaltContextualMenuHasAttributeAndModifierKeys = 2 157 gestaltContextualMenuHasUnicodeSupport = 3 158 kCMHelpItemNoHelp = 0 159 kCMHelpItemAppleGuide = 1 160 kCMHelpItemOtherHelp = 2 161 kCMHelpItemRemoveHelp = 3 162 kCMNothingSelected = 0 163 kCMMenuItemSelected = 1 164 kCMShowHelpSelected = 3 165 keyContextualMenuName = FOUR_CHAR_CODE('pnam') 166 keyContextualMenuCommandID = FOUR_CHAR_CODE('cmcd') 167 keyContextualMenuSubmenu = FOUR_CHAR_CODE('cmsb') 168 keyContextualMenuAttributes = FOUR_CHAR_CODE('cmat') 169 keyContextualMenuModifiers = FOUR_CHAR_CODE('cmmd') 170