-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GLTK_DROPDOWN_H_
#define MSP_GLTK_DROPDOWN_H_
virtual const char *get_class() const { return "dropdown"; }
+ virtual void autosize();
+
void append(const std::string &);
void insert(unsigned, const std::string &);
void remove(unsigned);
int get_selected_index() const;
private:
- virtual void render_special(const Part &) const;
+ virtual void rebuild_special(const Part &, CachedPart &);
+ virtual void render_special(const Part &, GL::Renderer &) const;
public:
virtual void button_press(int, int, unsigned);
virtual void on_geometry_change();
virtual void on_style_change();
+ void list_autosize_changed();
void resize_list();
void list_item_selected(unsigned, const std::string &);
};