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:
tetektoza 2023-10-01 20:37:41 +02:00 committed by Tim Schumacher
parent e7f7c434f7
commit d2995f7517
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00

View file

@ -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 })
{