From d2b2b73c82c81bfe7dcdd848e83b1fcc6196c782 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 6 Aug 2021 21:26:20 -0600 Subject: [PATCH] canvas; provide Rectangle::{height,width}() --- libs/canvas/canvas/rectangle.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/canvas/canvas/rectangle.h b/libs/canvas/canvas/rectangle.h index 2ce8b18b1f..6528471949 100644 --- a/libs/canvas/canvas/rectangle.h +++ b/libs/canvas/canvas/rectangle.h @@ -59,6 +59,14 @@ public: return _rect.y1; } + Distance height() const { + return _rect.height(); + } + + Distance width() const { + return _rect.height(); + } + void set (Rect const &); void set_x0 (Coord); void set_y0 (Coord);