]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.h
Make autosize_special const and add a const autosize overload
[libs/gltk.git] / source / dropdown.h
index eaa29c193c2260288a185bb2131c693ffeecdfdd..24c62cf862254136bcf0de2ed112ecc81b55882e 100644 (file)
@@ -39,13 +39,16 @@ public:
        virtual const char *get_class() const { return "dropdown"; }
 
 private:
-       virtual void autosize_special(const Part &, Geometry &);
+       virtual void autosize_special(const Part &, Geometry &) const;
 
 public:
        void set_data(ListData &d) { list.set_data(d); }
        ListData &get_data() { return list.get_data(); }
        const ListData &get_data() const { return list.get_data(); }
 
+       template<typename T>
+       void set_item_type() { list.set_item_type<T>(); }
+
        void set_selected_index(int);
        int get_selected_index() const { return list.get_selected_index(); }