mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
LibGfx: Allow constructing Float{Rect,Point,Size} from integer buddies
This commit is contained in:
parent
dd7796515f
commit
5c780c9ef7
3 changed files with 19 additions and 0 deletions
|
@ -56,6 +56,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
explicit FloatRect(const Rect& other)
|
||||
: FloatRect((FloatPoint)other.location(), (FloatSize)other.size())
|
||||
{
|
||||
}
|
||||
|
||||
bool is_null() const
|
||||
{
|
||||
return width() == 0 && height() == 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue