mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
LibGUI: Add missing constructor to UISize class for fixed_size property
This patch adds a missing constructor to UISize class for fixed_size property, so the property can take an array if user specified it in .gml file.
This commit is contained in:
parent
e7f7c434f7
commit
d2995f7517
1 changed files with 5 additions and 0 deletions
|
@ -208,6 +208,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
UISize(Array<i64, 2> size)
|
||||
: UISize(size[0], size[1])
|
||||
{
|
||||
}
|
||||
|
||||
UISize(SpecialDimension special)
|
||||
: Gfx::Size<UIDimension>(UIDimension { special }, UIDimension { special })
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue