Name
NSRulerMarker — Mac OS X 10.0
Synopsis
Instances of this class are used to display
symbolic markers in an
NSRulerView
. An example of ruler view markers are
those that text documents use to indicate the position of tab stops
or table columns. Markers are initialized with an associated ruler
view, a position in that view, an image used to represent the marker
in the ruler view, and an NSPoint
that specifies
what point in the image should be treated as the marker origin.
|
@interface NSRulerMarker : NSObject <NSCoding, NSCopying>
|
// Initializers
|
- (id)initWithRulerView:(NSRulerView *)ruler markerLocation:(float)location image:(NSImage *)image imageOrigin:(NSPoint)imageOrigin; |
// Accessor Methods
|
- (void)setRepresentedObject:(id <NSCopying>)representedObject; |
- (id <NSCopying>)representedObject;
|
- (void)setImageOrigin:(NSPoint)imageOrigin; |
- (NSPoint)imageOrigin;
|
- (void)setMarkerLocation:(float)location; |
- (float)markerLocation;
|
- (void)setMovable:(BOOL)flag; |
- (void)setImage:(NSImage *)image; |
- (NSImage *)image;
|
- (void)setRemovable:(BOOL)flag; |
// Instance Methods
|
- (void)drawRect:(NSRect)rect; |
- (NSRect)imageRectInRuler;
|
- (BOOL)isDragging;
|
- (BOOL)isMovable;
|
- (BOOL)isRemovable;
|
- (NSRulerView *)ruler;
|
- (float)thicknessRequiredInRuler;
|
- (BOOL)trackMouse:(NSEvent *)mouseDownEvent adding:(BOOL)isAdding; |
// Methods Implementing ... |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.