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 lostFocusWidget()
override;
78 void handleTickle()
override;
79 void handleTooltipUpdate(
int x,
int y)
override;
81 void markAsDirty()
override;
83 bool containsWidget(
Widget *)
const override;
84 bool wantsFocus()
override {
return true; }
86 void setImageArchive(
const Common::Path &fname) { _imageArchive = fname; }
91 void applyScrollPos();
92 void drawWidget()
override;
95 Widget *findWidget(
int x,
int y)
override;
Definition: managed_surface.h:51
Definition: richtext.h:39
Definition: printman.h:30
Definition: formatinfo.h:28