/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #pragma once #ifndef GWEN_CONTROLS_HORIZONTALSLIDER_H #define GWEN_CONTROLS_HORIZONTALSLIDER_H #include "gwen_base.h" #include "gwen_button.h" #include "gwen_dragger.h" #include "../gwen.h" #include "../gwen_skin.h" #include "gwen_slider.h" namespace Gwen { namespace Controls { class GWEN_EXPORT HorizontalSlider : public Slider { GWEN_CONTROL( HorizontalSlider, Slider ); virtual void Layout( Skin::Base* skin ); virtual void Render( Skin::Base* skin ); virtual float CalculateValue(); virtual void UpdateBarFromValue(); virtual void OnMouseClickLeft( int x, int y, bool bDown ); }; } } #endif