46 setFrameSize(sliderSkin.frameSize);
47 setMarkerLength(sliderHandleSkin.getMinWidth());
50 setHeight(sliderSkin.getMinHeight() + 2 * sliderSkin.padding);
63 handleState.
x += getMarkerPosition();
A central point of control for graphics.
Theme * getTheme() const
The global GUI theme.
void draw(gcn::Graphics *graphics) override
Draws the slider.
void init()
Used to initialize instances.
void mouseEntered(gcn::MouseEvent &event) override
Called when the mouse enteres the widget area.
void mouseExited(gcn::MouseEvent &event) override
Called when the mouse leaves the widget area.
Slider(double scaleEnd=1.0)
Constructor with scale start equal to 0.
const Skin & getSkin(SkinType skinType) const
void drawSkin(Graphics *graphics, SkinType type, const WidgetState &state) const