public:
Panel(const Resources &);
~Panel();
+
void add(Widget &);
+ void button_press(int, int, unsigned);
+ void button_release(int, int, unsigned);
+ void pointer_motion(int, int);
private:
typedef std::list<Widget *> ChildSeq;
ChildSeq children;
+ Widget *pointer_focus;
+ unsigned pointer_grab;
Panel(const Panel &);
Panel &operator=(const Panel &);
const char *get_class() const { return "panel"; }
void render_part(const Part &) const;
- void on_button_press(int, int, unsigned);
- void on_button_release(int, int, unsigned);
+ void set_pointer_focus(Widget *);
};
} // namespace GLtk