Gwen.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. GWEN modified and adapted for the Bullet Physics Library
  3. Using the Zlib license with permission from Garry Newman
  4. Copyright (c) 2010 Facepunch Studios
  5. This software is provided 'as-is', without any express or implied warranty.
  6. In no event will the authors be held liable for any damages arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it freely,
  9. subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  11. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  12. 3. This notice may not be removed or altered from any source distribution.
  13. */
  14. #ifndef GWEN_GWEN_H
  15. #define GWEN_GWEN_H
  16. #include "Gwen/Macros.h"
  17. #include "Gwen/Config.h"
  18. #include "Gwen/Exports.h"
  19. #include "Gwen/Structures.h"
  20. #include "Gwen/Skin.h"
  21. #include "Gwen/Controls/Base.h"
  22. #include "Gwen/Controls/Canvas.h"
  23. #include "Gwen/Align.h"
  24. #include "Gwen/TextObject.h"
  25. // Enable the hook system (se Hook.h)
  26. #define GWEN_HOOKSYSTEM
  27. namespace Gwen
  28. {
  29. namespace Controls
  30. {
  31. class Base;
  32. class Canvas;
  33. }
  34. namespace Renderer
  35. {
  36. class Base;
  37. }
  38. namespace Debug
  39. {
  40. void GWEN_EXPORT Msg( const wchar_t* str, ... );
  41. void GWEN_EXPORT Msg( const char* str, ... );
  42. void GWEN_EXPORT AssertCheck( bool b, const char* strMsg );
  43. }
  44. namespace Colors
  45. {
  46. static const Color Black ( 0, 0, 0, 255 );
  47. static const Color Red ( 255, 0, 0, 255 );
  48. static const Color Yellow ( 255, 255, 0, 255 );
  49. static const Color White ( 255, 255, 255, 255 );
  50. static const Color Blue ( 0, 0, 255, 255 );
  51. static const Color Green ( 0, 255, 0, 255 );
  52. static const Color Grey ( 200, 200, 200, 255 );
  53. static const Color GreyLight( 230, 230, 230, 255 );
  54. static const Color GwenPink ( 255, 65, 199, 255 );
  55. };
  56. extern GWEN_EXPORT Controls::Base* HoveredControl;
  57. extern GWEN_EXPORT Controls::Base* KeyboardFocus;
  58. extern GWEN_EXPORT Controls::Base* MouseFocus;
  59. } //namespace Gwen
  60. #endif