Carbon


ThemeTrackDrawInfo

Header: Appearance.h

struct ThemeTrackDrawInfo {
    ThemeTrackKind kind; 
    Rect bounds; 
    SInt32 min; 
    SInt32 max; 
    SInt32 value; 
    UInt32 reserved; 
    ThemeTrackAttributes attributes; 
    ThemeTrackEnableState enableState; 
    UInt8 filler1; 
    union {
          ScrollBarTrackInfo scrollbar; 
      SliderTrackInfo slider; 
      ProgressTrackInfo progress;
    } trackInfo;
};

Field descriptions

kind

A value of type ThemeTrackKind, specifying the type of track to be drawn. See “Theme Track Kind Constants” for descriptions of possible values.

bounds

A structure of type Rect specifying the dimensions and position of the track, in local coordinates.

min

A signed 32-bit integer specifying the minimum value for the track.

max

A signed 32-bit integer specifying the maximum value for the track.

value

A signed 32-bit integer specifying the current value for the track.

reserved

Reserved.

attributes

A value of type ThemeTrackAttributes specifying additional attributes of the track, such as whether the track has an indicator. See “Theme Track Attributes Constants” for descriptions of possible values.

enableState

A value of type ThemeTrackEnableState specifying the current state of the track control; see “Theme Track Enable State Constants” for descriptions of possible values.

filler1

A union of the ScrollBarTrackInfo, SliderTrackInfo, and ProgressTrackInfo structures. Your application fills in the structure that is appropriate for the kind of track with which you are working. See ScrollBarTrackInfo, SliderTrackInfo, and ProgressTrackInfo for details on these structures.

trackInfo

Your application fills out the applicable fields of a ThemeTrackDrawInfo structure to fully describe any given track control.

VERSION NOTES

The ThemeTrackDrawInfo structure is available with Appearance Manager 1.1 and later.


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