mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 22:55:39 +00:00
19 lines
310 B
C
19 lines
310 B
C
|
#pragma once
|
||
|
|
||
|
#include "../GuiComponent.h"
|
||
|
|
||
|
class SwitchComponent : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
SwitchComponent(Window* window, bool state = false);
|
||
|
|
||
|
bool input(InputConfig* config, Input input) override;
|
||
|
void onRender() override;
|
||
|
|
||
|
bool getState();
|
||
|
void setState(bool state);
|
||
|
|
||
|
private:
|
||
|
bool mState;
|
||
|
};
|