Crazy Eddies GUI System  0.7.1
CEGUIDragContainerProperties.h
1 /***********************************************************************
2  filename: CEGUIDragContainerProperties.h
3  created: 15/2/2005
4  author: Paul D Turner
5 *************************************************************************/
6 /***************************************************************************
7  * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining
10  * a copy of this software and associated documentation files (the
11  * "Software"), to deal in the Software without restriction, including
12  * without limitation the rights to use, copy, modify, merge, publish,
13  * distribute, sublicense, and/or sell copies of the Software, and to
14  * permit persons to whom the Software is furnished to do so, subject to
15  * the following conditions:
16  *
17  * The above copyright notice and this permission notice shall be
18  * included in all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26  * OTHER DEALINGS IN THE SOFTWARE.
27  ***************************************************************************/
28 #ifndef _CEGUIDragContainerProperties_h_
29 #define _CEGUIDragContainerProperties_h_
30 
31 #include "../CEGUIProperty.h"
32 
33 // Start of CEGUI namespace section
34 namespace CEGUI
35 {
36 // Start of DragContainerProperties namespace section
37 namespace DragContainerProperties
38 {
51  class DraggingEnabled : public Property
52  {
53  public:
55  "DraggingEnabled",
56  "Property to get/set the state of the dragging enabled setting for the DragContainer. Value is either \"True\" or \"False\".",
57  "True")
58  {}
59 
60  String get(const PropertyReceiver* receiver) const;
61  void set(PropertyReceiver* receiver, const String& value);
62  };
63 
75  class DragAlpha : public Property
76  {
77  public:
78  DragAlpha() : Property(
79  "DragAlpha",
80  "Property to get/set the dragging alpha value. Value is a float.",
81  "0.500000")
82  {}
83 
84  String get(const PropertyReceiver* receiver) const;
85  void set(PropertyReceiver* receiver, const String& value);
86  };
87 
99  class DragThreshold : public Property
100  {
101  public:
103  "DragThreshold",
104  "Property to get/set the dragging threshold value. Value is a float.",
105  "8.000000")
106  {}
107 
108  String get(const PropertyReceiver* receiver) const;
109  void set(PropertyReceiver* receiver, const String& value);
110  };
111 
126  class DragCursorImage : public Property
127  {
128  public:
130  "DragCursorImage",
131  "Property to get/set the mouse cursor image used when dragging. Value should be \"set:<imageset name> image:<image name>\".",
132  "")
133  {}
134 
135  String get(const PropertyReceiver* receiver) const;
136  void set(PropertyReceiver* receiver, const String& value);
137  };
138 
151  class StickyMode : public Property
152  {
153  public:
154  StickyMode() : Property(
155  "StickyMode",
156  "Property to get/set the state of the sticky mode setting for the "
157  "DragContainer. Value is either \"True\" or \"False\".",
158  "True")
159  {}
160 
161  String get(const PropertyReceiver* receiver) const;
162  void set(PropertyReceiver* receiver, const String& value);
163  };
164 
183  class FixedDragOffset : public Property
184  {
185  public:
187  "FixedDragOffset",
188  "Property to get/set the state of the fixed dragging offset "
189  "setting for the DragContainer. "
190  "Value is a UVector2 property value.",
191  "{{0,0},{0,0}}")
192  {}
193 
194  String get(const PropertyReceiver* receiver) const;
195  void set(PropertyReceiver* receiver, const String& value);
196  };
197 
213  {
214  public:
216  "UseFixedDragOffset",
217  "Property to get/set the setting that control whether the fixed "
218  "dragging offset will be used. "
219  "Value is either \"True\" or \"False\".",
220  "False")
221  {}
222 
223  String get(const PropertyReceiver* receiver) const;
224  void set(PropertyReceiver* receiver, const String& value);
225  };
226 
227 
228 } // End of DragContainerProperties namespace section
229 } // End of CEGUI namespace section
230 
231 #endif // end of guard _CEGUIDragContainerProperties_h_