Laxkit  0.0.7.1
rectpointdefs.h
1 //
2 //
3 // The Laxkit, a windowing toolkit
4 // Please consult http://laxkit.sourceforge.net about where to send any
5 // correspondence about this software.
6 //
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Library General Public
9 // License as published by the Free Software Foundation; either
10 // version 2 of the License, or (at your option) any later version.
11 //
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Library General Public License for more details.
16 //
17 // You should have received a copy of the GNU Library General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 //
21 // Copyright (C) 2010 by Tom Lechner
22 //
23 #ifndef _LAX_RECTPOINTDEFS_H
24 #define _LAX_RECTPOINTDEFS_H
25 
26 
27 //This file has a bunch of defines that are used by the code in RectInterface and ObjectInterface.
28 
29 
30 // These are returned for various draggable points and areas
31 #define RP_None 0
32 #define RP_Move 1
33 
34 #define RP_Center1 2
35 #define RP_Center2 3
36 #define RP_Shearpoint 4
37 
38 #define RP_Rotate_NE 5
39 #define RP_Rotate_NW 6
40 #define RP_Rotate_SE 7
41 #define RP_Rotate_SW 8
42 #define RP_Rotate_Any 9
43 
44 #define RP_Persp_NE 10
45 #define RP_Persp_NW 11
46 #define RP_Persp_SE 12
47 #define RP_Persp_SW 13
48 
49 #define RP_Shear_N 14
50 #define RP_Shear_W 15
51 #define RP_Shear_S 16
52 #define RP_Shear_E 17
53 
54 #define RP_Scale_N 18
55 #define RP_Scale_NW 19
56 #define RP_Scale_W 20
57 #define RP_Scale_SW 21
58 #define RP_Scale_S 22
59 #define RP_Scale_SE 23
60 #define RP_Scale_E 24
61 #define RP_Scale_NE 25
62 
63 #define RP_Flip_H 26
64 #define RP_Flip_V 27
65 #define RP_Flip1 28
66 #define RP_Flip2 29
67 #define RP_Flip_Go 30
68 
69 // These are used for convenience when computing handle dragging
70 #define RP_SW 101
71 #define RP_W 102
72 #define RP_NW 103
73 #define RP_N 104
74 #define RP_NE 105
75 #define RP_E 106
76 #define RP_SE 107
77 #define RP_S 108
78 #define RP_Middle 109
79 
80 #define RP_MAX 109
81 
82 
83 
84 #define HAS_CENTER1 1
85 #define HAS_CENTER2 2
86 #define HAS_SHEARPOINT 4
87 
88 // For RectInterface decorations
89 #define SHOW_OUTER_HANDLES (1<<0)
90 #define SHOW_INNER_HANDLES (1<<1)
91 #define SHOW_TARGET (1<<2)
92 #define SHOW_LINK_BALL (1<<3)
93 #define SHOW_CONSTRAINTS (1<<4)
94 
95 
96 
97 #endif
98 
99 
100 

Mon Feb 17 2014 11:52:57, Laxkit