From 6f58c083caf6a14bccd708c73eaa0b4d66178ff1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 29 Jul 2016 18:32:55 +0200 Subject: Minor code cleanups. --- src/ui/iconbutton.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/ui/iconbutton.h') diff --git a/src/ui/iconbutton.h b/src/ui/iconbutton.h index a7aee39..92e73ee 100644 --- a/src/ui/iconbutton.h +++ b/src/ui/iconbutton.h @@ -51,6 +51,13 @@ public: /// print button description virtual void print(const size_t indent) const; +protected: + /// draw the button border + virtual void draw_border(); + + /// draw the button + virtual void draw(); + /** * @brief mouse over event handler * */ @@ -61,12 +68,6 @@ public: * */ virtual bool on_mousepress(const unsigned int button); -protected: - /// draw the button border - virtual void draw_border(); - - /// draw the button - virtual void draw(); private: std::string iconbutton_command; -- cgit v1.2.3