class mrpt::imgui::CImGuiMessageQueue
Overview
Modal message boxes for errors, warnings and information, shown one at a time (the replacement for wxMessageBox()).
Messages can be queued from any place of the frame code; render() must be called once per frame.
#include <mrpt/imgui/widgets.h> class CImGuiMessageQueue { public: // enums enum Kind; // structs struct Msg; // methods void info( const std::string& title, const std::string& text ); void warning( const std::string& title, const std::string& text ); void error( const std::string& title, const std::string& text ); void push( Kind kind, const std::string& title, const std::string& text ); size_t pending() const; void clear(); void render(); };
Methods
void render()
Shows the oldest queued message, until the user closes it.