started work on border radius

This commit is contained in:
Alessandro Mauri 2024-12-12 15:46:24 +01:00
parent f0aa59ef0b
commit 328cac871a
7 changed files with 61 additions and 22 deletions

View file

@ -137,8 +137,10 @@ enum CmdType {
}
// command to draw a rect
// TODO: implement radius
struct CmdRect {
Rect rect;
ushort radius;
Color color;
}
@ -179,7 +181,8 @@ struct Style { // css box model
Rect margin;
Color bgcolor; // background color
Color fgcolor; // foreground color
Color bcolor; // border color
Color brcolor; // border color
ushort radius;
}