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;
45 int16 _scrolledX, _scrolledY;
47 int _mouseDownStartY = 0;
63 void reflowLayout()
override;
66 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
67 void handleMouseWheel(
int x,
int y,
int direction)
override;
68 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
69 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override;
70 void handleMouseMoved(
int x,
int y,
int button)
override;
71 void handleTooltipUpdate(
int x,
int y)
override;
73 void markAsDirty()
override;
75 bool containsWidget(
Widget *)
const override;
77 void setImageArchive(
const Common::Path &fname) { _imageArchive = fname; }
82 void drawWidget()
override;
84 Widget *findWidget(
int x,
int y)
override;
Definition: managed_surface.h:51
Definition: richtext.h:38
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: formatinfo.h:28