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-01 16:12:55 +0100
commita9ee71d8f1ccc634acdd9f0205855af1527c4bb9 (patch)
treeea0d288e59b9d4fa8f9679f063883afd9ae1d8fd /plugingui/guievent.h
parent15e9d38d36573ba0e1ec6e0cc2768b12ca01bff0 (diff)
WIP: 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::