started work on border radius
This commit is contained in:
parent
f0aa59ef0b
commit
328cac871a
7 changed files with 61 additions and 22 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue