mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
31 lines
738 B
C++
31 lines
738 B
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#pragma once
|
|
|
|
namespace Ui {
|
|
class RpWidget;
|
|
class ScrollArea;
|
|
} // namespace Ui
|
|
|
|
namespace HistoryView {
|
|
|
|
struct ChatPaintGestureHorizontalData;
|
|
|
|
struct SwipeHandlerFinishData {
|
|
Fn<void(void)> callback;
|
|
int64 msgBareId = 0;
|
|
};
|
|
|
|
void SetupSwipeHandler(
|
|
not_null<Ui::RpWidget*> widget,
|
|
not_null<Ui::ScrollArea*> scroll,
|
|
Fn<void(ChatPaintGestureHorizontalData)> update,
|
|
Fn<SwipeHandlerFinishData(int)> generateFinishByTop,
|
|
rpl::producer<bool> dontStart = nullptr);
|
|
|
|
} // namespace HistoryView
|