1 /*
2  Project: Graphos
3  GRObjectControlPoint.h
4 
5  Copyright (C) 2007-2013 GNUstep Application Project
6 
7  Author: Ing. Riccardo Mottola
8 
9  Created: 2007-11-18
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 #import <Foundation/Foundation.h>
27 
28 #ifndef MAC_OS_X_VERSION_10_4
29 #define MAC_OS_X_VERSION_10_4 1040
30 #endif
31 
32 #if !defined (GNUSTEP) &&  (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) && !defined(CGFloat)
33 #define NSUInteger unsigned
34 #define NSInteger int
35 #define CGFloat float
36 #endif
37 
38 @class GRBoxEditor;
39 
40 
41 @interface GRObjectControlPoint : NSObject <NSCopying>
42 {
43   BOOL isActiveHandle;
44   BOOL isSelect;
45   NSPoint center;
46   NSRect centerRect;
47   CGFloat zmFactor;
48 }
49 
50 - (id)initAtPoint:(NSPoint)aPoint zoomFactor:(CGFloat)zf;
51 
52 - (void)moveToPoint:(NSPoint)p;
53 
54 - (void)setZoomFactor:(CGFloat)f;
55 
56 - (NSPoint)center;
57 - (NSRect)centerRect;
58 
59 - (void)drawControlAsSelected: (BOOL)sel;
60 - (void)drawControl;
61 
62 
63 - (void)select;
64 - (void)unselect;
65 - (BOOL)isSelect;
66 - (BOOL)isActiveHandle;
67 
68 @end
69