-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSFRulerView.h
57 lines (42 loc) · 1.14 KB
/
SFRulerView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// SFRulerView.h
// ShinyRuler
//
// Created by Matteo rattotti on 12/17/07.
// Copyright 2007 www.shinyfrog.net. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "SFResizeControl.h"
#import "SFCursorView.h"
enum
{
SFRulerMarkPositionTop = 1,
SFRulerMarkPositionBottom = 2,
SFRulerMarkPositionLeft = 3,
SFRulerMarkPositionRight = 4
};
@interface SFRulerView : NSView {
float markDistance;
float markHeight;
float markMediumHeight;
float markMediumSpace;
float markBigHeight;
float markBigSpace;
NSTrackingRectTag trackingRect;
NSColor *initialColor;
NSColor *finalColor;
NSGradient *bgGradient;
BOOL orizontal;
SFResizeControl *resizeView;
SFCursorView *cursorView;
}
- (NSBezierPath *) rulerShape:(NSRect)rulerBounds;
- (NSBezierPath *) rulerMarkShape:(NSRect)rulerRect position:(int)rulerPosition;
- (NSPoint) tickSpace:(float)space tickHeight:(float)height position:(int)position;
- (void) drawMarkNumber:(NSRect)rulerRect;
- (BOOL) isOrizontal;
- (SFCursorView *) cursorView;
- (void)resetCursorRects;
- (void)clearTrackingRect;
- (void)setTrackingRect;
@end