ES-DE/src/components/TextEditComponent.h

26 lines
468 B
C
Raw Normal View History

2013-08-18 14:16:11 +00:00
#pragma once
#include "../GuiComponent.h"
#include "GuiBox.h"
class TextEditComponent : public GuiComponent
{
public:
TextEditComponent(Window* window);
bool input(InputConfig* config, Input input) override;
void onFocusGained() override;
void onFocusLost() override;
void onSizeChanged() override;
void setValue(const std::string& val) override;
std::string getValue() const override;
private:
std::string mText;
bool mAllowNewlines;
GuiBox mBox;
};