22 #ifndef GUI_WIDGETS_RICHTEXT_H 23 #define GUI_WIDGETS_RICHTEXT_H 25 #include "common/str.h" 26 #include "gui/widget.h" 35 class ScrollBarWidget;
46 int16 _scrolledX, _scrolledY;
48 int _mouseDownStartY = 0;
64 void reflowLayout()
override;
67 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
68 void handleMouseWheel(
int x,
int y,
int direction)
override;
69 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
70 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override;
71 void handleMouseMoved(
int x,
int y,
int button)
override;
72 void handleTooltipUpdate(
int x,
int y)
override;
74 void markAsDirty()
override;
76 bool containsWidget(
Widget *)
const override;
78 void setImageArchive(
const Common::Path &fname) { _imageArchive = fname; }
83 void drawWidget()
override;
86 Widget *findWidget(
int x,
int y)
override;
Definition: managed_surface.h:51
Definition: richtext.h:38
Definition: printman.h:30
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: formatinfo.h:28