25class ImGuiInputTextCallbackData;
51 ChatBox(std::string title =
"JeVois-Pro ChatBox");
72 std::deque<std::pair<
bool , std::string> >
itsData;
82 int callback(ImGuiInputTextCallbackData * data);
A simple helper class for a chat box rendered in ImGui.
void draw()
Render into an ImGui window.
std::string get()
Get input string from user, or empty if no new input.
void freeze(bool doit)
Freeze/unfreeze the input box, typically to prevent new inputs until current reply is done.
virtual ~ChatBox()
Destructor.
int callback(ImGuiInputTextCallbackData *data)
void writeString(std::string const &out)
Update text that is displayed above input box (output from the underlying chat bot)
std::string const itsTitle
std::vector< std::string > itsHistory
void clear()
Clear all displayed text:
std::deque< std::pair< bool, std::string > > itsData
Main namespace for all JeVois classes and functions.