message_sending_animation_common.h 506 B

1234567891011121314151617181920212223242526
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Ui {
  9. struct MessageSendingAnimationFrom {
  10. enum class Type {
  11. None,
  12. Sticker,
  13. Gif,
  14. Emoji,
  15. };
  16. Type type = Type::None;
  17. std::optional<MsgId> localId;
  18. QRect globalStartGeometry;
  19. QImage frame;
  20. bool crop = false;
  21. };
  22. } // namespace Ui