gdctl: Add __str__(self) for Dimension too

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4302>
This commit is contained in:
Jonas Ådahl 2025-02-25 18:45:40 +08:00 committed by Marge Bot
parent 414156d0a1
commit c9c7768418

View File

@ -26,6 +26,9 @@ class Dimension(NamedTuple):
width: int width: int
height: int height: int
def __str__(self):
return f"{self.width}x{self.height}"
class Position(NamedTuple): class Position(NamedTuple):
x: int | None x: int | None