ProjectManager 0.2
EditorGuide.h
1/*
2 EditorGuide.h
3
4 Interface declaration of the EditorGuide class for the
5 ProjectManager application.
6
7 Copyright (C) 2005 Saso Kiselkov
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22*/
23
24#import <Foundation/NSObject.h>
25#import <Foundation/NSGeometry.h>
26
27typedef enum {
28 DottedGuideStyle, // default style
29 DashedGuideStyle, // dashed with dashes of length 5 and skips of length 4
30 SolidGuideStyle, // solid colored line
31 AnyGuideStyle // use the user-preferred style
32} EditorGuideStyle;
33
34@class NSColor;
35
36@interface EditorGuide : NSObject
37{
38 float offset;
39 BOOL isHorizontal;
40 BOOL isSelected;
41
42 EditorGuideStyle style;
43 NSColor * color, * selectedColor;
44}
45
46- (void) drawRect: (NSRect) r;
47
48- (void) setOffset: (float) anOffset;
49- (float) offset;
50
51- (void) setHorizontal: (BOOL) flag;
52- (BOOL) isHorizontal;
53
54- (void) setSelected: (BOOL) flag;
55- (BOOL) isSelected;
56
57- (void) setGuideStyle: (EditorGuideStyle) aStyle;
58- (EditorGuideStyle) guideStyle;
59
60- (void) setColor: (NSColor *) aColor;
61- (NSColor *) color;
62
63@end
A guide is a line (either horizontal or vertical) which draws itself inside a view at a specified off...
Definition EditorGuide.h:37