VerticalSlider.h 731 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #pragma once
  7. #ifndef GWEN_CONTROLS_VERTICALSLIDER_H
  8. #define GWEN_CONTROLS_VERTICALSLIDER_H
  9. #include "Gwen/Controls/Base.h"
  10. #include "Gwen/Controls/Button.h"
  11. #include "Gwen/Controls/Dragger.h"
  12. #include "Gwen/Gwen.h"
  13. #include "Gwen/Skin.h"
  14. #include "Gwen/Controls/Slider.h"
  15. namespace Gwen
  16. {
  17. namespace Controls
  18. {
  19. class GWEN_EXPORT VerticalSlider : public Slider
  20. {
  21. GWEN_CONTROL( VerticalSlider, Slider );
  22. virtual void Layout( Skin::Base* skin );
  23. virtual void Render( Skin::Base* skin );
  24. virtual float CalculateValue();
  25. virtual void UpdateBarFromValue();
  26. virtual void OnMouseClickLeft( int x, int y, bool bDown );
  27. };
  28. }
  29. }
  30. #endif