Instance Property

shouldInvalidateLayoutForHighlightChange

Determines whether the scrubber should refresh its layout when an item is highlighted.

Declaration

var shouldInvalidateLayoutForHighlightChange: Bool { get }

Discussion

If true, the scrubber invalidates its layout when an item is highlighted. Subclasses should return true if the highlight state affects the item layout.

The base implementation of this method returns false.

See Also

Subclassing a Scrubber Layout

func prepare()

Gives you an opportunity to perform layout calculations when the scrubber's layout is invalidated.

var scrubberContentSize: NSSize

The size required to contain all elements within the scrubber.

func layoutAttributesForItem(at: Int) -> NSScrubberLayoutAttributes?

The layout attributes for the item with the specified index.

func layoutAttributesForItems(in: NSRect) -> Set<NSScrubberLayoutAttributes>

The set of layout attributes for all items within the provided rectangle.

var shouldInvalidateLayoutForSelectionChange: Bool

Determines whether the scrubber should refresh its layout when the selection changes.

func shouldInvalidateLayoutForChange(fromVisibleRect: NSRect, toVisibleRect: NSRect) -> Bool

Determines whether the scrubber should refresh its layout in response to a change of its visible region.

var automaticallyMirrorsInRightToLeftLayout: Bool

Determines whether the scrubber mirrors its layout for right-to-left layouts.