1 /*
2  Project: Graphos
3  GRCircle.h
4 
5  Copyright (C) 2009-2013 GNUstep Application Project
6 
7  Author: Ing. Riccardo Mottola
8 
9  Created: 2009-12-27
10 
11  This application is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public
13  License as published by the Free Software Foundation; either
14  version 2 of the License, or (at your option) any later version.
15 
16  This application is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  Library General Public License for more details.
20 
21  You should have received a copy of the GNU General Public
22  License along with this library; if not, write to the Free
23  Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24  */
25 
26 
27 #import <Foundation/Foundation.h>
28 #import "GRPathObject.h"
29 #import "GRObjectControlPoint.h"
30 
31 
32 @interface GRCircle : GRPathObject
33 {
34     NSPoint      pos;
35     NSSize       size;
36     NSRect       bounds;
37 
38     NSRect       boundsZ;
39 
40     GRObjectControlPoint *startControlPoint;
41     GRObjectControlPoint *endControlPoint;
42 
43     BOOL isCircle;
44 
45     CGFloat rotation;
46 }
47 
48 - (BOOL)onControlPoint:(NSPoint)p;
49 - (void)setStartAtPoint:(NSPoint)aPoint;
50 - (void)setEndAtPoint:(NSPoint)aPoint;
51 - (GRObjectControlPoint *) startControlPoint;
52 - (GRObjectControlPoint *) endControlPoint;
53 - (NSRect)bounds;
54 - (NSPoint)position;
55 - (BOOL)circle;
56 - (void)setCircle:(BOOL)flag;
57 
58 @end
59