ES-DE/src/components/SwitchComponent.h
2014-01-24 16:21:10 -06:00

21 lines
453 B
C++

#pragma once
#include "../GuiComponent.h"
// A very simple "on/off" switch.
// Should hopefully be switched to use images instead of text in the future.
class SwitchComponent : public GuiComponent
{
public:
SwitchComponent(Window* window, bool state = false);
bool input(InputConfig* config, Input input) override;
void render(const Eigen::Affine3f& parentTrans) override;
bool getState();
void setState(bool state);
private:
bool mState;
};