Crazy Eddies GUI System  0.7.2
CEGUIPropertyHelper.h
1 /***********************************************************************
2  filename: CEGUIPropertyHelper.h
3  created: 6/7/2004
4  author: Paul D Turner
5 
6  purpose: Interface to the PropertyHelper class
7 *************************************************************************/
8 /***************************************************************************
9  * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining
12  * a copy of this software and associated documentation files (the
13  * "Software"), to deal in the Software without restriction, including
14  * without limitation the rights to use, copy, modify, merge, publish,
15  * distribute, sublicense, and/or sell copies of the Software, and to
16  * permit persons to whom the Software is furnished to do so, subject to
17  * the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be
20  * included in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28  * OTHER DEALINGS IN THE SOFTWARE.
29  ***************************************************************************/
30 #ifndef _CEGUIPropertyHelper_h_
31 #define _CEGUIPropertyHelper_h_
32 
33 #include "CEGUIWindow.h"
34 
35 
36 // Start of CEGUI namespace section
37 namespace CEGUI
38 {
43 class CEGUIEXPORT PropertyHelper
44 {
45 public:
46  static float stringToFloat(const String& str);
47  static uint stringToUint(const String& str);
48  static int stringToInt(const String& str);
49  static bool stringToBool(const String& str);
50  static Size stringToSize(const String& str);
51  static Point stringToPoint(const String& str);
52  static Vector3 stringToVector3(const String& str);
53  static Rect stringToRect(const String& str);
54  static const Image* stringToImage(const String& str);
55  static colour stringToColour(const String& str);
56  static ColourRect stringToColourRect(const String& str);
57  static UDim stringToUDim(const String& str);
58  static UVector2 stringToUVector2(const String& str);
59  static URect stringToURect(const String& str);
60  static UBox stringToUBox(const String& str);
61 
62  static String floatToString(float val);
63  static String uintToString(uint val);
64  static String intToString(int val);
65  static String boolToString(bool val);
66  static String sizeToString(const Size& val);
67  static String pointToString(const Point& val);
68  static String vector3ToString(const Vector3& val);
69  static String rectToString(const Rect& val);
70  static String imageToString(const Image* const val);
71  static String colourToString(const colour& val);
72  static String colourRectToString(const ColourRect& val);
73  static String udimToString(const UDim& val);
74  static String uvector2ToString(const UVector2& val);
75  static String urectToString(const URect& val);
76  static String uboxToString(const UBox& val);
77 };
78 
79 } // End of CEGUI namespace section
80 
81 
82 #endif // end of guard _CEGUIPropertyHelper_h_