summaryrefslogtreecommitdiffstats
path: root/base/gfx/size.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/size.h')
-rw-r--r--base/gfx/size.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/gfx/size.h b/base/gfx/size.h
index bf0aa26..57e080b 100644
--- a/base/gfx/size.h
+++ b/base/gfx/size.h
@@ -30,6 +30,8 @@ class Size {
int width() const { return width_; }
int height() const { return height_; }
+ int GetArea() const { return width_ * height_; }
+
void SetSize(int width, int height) {
set_width(width);
set_height(height);