diff options
Diffstat (limited to 'gfx/rect.h')
-rw-r--r-- | gfx/rect.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -25,6 +25,8 @@ typedef struct _GdkRectangle GdkRectangle; namespace gfx { +class Insets; + class Rect { public: Rect(); @@ -78,6 +80,9 @@ class Rect { Inset(horizontal, vertical, horizontal, vertical); } + // Shrink the rectangle by the given insets. + void Inset(const gfx::Insets& insets); + // Shrink the rectangle by the specified amount on each side. void Inset(int left, int top, int right, int bottom); |