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;
47 int16 _scrolledX, _scrolledY;
49 int _mouseDownStartY = 0;
69 void reflowLayout()
override;
72 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
73 void handleMouseWheel(
int x,
int y,
int direction)
override;
74 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
75 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override;
76 void handleMouseMoved(
int x,
int y,
int button)
override;
77 void handleTickle()
override;
78 void handleTooltipUpdate(
int x,
int y)
override;
80 void markAsDirty()
override;
82 bool containsWidget(
Widget *)
const override;
83 bool wantsFocus()
override {
return true; }
85 void setImageArchive(
const Common::Path &fname) { _imageArchive = fname; }
90 void applyScrollPos();
91 void drawWidget()
override;
94 Widget *findWidget(
int x,
int y)
override;
Definition: managed_surface.h:51
Definition: richtext.h:39
Definition: printman.h:30
Definition: formatinfo.h:28