X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.h;h=72345b797001c36aa3da241f3a43ef1147ff4a0e;hb=6d73e04329fc3752552773e4d11d7374caf779f6;hp=4854340a14f730a1fe90fcc9c847be1ce87514ce;hpb=ec63df81f6c3f77454b0fe3bdae24876c84616b1;p=libs%2Fgltk.git diff --git a/source/entry.h b/source/entry.h index 4854340..72345b7 100644 --- a/source/entry.h +++ b/source/entry.h @@ -51,7 +51,7 @@ public: virtual const char *get_class() const { return "entry"; } private: - virtual void autosize_special(const Part &, Geometry &); + virtual void autosize_special(const Part &, Geometry &) const; public: void set_text(const std::string &); @@ -69,15 +69,14 @@ private: virtual void render_special(const Part &, GL::Renderer &) const; public: - virtual void key_press(unsigned, unsigned); - virtual void character(wchar_t); + virtual bool key_press(unsigned, unsigned); + virtual bool character(wchar_t); virtual void focus_out(); private: virtual void on_geometry_change(); virtual void on_style_change(); void set_edit_position(unsigned); - void reposition_slider(); void check_view_range(); void slider_value_changed(double); };