113 |
void move (int x, int y); |
void move (int x, int y); |
114 |
|
|
115 |
Widget *find_widget(int x, int y); |
Widget *find_widget(int x, int y); |
116 |
|
Widget *find_adjacent_widget(Widget *from, int x, int y); |
117 |
|
|
118 |
protected: |
protected: |
119 |
typedef std::vector<Widget *> WidgetList; |
typedef std::vector<Widget *> WidgetList; |
249 |
private: |
private: |
250 |
void handle_event(const SDL_Event &e); |
void handle_event(const SDL_Event &e); |
251 |
void redraw_area(const px::Rect &r); |
void redraw_area(const px::Rect &r); |
252 |
void track_active_widget( int x, int y ); |
|
253 |
|
void switch_active_widget(Widget *to_activate); |
254 |
|
|
255 |
|
void track_active_widget( int x, int y ); // used by mouse |
256 |
|
void goto_adjacent_widget(int xdir, int ydir); // used by keyboard |
257 |
|
|
258 |
// Menu interface. |
// Menu interface. |
259 |
virtual void draw_background(px::GC &/*gc*/) {} |
virtual void draw_background(px::GC &/*gc*/) {} |