diff options
author | Sebastian Geerken <devnull@localhost> | 2013-10-28 13:46:32 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-10-28 13:46:32 +0100 |
commit | 68d69bddbd6e5249b4174a6e7ba5ec91ee9cbf3e (patch) | |
tree | 6e5a483ad9ed94857d98924da20209d467c56118 /dw/ruler.hh | |
parent | f3d3f0fe0e1ab70c8eca9fc067b8a0c866c13a3d (diff) |
Made ruler widget using size hints, which fixes some problems with borders due to floats.
Diffstat (limited to 'dw/ruler.hh')
-rw-r--r-- | dw/ruler.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/ruler.hh b/dw/ruler.hh index 32e859a1..863792dd 100644 --- a/dw/ruler.hh +++ b/dw/ruler.hh @@ -15,8 +15,12 @@ namespace dw { */ class Ruler: public core::Widget { +private: + int availWidth; + protected: void sizeRequestImpl (core::Requisition *requisition); + void setWidth (int width); void draw (core::View *view, core::Rectangle *area); public: |