ZaStoGram_desktop/Telegram/SourceFiles/ui/effects/message_sending_animation_common.h
John Preston d2a3c99b5a Morph a sent multi-line text message into its bubble
Task: 2026/10/28/morph-a-sent-multi-line-text-message-into-its-bubble
2026-10-29 17:23:41 +04:00

36 lines
723 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 {
struct MessageSendingAnimationFrom {
enum class Type {
None,
Sticker,
Gif,
Emoji,
Text,
};
struct FieldText {
QImage frame;
QRect globalGeometry;
crl::time capturedAt = 0;
bool singleLine = false;
bool scrolled = false;
bool rightToLeft = false;
};
Type type = Type::None;
std::optional<MsgId> localId;
QRect globalStartGeometry;
QImage frame;
bool crop = false;
std::optional<FieldText> fieldText;
};
} // namespace Ui