22 #ifndef BURIED_WINDOW_H 23 #define BURIED_WINDOW_H 25 #include "common/rect.h" 26 #include "common/list.h" 43 virtual bool onEraseBackground() {
return false; }
46 virtual void onTimer(uint timer) {}
47 virtual void onKillFocus(
Window *newWindow) {}
48 virtual void onSetFocus(
Window *oldWindow) {}
49 virtual void onPaint() {}
50 virtual void onLButtonUp(
const Common::Point &point, uint flags) {}
51 virtual void onLButtonDown(
const Common::Point &point, uint flags) {}
52 virtual void onMouseMove(
const Common::Point &point, uint flags) {}
53 virtual void onMButtonUp(
const Common::Point &point, uint flags) {}
54 virtual void onRButtonUp(
const Common::Point &point, uint flags) {}
55 virtual void onRButtonDown(
const Common::Point &point, uint flags) {}
56 virtual bool onSetCursor(uint message);
57 virtual void onEnable(
bool enable) {}
59 void invalidateRect(
const Common::Rect &rect,
bool erase =
true);
60 void invalidateWindow(
bool erase =
true) { invalidateRect(_rect, erase); }
61 Window *getParent()
const {
return _parent; }
66 void enableWindow(
bool enable);
67 bool isWindowEnabled()
const;
68 void setWindowPos(
const Window *insertAfter,
int x,
int y,
int width,
int height, uint flags);
77 void showWindow(WindowShowMode showMode);
78 bool isWindowVisible()
const {
return _visible; }
82 kWindowPosNoFlags = 0,
84 kWindowPosNoSize = (1 << 0),
85 kWindowPosNoZOrder = (1 << 1),
86 kWindowPosHideWindow = (1 << 2),
87 kWindowPosShowWindow = (1 << 3),
88 kWindowPosNoMove = (1 << 4),
89 kWindowPosNoActivate = (1 << 5)
95 void sendMessage(
Message *message);
96 void postMessage(
Message *message);
111 uint setTimer(uint elapse);
112 bool killTimer(uint timer);
117 bool _enabled, _visible;
120 WindowList _children, _topMostChildren;
125 extern const Window *kWindowPosTop;
126 extern const Window *kWindowPosTopMost;
Definition: agent_evaluation.h:31
Definition: algorithm.h:29
Definition: keyboard.h:294