00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _CEGUIPropertyHelper_h_
00031 #define _CEGUIPropertyHelper_h_
00032
00033 #include "CEGUIWindow.h"
00034
00035
00036
00037 namespace CEGUI
00038 {
00043 class CEGUIEXPORT PropertyHelper
00044 {
00045 public:
00046 static float stringToFloat(const String& str);
00047 static uint stringToUint(const String& str);
00048 static int stringToInt(const String& str);
00049 static bool stringToBool(const String& str);
00050 static Size stringToSize(const String& str);
00051 static Point stringToPoint(const String& str);
00052 static Rect stringToRect(const String& str);
00053 static const Image* stringToImage(const String& str);
00054 static colour stringToColour(const String& str);
00055 static ColourRect stringToColourRect(const String& str);
00056 static UDim stringToUDim(const String& str);
00057 static UVector2 stringToUVector2(const String& str);
00058 static URect stringToURect(const String& str);
00059
00060 static String floatToString(float val);
00061 static String uintToString(uint val);
00062 static String intToString(int val);
00063 static String boolToString(bool val);
00064 static String sizeToString(const Size& val);
00065 static String pointToString(const Point& val);
00066 static String rectToString(const Rect& val);
00067 static String imageToString(const Image* const val);
00068 static String colourToString(const colour& val);
00069 static String colourRectToString(const ColourRect& val);
00070 static String udimToString(const UDim& val);
00071 static String uvector2ToString(const UVector2& val);
00072 static String urectToString(const URect& val);
00073 };
00074
00075 }
00076
00077
00078 #endif // end of guard _CEGUIPropertyHelper_h_