Carbon


Theme Menu Item Type Constants

Header: Appearance.h

enum {
    kThemeMenuItemPlain = 0,
    kThemeMenuItemHierarchical = 1,
    kThemeMenuItemScrollUpArrow = 2,
    kThemeMenuItemScrollDownArrow = 3,
    kThemeMenuItemAtTop = 256,
    kThemeMenuItemAtBottom = 512,
    kThemeMenuItemHierBackground = 1024,
    kThemeMenuItemPopUpBackground = 2048,
    kThemeMenuItemHasIcon = 32768
};

Constant descriptions

kThemeMenuItemPlain

A plain menu item. Available with Appearance Manager 1.0.1 and later.

kThemeMenuItemHierarchical

A hierarchical menu item. Available with Appearance Manager 1.0.1 and later.

kThemeMenuItemScrollUpArrow

A scroll-up arrow. Available with Appearance Manager 1.0.1 and later.

kThemeMenuItemScrollDownArrow

A scroll-down arrow. Available with Appearance Manager 1.0.1 and later.

kThemeMenuItemAtTop

This value may be added to other ThemeMenuItemType constants to specify that the item being drawn appears at the top of the menu. Available with Appearance Manager 1.1 and later.

kThemeMenuItemAtBottom

This value may be added to other ThemeMenuItemType constants to specify that the item being drawn appears at the bottom of the menu. Available with Appearance Manager 1.1 and later.

kThemeMenuItemHierBackground

This value may be added to other ThemeMenuItemType constants to specify that the item being drawn is located in a hierarchical menu. Available with Appearance Manager 1.1 and later.

kThemeMenuItemPopUpBackground

This value may be added to other ThemeMenuItemType constants to specify that the item being drawn is located in a pop-up menu. Available with Appearance Manager 1.1 and later.

kThemeMenuItemHasIcon

This value may be added to the kThemeMenuItemPlain or kThemeMenuItemHierarchical constants, to specify that an icon is drawn along with the item text. This value may not be used with the kThemeMenuItemScrollUpArrow and kThemeMenuItemScrollDownArrow constants. Available with Appearance Manager 1.1 and later.

Constants of type ThemeMenuItemType identify types of menu items. Your application may pass a ThemeMenuItemType constant to the function DrawThemeMenuItem to draw a menu item of the specified type, or it may pass a ThemeMenuItemType constant to the function GetThemeMenuItemExtra to retrieve spatial information for the given menu item type under the current theme.


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