Structs



MDEFDrawItemsData

struct  MDEFDrawItemsData  {
  MenuItemIndex  firstItem;
  MenuItemIndex  lastItem;
  MenuTrackingData  *  trackingData;
  void  *  context;
};

Fields

NameDescription
firstItemThe first item to draw.
lastItemThe last item to draw.
trackingDataInformation about the menu's tracking state. The virtualMenuTop and virtualMenuBottom fields in this structure will be the most useful in handling the DrawItems message.
contextA drawing context that may be passed to one of the Appearance Manager APIs that takes a context.

MDEFHiliteItemData

struct  MDEFHiliteItemData  {
  MenuItemIndex  previousItem;
  MenuItemIndex  newItem;
};


MenuItemDataRec

struct  MenuItemDataRec  {
  MenuItemDataFlags  whichData;
  StringPtr  text;
  UniChar  mark;
  UniChar  cmdKey;
  UInt32  cmdKeyGlyph;
  UInt32  cmdKeyModifiers;
  Style  style;
  Boolean  enabled;
  Boolean  iconEnabled;
  UInt8  filler1;
  SInt32  iconID;
  UInt32  iconType;
  Handle  iconHandle;
  MenuCommand  cmdID;
  TextEncoding  encoding;
  MenuID  submenuID;
  MenuRef  submenuHandle;
  SInt32  fontID;
  UInt32  refcon;
  OptionBits  attr;
  CFStringRef  cfText;
  Collection  properties;
  UInt32  indent;
};

When using this structure with Copy/SetMenuItemData, the caller must first set the whichData field to a combination of MenuItemDataFlags indicating which specific data should be retrieved or set. Some fields also require initialization before calling CopyMenuItemData; see the individual MenuItemDataFlags documentation for details.


MenuTrackingData

struct  MenuTrackingData  {
  MenuRef  menu;
  MenuItemIndex  itemSelected;
  MenuItemIndex  itemUnderMouse;
  Rect  itemRect;
  SInt32  virtualMenuTop;
  SInt32  virtualMenuBottom;
};


© 2000 Apple Computer, Inc. — (Last Updated 7/21/2000)