ScrollBarButton.h 594 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #pragma once
  7. #ifndef GWEN_CONTROLS_SCROLLBARBOTTON_H
  8. #define GWEN_CONTROLS_SCROLLBARBOTTON_H
  9. #include "Gwen/Controls/Button.h"
  10. namespace Gwen
  11. {
  12. namespace ControlsInternal
  13. {
  14. class GWEN_EXPORT ScrollBarButton : public Controls::Button
  15. {
  16. public:
  17. GWEN_CONTROL( ScrollBarButton, Controls::Button );
  18. void Render( Skin::Base* skin );
  19. void SetDirectionUp();
  20. void SetDirectionDown();
  21. void SetDirectionLeft();
  22. void SetDirectionRight();
  23. protected:
  24. int m_iDirection;
  25. };
  26. }
  27. }
  28. #endif