Instance Property

ruleThickness

The thickness of the area where ruler hash marks and labels are drawn.

Declaration

@property CGFloat ruleThickness;

Discussion

This value is the height of the ruler area for a horizontal ruler or the width of the ruler area for a vertical ruler. Rulers are by default 16.0 PostScript units thick. You should rarely need to change this layout attribute, but subclasses might do so to accommodate custom drawing.

See Also

Ruler layout

scrollView

The NSScrollView that owns the receiver to scrollView, without retaining it.

orientation

The orientation of the receiver to orientation.

NSRulerOrientation

These constants are defined to specify a ruler’s orientation and are used by orientation.

reservedThicknessForAccessoryView

The room available for the receiver’s accessory view to thickness.

reservedThicknessForMarkers

The room available for ruler markers to thickness.

requiredThickness

The thickness needed for proper tiling of the receiver within an NSScrollView.

baselineLocation

The location of the receiver’s baseline, in its own coordinate system.

flipped

A Boolean that indicates if the ruler view's coordinate system is flipped.