22 #ifndef GUI_WIDGETS_SCROLLCONTAINER_H 23 #define GUI_WIDGETS_SCROLLCONTAINER_H 25 #include "gui/widget.h" 26 #include "common/str.h" 27 #include "gui/widgets/scrollbar.h" 28 #include "gui/animation/FluidScroll.h" 34 int16 _scrolledX, _scrolledY;
41 static const int kDragThreshold;
42 int _mouseDownStartY = 0;
43 bool _isMouseDown =
false;
44 bool _isDragging =
false;
45 float _scrollPos = 0.0f;
47 Widget *_childUnderMouse =
nullptr;
50 void applyScrollPos();
58 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
59 void reflowLayout()
override;
61 bool containsWidget(
Widget *)
const override;
65 void handleMouseWheel(
int x,
int y,
int direction)
override;
66 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
67 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override;
68 void handleMouseMoved(
int x,
int y,
int button)
override;
69 void handleTickle()
override;
73 int16 getChildX()
const override;
74 int16 getChildY()
const override;
75 uint16 getWidth()
const override;
76 uint16 getHeight()
const override;
77 bool wantsFocus()
override {
return true; }
83 void drawWidget()
override;
85 Widget *findWidget(
int x,
int y)
override;
WidgetBackground
Widget background type.
Definition: ThemeEngine.h:226
Definition: printman.h:30