mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 03:54:34 -04:00
43 lines
599 B
C++
43 lines
599 B
C++
#ifndef TEXTINPUT_H
|
|
#define TEXTINPUT_H
|
|
|
|
#include "dlib/gui_widgets.h"
|
|
#include "ColorBox.h"
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
namespace nw
|
|
{
|
|
|
|
class TextInput : public dlib::drawable_window
|
|
{
|
|
public:
|
|
|
|
TextInput( string title, string message, string & result_ );
|
|
~TextInput();
|
|
|
|
private:
|
|
|
|
void on_button_clicked();
|
|
|
|
ColorBox whitePnl;
|
|
ColorBox line;
|
|
dlib::label messageTxt;
|
|
dlib::button okBt;
|
|
dlib::text_field textEdit;
|
|
string & result;
|
|
};
|
|
|
|
} //namespace nw
|
|
|
|
#endif // TEXTINPUT_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|