diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-02-29 22:04:02 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-03-01 16:12:55 +0100 |
commit | a9ee71d8f1ccc634acdd9f0205855af1527c4bb9 (patch) | |
tree | ea0d288e59b9d4fa8f9679f063883afd9ae1d8fd /plugingui/guievent.h | |
parent | 15e9d38d36573ba0e1ec6e0cc2768b12ca01bff0 (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.h | 5 |
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:: |