File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -95,3 +95,17 @@ def outline(self, color):
95
95
else :
96
96
self ._palette [1 ] = color
97
97
self ._palette .make_opaque (1 )
98
+
99
+ @property
100
+ def width (self ) -> int :
101
+ """
102
+ :return: the width of the rectangle in pixels
103
+ """
104
+ return self ._bitmap .width
105
+
106
+ @property
107
+ def height (self ) -> int :
108
+ """
109
+ :return: the height of the rectangle in pixels
110
+ """
111
+ return self ._bitmap .height
Original file line number Diff line number Diff line change @@ -170,3 +170,17 @@ def outline(self, color):
170
170
else :
171
171
self ._palette [1 ] = color
172
172
self ._palette .make_opaque (2 )
173
+
174
+ @property
175
+ def width (self ) -> int :
176
+ """
177
+ :return: the width of the rounded rectangle in pixels
178
+ """
179
+ return self ._bitmap .width
180
+
181
+ @property
182
+ def height (self ) -> int :
183
+ """
184
+ :return: the height of the rounded rectangle in pixels
185
+ """
186
+ return self ._bitmap .height
You can’t perform that action at this time.
0 commit comments