summaryrefslogtreecommitdiff
path: root/plugingui/guievent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-29 22:04:02 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-03-07 19:22:47 +0100
commit01b3f327df2dc30d847bd335ccce12eaec2dfd39 (patch)
treeb78689ed59c6a5b4438e9f6f8e21d395c78061e1 /plugingui/guievent.h
parenta65278c7bc9c0dbca8a74db09fd0aebf1c26ef28 (diff)
Move pixel buffer render code from Window to PixelBuffer for easier testing/benchmarking.
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r--plugingui/guievent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/guievent.h b/plugingui/guievent.h
index fa42483..4ad0798 100644
--- a/plugingui/guievent.h
+++ b/plugingui/guievent.h
@@ -202,6 +202,11 @@ struct Rect
std::size_t y1;
std::size_t x2;
std::size_t y2;
+
+ bool empty() const
+ {
+ return x1 == x2 && y1 == y2;
+ }
};
} // GUI::