May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSRulerView — Mac OS X 10.0
This is a subclass of NSView and is used to draw
rulers in an NSScrollView. A
ruler view keeps
track of the units used to convert measurements between pixels and
whatever unit the client specifies should be displayed by the ruler
view. A ruler view may contain ruler markers, which are instances of
the class NSRulerMarker.
|
|
@interface NSRulerView : NSView
|
// Initializers
|
- (id)initWithScrollView:(NSScrollView *)scrollView orientation:(NSRulerOrientation)orientation; |
// Accessor Methods
|
- (void)setReservedThicknessForAccessoryView:(float)thickness; |
- (float)reservedThicknessForAccessoryView;
|
- (void)setScrollView:(NSScrollView *)scrollView; |
- (NSScrollView *)scrollView;
|
- (void)setOriginOffset:(float)offset; |
- (float)originOffset;
|
- (void)setOrientation:(NSRulerOrientation)orientation; |
- (NSRulerOrientation)orientation;
|
- (void)setClientView:(NSView *)client; |
- (NSView *)clientView;
|
- (void)setReservedThicknessForMarkers:(float)thickness; |
- (float)reservedThicknessForMarkers;
|
- (void)setMarkers:(NSArray *)markers; |
- (NSArray *)markers;
|
- (void)setRuleThickness:(float)thickness; |
- (float)ruleThickness;
|
- (void)setAccessoryView:(NSView *)accessory; |
- (NSView *)accessoryView;
|
- (void)setMeasurementUnits:(NSString *)unitName; |
- (NSString *)measurementUnits;
|
// Class Methods
|
+ (void)registerUnitWithName ... |
Read now
Unlock full access