mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
26 lines
440 B
C
26 lines
440 B
C
|
#pragma once
|
||
|
|
||
|
#include "../GuiComponent.h"
|
||
|
|
||
|
class SliderComponent : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
SliderComponent(Window* window, float min, float max);
|
||
|
|
||
|
void setValue(float val);
|
||
|
float getValue();
|
||
|
|
||
|
bool input(InputConfig* config, Input input) override;
|
||
|
void update(int deltaTime) override;
|
||
|
void onRender() override;
|
||
|
|
||
|
void setSize(Vector2u size);
|
||
|
|
||
|
private:
|
||
|
float mMin, mMax;
|
||
|
float mValue;
|
||
|
float mMoveScale;
|
||
|
|
||
|
float mMoveRate;
|
||
|
};
|