ZaStoGram_desktop/Telegram/SourceFiles/ui/widgets/selecting_scroll.h

21 lines
507 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;
[[nodiscard]] int SelectingScrollDelta(QRect visible, int y);
void SetupSelectingScroll(
not_null<RpWidget*> widget,
Fn<void(int pixels)> scrollBy,
Fn<int(QPoint globalPosition)> delta = nullptr);
} // namespace Ui