|
Gooey GUI Library
|
#include "core/gooey_backend_internal.h"#include "gooey_widgets_internal.h"Go to the source code of this file.
Functions | |
| GooeyWindow | GooeyMessageBox_Create (const char *title, const char *message, MSGBOX_TYPE type, void(*callback)(int option)) |
| Creates a message box window. | |
| void | GooeyMessageBox_Show (GooeyWindow *msgBoxWindow) |
| Displays the specified message box window. | |
| GooeyWindow GooeyMessageBox_Create | ( | const char * | title, |
| const char * | message, | ||
| MSGBOX_TYPE | type, | ||
| void(*)(int option) | callback | ||
| ) |
Creates a message box window.
This function creates a modal message box with a specified title, message, type, and a callback function to handle user interaction.
| title | The title of the message box. |
| message | The message to display in the message box. |
| type | The type of the message box (e.g., INFO, WARNING, ERROR, QUESTION). |
| callback | A function pointer to handle user input (e.g., button click). The callback receives an integer representing the selected option. |
| void GooeyMessageBox_Show | ( | GooeyWindow * | msgBoxWindow | ) |
Displays the specified message box window.
This function makes the message box visible on the screen. The message box must have been created using GooeyMessageBox_Create.
| msgBoxWindow | A pointer to the message box window to display. |