1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

Add basic GUI API for creating labels and buttons.

This commit is contained in:
Andreas Kling 2019-01-13 05:03:17 +01:00
parent 17c7bf01a5
commit b2d86b7597
7 changed files with 99 additions and 8 deletions

View file

@ -21,3 +21,17 @@ struct GUI_CreateWindowParameters {
unsigned flags;
char title[128];
};
enum class GUI_WidgetType : unsigned {
Label,
Button,
};
struct GUI_CreateWidgetParameters {
GUI_WidgetType type;
GUI_Rect rect;
GUI_Color background_color;
bool opaque;
unsigned flags;
char text[256];
};