Carbon


Theme Button Kind Constants

Header: Appearance.h

enum {
    kThemePushButton = 0,
    kThemeCheckBox = 1,
    kThemeRadioButton = 2,
    kThemeBevelButton = 3,
    kThemeArrowButton = 4,
    kThemePopupButton = 5,
    kThemeDisclosureButton = 6,
    kThemeIncDecButton = 7,
    kThemeSmallBevelButton = 8,
    kThemeMediumBevelButton = 3,
    kThemeLargeBevelButton = 9,
    kThemeListHeaderButton = 10,
    kThemeRoundButton = 11,
    kThemeLargeRoundButton = 12
};

Constant descriptions

kThemePushButton

Identifies a push button.

kThemeCheckBox

Identifies a checkbox.

kThemeRadioButton

Identifies a radio button.

kThemeBevelButton

Identifies a bevel button with a medium-width bevel; this value is the same as kThemeMediumBevelButton.

kThemeArrowButton

Identifies an arrow button. This button has the appearance of a single button containing small upward- and downward-pointing triangles drawn back to back; the typical use of this button is with an editable text field to create an editable pop-up menu. This button should not be confused with an increment/decrement button.

kThemePopupButton

Identifies a pop-up menu button. This button has the appearance of a single button made of two parts: a menu item text part and an arrow part.

kThemeDisclosureButton

Identifies a disclosure triangle.

kThemeIncDecButton

Identifies an increment/decrement or “little arrows” button. This button has the appearance of two separate buttons—one containing an upward-pointing triangle and the other containing a downward-pointing triangle—placed back to back. This button should not be confused with the arrow button.

kThemeSmallBevelButton

Identifies a bevel button with a small-width bevel.

kThemeMediumBevelButton

Identifies a bevel button with a medium-width bevel; this value is the same as kThemeBevelButton.

kThemeLargeBevelButton

Identifies a bevel button with a large-width bevel.

kThemeListHeaderButton
kThemeRoundButton
kThemeLargeRoundButton

You can pass constants of type ThemeButtonKind to the function DrawThemeButton to draw a theme-compliant button of a specific type. You can also pass ThemeButtonKind constants to the functions GetThemeButtonRegion and GetThemeButtonContentBounds to retrieve information about a specific button type. The ThemeButtonKind constants are available with Appearance Manager 1.1 and later.


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