1 /*
2  Project: Graphos
3  GRBox.h
4 
5  Copyright (C) 2007-2013 GNUstep Application Project
6 
7  Author: Ing. Riccardo Mottola
8 
9  Created: 2007-09-21
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 <AppKit/NSBezierPath.h>
29 #import "GRPathObject.h"
30 #import "GRObjectControlPoint.h"
31 
32 @interface GRBox : GRPathObject
33 {
34   NSPoint    pos;
35   NSSize     size;
36   NSRect     bounds;
37 
38   NSRect     boundsZ;
39 
40   GRObjectControlPoint *startControlPoint;
41   GRObjectControlPoint *endControlPoint;
42 
43   CGFloat rotation;
44 }
45 
46 - (NSPoint) position;
47 - (BOOL)onControlPoint:(NSPoint)p;
48 - (void)setStartAtPoint:(NSPoint)aPoint;
49 - (void)setEndAtPoint:(NSPoint)aPoint;
50 - (GRObjectControlPoint *) startControlPoint;
51 - (GRObjectControlPoint *) endControlPoint;
52 
53 
54 @end
55