Add Ui::GL::Rect::empty method.

This commit is contained in:
John Preston 2021-05-25 17:23:22 +04:00
parent 808f8c7dea
commit 52d5934dff

View file

@ -59,6 +59,10 @@ public:
return _y + _height;
}
[[nodiscard]] bool empty() const {
return (_width <= 0) || (_height <= 0);
}
private:
float _x = 0;
float _y = 0;