Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/PropertyHelper.pkg @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 15 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/***********************************************************************
2        PropertyHelper
3***********************************************************************/
4class PropertyHelper
5{
6        static  float                   stringToFloat(string str);
7        static  unsigned int    stringToUint(string str);
8        static  bool                    stringToBool(string str);
9        static  Size                    stringToSize(string str);
10        static  Vector2                 stringToPoint(string str);
11        static  Rect                    stringToRect(string str);
12        static  const Image*    stringToImage(string str);
13        static  colour                  stringToColour(string str);
14        static  ColourRect              stringToColourRect(string str);
15
16        static  UDim                    stringToUDim(string str);
17        static  UVector2                stringToUVector2(string str);
18        static  URect                   stringToURect(string str);
19
20        static string   floatToString(float val);
21        static string   uintToString(unsigned int val);
22        static string   boolToString(bool val);
23        static string   sizeToString(const Size& val);
24        static string   pointToString(const Vector2& val);
25        static string   rectToString(const Rect& val);
26        static string   imageToString(const Image* val);
27        static string   colourToString(const colour& val);
28        static string   colourRectToString(const ColourRect& val);
29
30        static string   udimToString(const UDim& val);
31        static string   uvector2ToString(const UVector2& val);
32        static string   urectToString(const URect& val);
33};
Note: See TracBrowser for help on using the repository browser.