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:
parent
17c7bf01a5
commit
b2d86b7597
7 changed files with 99 additions and 8 deletions
|
@ -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];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue