summaryrefslogtreecommitdiff
path: root/plugingui/layout.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
commitcec1d9ea562e3d52c98f1219db5e186943f2f0d6 (patch)
tree3a66ff06ef16cce96e215644032e6c9fac2cbe8a /plugingui/layout.h
parentdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff)
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/layout.h')
-rw-r--r--plugingui/layout.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/layout.h b/plugingui/layout.h
index bd64fdd..4d20eb6 100644
--- a/plugingui/layout.h
+++ b/plugingui/layout.h
@@ -46,10 +46,10 @@ public:
virtual void resize(std::size_t width, std::size_t height) = 0;
virtual void move(int x, int y) = 0;
- virtual int x() = 0;
- virtual int y() = 0;
- virtual std::size_t width() = 0;
- virtual std::size_t height() = 0;
+ virtual int x() const = 0;
+ virtual int y() const = 0;
+ virtual std::size_t width() const = 0;
+ virtual std::size_t height() const = 0;
private:
Layout* parent;