AyuGramDesktop/Telegram/SourceFiles/dialogs/ui/dialogs_swipe_context.h

48 lines
765 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,
};
enum class SwipeDialogActionLabel {
Mute,
Unmute,
Pin,
Unpin,
Read,
Unread,
Archive,
Unarchive,
Delete,
Disabled,
};
struct SwipeContext {
::Ui::Controls::SwipeContextData data;
Lottie::Icon *icon = nullptr;
SwipeDialogAction action;
};
} // namespace Dialogs::Ui