Class

NSScrubberLayoutAttributes

The layout of a scrubber item.

Declaration

@interface NSScrubberLayoutAttributes : NSObject

Overview

A layout attributes object is the model for the layout of a single item in a scrubber control.

If you require model attributes in addition to those provided by this class, create a subclass and add appropriate attributes. Subclasses must implement isEqual:, hash and the NSCopying protocol.

Topics

Creating Layout Attributes

+ layoutAttributesForItemAtIndex:

Creates a new layout attributes object for the specified scrubber item index.

Controlling the Layout

alpha

The item's alpha value.

frame

The frame of the scrubber item.

itemIndex

The index of the scrubber item that is represented by the item's layout attributes.

Relationships

Inherits From

Conforms To

See Also

Scrubber Layouts

NSScrubberFlowLayout

A concrete layout object that arranges items end-to-end in a linear strip.

NSScrubberFlowLayoutDelegate

A protocol that a scrubber delegate can adopt to provide the size of an item.

NSScrubberProportionalLayout

A concrete layout object that sizes each item to some fraction of the scrubber's visible size.

NSScrubberLayout

An abstract class that describes the layout of items within a scrubber control.