Symbol.h 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #pragma once
  7. #ifndef GWEN_CONTROLS_SYMBOL_H
  8. #define GWEN_CONTROLS_SYMBOL_H
  9. #include "Gwen/BaseRender.h"
  10. #include "Gwen/Controls/Base.h"
  11. #include "Gwen/Skin.h"
  12. namespace Gwen
  13. {
  14. namespace Controls
  15. {
  16. namespace Symbol
  17. {
  18. class GWEN_EXPORT Base : public Controls::Base
  19. {
  20. public:
  21. GWEN_CONTROL_INLINE( Base, Controls::Base )
  22. {
  23. SetMouseInputEnabled( false );
  24. }
  25. };
  26. class GWEN_EXPORT Arrow : public Base
  27. {
  28. public:
  29. Arrow( Gwen::Controls::Base* pnl ) : Base( pnl )
  30. {
  31. }
  32. virtual void Render( Gwen::Skin::Base* pSkin )
  33. {
  34. Gwen::Rect r( Width() / 2 - 2, Height() / 2 - 2, 5, 5 );
  35. pSkin->DrawArrowRight( r );
  36. }
  37. };
  38. }
  39. }
  40. }
  41. #endif