mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-23 18:57:12 +00:00
36 lines
637 B
C
36 lines
637 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
|
||
|
|
||
|
#include "ui/controls/swipe_handler_data.h"
|
||
|
|
||
|
namespace Lottie {
|
||
|
class Icon;
|
||
|
} // namespace Lottie
|
||
|
|
||
|
namespace Dialogs::Ui {
|
||
|
|
||
|
using namespace ::Ui;
|
||
|
|
||
|
enum class SwipeDialogAction {
|
||
|
Mute,
|
||
|
Pin,
|
||
|
Read,
|
||
|
Archive,
|
||
|
Delete,
|
||
|
Disabled,
|
||
|
};
|
||
|
|
||
|
struct SwipeContext {
|
||
|
::Ui::Controls::SwipeContextData data;
|
||
|
Lottie::Icon *icon = nullptr;
|
||
|
SwipeDialogAction action;
|
||
|
};
|
||
|
|
||
|
} // namespace Dialogs::Ui
|