bool focusable;
Container *parent;
std::string tooltip;
- std::list<CachedPart> cached_parts;
+ PartCache part_cache;
Widget();
public:
void set_position(int, int);
void set_size(unsigned, unsigned);
- virtual void autosize();
+ void autosize();
+protected:
+ virtual void autosize_special(const Part &, Geometry &) { }
+public:
void set_geometry(const Geometry &);
const Geometry &get_geometry() const { return geom; }
void set_state(State, State);
void rebuild();
- virtual void rebuild_special(const Part &, CachedPart &) { }
+ virtual void rebuild_special(const Part &);
public:
void render(GL::Renderer &) const;