mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
SharedGraphics: Add PainterStateSaver RAII helper and Point::operator-().
Two little things to help tidy up a bit in WSWindowManager.
This commit is contained in:
parent
3c2139b824
commit
88f6ce152f
3 changed files with 22 additions and 7 deletions
|
@ -48,6 +48,8 @@ public:
|
|||
return !(*this == other);
|
||||
}
|
||||
|
||||
Point operator-() const { return { -m_x, -m_y }; }
|
||||
|
||||
operator WSAPI_Point() const;
|
||||
String to_string() const { return String::format("[%d,%d]", x(), y()); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue