ModalWrapper
Last edited bySimple_AOB10/16/2025
void ShowModal() const
void CloseModal()
void SetColor(float r, float g, float b)
| Parameter | Type | Description |
|---|---|---|
| r | float | --- |
| g | float | --- |
| b | float | --- |
void SetIcon(const std::string &iconName)
| Parameter | Type | Description |
|---|---|---|
| iconName | const std::string & | --- |
void SetBody(const std::string &bodyHtml)
| Parameter | Type | Description |
|---|---|---|
| bodyHtml | const std::string & | --- |
void AddButton(const std::string &button_text, bool is_cancel_button, std::function< void()> click_callback=nullptr)
| Parameter | Type | Description |
|---|---|---|
| button_text | const std::string & | --- |
| is_cancel_button | bool | --- |
| click_callback | std::function< void()> | --- |