X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fdropdown.h;fp=source%2Fdropdown.h;h=c5b535d599bcaae434bb29f0fd53f06f0334890f;hp=70a9faaf646c4b6381bd023eda3262d0a48c41cd;hb=d10d1de6d17c285c63d7b3cea549017aaa1ddb01;hpb=83f553a382ce554951594de85e4fd7b854305463 diff --git a/source/dropdown.h b/source/dropdown.h index 70a9faa..c5b535d 100644 --- a/source/dropdown.h +++ b/source/dropdown.h @@ -37,10 +37,10 @@ private: void init(); public: - virtual const char *get_class() const { return "dropdown"; } + const char *get_class() const override { return "dropdown"; } private: - virtual void autosize_special(const Part &, Geometry &) const; + void autosize_special(const Part &, Geometry &) const override; public: void set_data(ListData &d) { list.set_data(d); } @@ -54,15 +54,15 @@ public: int get_selected_index() const { return list.get_selected_index(); } private: - virtual void rebuild_special(const Part &); - virtual void render_special(const Part &, GL::Renderer &) const; + void rebuild_special(const Part &) override; + void render_special(const Part &, GL::Renderer &) const override; public: - virtual void button_press(int, int, unsigned); - virtual bool navigate(Navigation); + void button_press(int, int, unsigned) override; + bool navigate(Navigation) override; private: - virtual void on_size_change(); - virtual void on_style_change(); + void on_size_change() override; + void on_style_change() override; void open_list(); void close_list();