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); }
void clear_state(State s) { set_state(s, NORMAL); }
void set_state(State, State);
+public:
+ State get_state() const { return state; }
+protected:
void rebuild();
virtual void rebuild_special(const Part &);