mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 22:55:39 +00:00
26 lines
468 B
C
26 lines
468 B
C
|
#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;
|
||
|
};
|