QmlMaterial 0.1.0
Loading...
Searching...
No Matches
nested_scroll_dispatcher_p.hpp
1#pragma once
2
3#include "qml_material/input/nested_scroll.hpp"
4#include "scroll_participant_p.hpp"
5#include <QHash>
6
7namespace qml_material
8{
9struct ScrollDispatchContext {
10 QList<QPointer<NestedScroll>> chain;
11 QHash<NestedScroll*, QPointF> origins;
12 std::function<bool()> current;
13 std::function<void(bool)> applying;
14 std::function<void()> cancel;
15};
16QPointF dispatchNestedScroll(const ScrollDispatchContext&, QPointF delta,
17 ScrollParticipant::Activity, QPointF velocity);
18} // namespace qml_material