PartCache part_cache;
Widget();
+private:
+ Widget(const Widget &);
+ Widget &operator=(const Widget &);
public:
virtual ~Widget();
void set_focusable(bool);
bool is_focusable() const { return focusable; }
void set_focus();
+ void set_enabled(bool);
+ bool is_enabled() const { return !(state&DISABLED); }
protected:
void set_state(State s) { set_state(s, s); }