CoolFace
Datasetpublic

dlxjj/imradv3

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes262downloads
ui_error_box.h36 linesDownload Raw Back to src
1// Generated with ImRAD 0.92// visit https://github.com/tpecholt/imrad3 4#pragma once5#include "imrad.h"6 7class ErrorBox8{9public:10    /// @begin interface11    void OpenPopup(std::function<void(ImRad::ModalResult)> clb = [](ImRad::ModalResult){});12    void ClosePopup(ImRad::ModalResult mr = ImRad::Cancel);13    void Draw();14 15    std::string title = "title";16    std::string message = "message";17    std::string error;18    /// @end interface19 20private:21    /// @begin impl22    void ResetLayout();23    void Init();24 25    void CustomWidget_Draw(const ImRad::CustomWidgetArgs& args);26 27    ImGuiID ID = 0;28    ImRad::ModalResult modalResult;29    std::function<void(ImRad::ModalResult)> callback;30    ImRad::VBox vb1;31    ImRad::HBox hb3;32    /// @end impl33};34 35extern ErrorBox errorBox;36