25 #include "common/scummsys.h" 26 #include "common/str.h" 27 #include "common/rect.h" 37 virtual void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data) {}
52 virtual void sendCommand(uint32 cmd, uint32 data) {
54 _target->handleCommand(
this, cmd, data);
77 virtual void setTextDrawableArea(
const Common::Rect &r) { _textDrawableArea = r; }
79 virtual void resize(
int x,
int y,
int w,
int h,
bool scale =
true);
82 virtual int16 getRelX()
const {
return _x; }
83 virtual int16 getRelY()
const {
return _y; }
84 virtual int16 getAbsX()
const {
return _x; }
85 virtual int16 getAbsY()
const {
return _y; }
86 virtual int16 getChildX()
const {
return getAbsX(); }
87 virtual int16 getChildY()
const {
return getAbsY(); }
88 virtual uint16 getWidth()
const {
return _w; }
89 virtual uint16 getHeight()
const {
return _h; }
91 virtual bool isVisible()
const = 0;
93 virtual void reflowLayout();
95 virtual void removeWidget(
Widget *widget);
97 virtual bool isPointIn(
int x,
int y) {
98 return (x >= _x && x < (_x + _w) && (y >= _y) && (y < _y + _h));
106 virtual void handleMouseWheel(
int x,
int y,
int direction) {};
107 virtual void handleTooltipUpdate(
int x,
int y) {};
109 virtual void releaseFocus() = 0;
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)