25 #include "common/keyboard.h" 26 #include "common/str-array.h" 27 #include "gui/dialog.h" 40 void setup(
Dialog *parent,
Widget *widget,
int x,
int y);
42 void drawDialog(DrawLayer layerToDraw)
override;
44 void receivedFocus(
int x = -1,
int y = -1)
override {}
46 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override {
48 _parent->handleMouseDown(x + (getAbsX() - _parent->getAbsX()), y + (getAbsY() - _parent->getAbsY()), button, clickCount);
50 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override {
52 _parent->handleMouseUp(x + (getAbsX() - _parent->getAbsX()), y + (getAbsY() - _parent->getAbsY()), button, clickCount);
54 void handleMouseWheel(
int x,
int y,
int direction)
override {
56 _parent->handleMouseWheel(x + (getAbsX() - _parent->getAbsX()), y + (getAbsX() - _parent->getAbsX()), direction);
60 _parent->handleKeyDown(state);
64 _parent->handleKeyUp(state);
66 void handleMouseMoved(
int x,
int y,
int button)
override {
72 int _xpadding, _ypadding;
79 #endif // GUI_TOOLTIP_H
Definition: keyboard.h:294