mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
28 lines
792 B
C
28 lines
792 B
C
|
#include "../GuiComponent.h"
|
||
|
|
||
|
#include "../components/NinePatchComponent.h"
|
||
|
#include "../components/ButtonComponent.h"
|
||
|
#include "../components/ComponentGrid.h"
|
||
|
#include "../components/TextEditComponent.h"
|
||
|
#include "../components/TextComponent.h"
|
||
|
|
||
|
class GuiTextEditPopup : public GuiComponent
|
||
|
{
|
||
|
public:
|
||
|
GuiTextEditPopup(Window* window, const std::string& title, const std::string& initValue,
|
||
|
const std::function<void(const std::string&)>& okCallback, bool multiLine, const char* acceptBtnText = "OK");
|
||
|
|
||
|
bool input(InputConfig* config, Input input);
|
||
|
void onSizeChanged();
|
||
|
|
||
|
private:
|
||
|
NinePatchComponent mBackground;
|
||
|
ComponentGrid mGrid;
|
||
|
|
||
|
std::shared_ptr<TextComponent> mTitle;
|
||
|
std::shared_ptr<TextEditComponent> mText;
|
||
|
std::shared_ptr<ComponentGrid> mButtonGrid;
|
||
|
|
||
|
bool mMultiLine;
|
||
|
};
|