-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GLTK_LIST_H_
#define MSP_GLTK_LIST_H_
virtual const char *get_class() const { return "list"; }
virtual void autosize();
+ void autosize_rows(unsigned);
+ void autosize_all();
void append(const std::string &);
void insert(unsigned, const std::string &);
void remove(unsigned);
void clear();
+private:
+ void items_changed();
+public:
unsigned get_n_items() const { return items.size(); }
void set_selected_index(int);
int get_selected_index() const { return sel_index; }
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);