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;
40 static const int kDragThreshold = 5;
42 int _mouseDownStartY = 0;
43 bool _isMouseDown =
false;
44 bool _isDragging =
false;
45 float _scrollPos = 0.0f;
49 void applyScrollPos();
57 void handleCommand(
CommandSender *sender, uint32 cmd, uint32 data)
override;
58 void reflowLayout()
override;
60 bool containsWidget(
Widget *)
const override;
64 void handleMouseWheel(
int x,
int y,
int direction)
override;
65 void handleMouseDown(
int x,
int y,
int button,
int clickCount)
override;
66 void handleMouseUp(
int x,
int y,
int button,
int clickCount)
override;
67 void handleMouseMoved(
int x,
int y,
int button)
override;
68 void handleTickle()
override;
69 bool handleDragHook(
Widget *origTarget,
int state,
int x,
int y,
int button)
override;
71 void cancelDrag()
override;
72 void cancelTickle()
override;
76 int16 getChildX()
const override;
77 int16 getChildY()
const override;
78 uint16 getWidth()
const override;
79 uint16 getHeight()
const override;
85 void drawWidget()
override;
87 Widget *findWidget(
int x,
int y)
override;
WidgetBackground
Widget background type.
Definition: ThemeEngine.h:226
Definition: printman.h:30