summaryrefslogtreecommitdiffstats
path: root/gfx/rect.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/rect.h')
-rw-r--r--gfx/rect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gfx/rect.h b/gfx/rect.h
index 1c83f48..f1e43a7 100644
--- a/gfx/rect.h
+++ b/gfx/rect.h
@@ -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);