reactions_settings_box.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. class GenericBox;
  10. class RpWidget;
  11. } // namespace Ui
  12. namespace Window {
  13. class SessionController;
  14. } // namespace Window
  15. namespace Data {
  16. struct Reaction;
  17. } // namespace Data
  18. void AddReactionAnimatedIcon(
  19. not_null<Ui::RpWidget*> parent,
  20. rpl::producer<QPoint> iconPositionValue,
  21. int iconSize,
  22. const Data::Reaction &reaction,
  23. rpl::producer<> &&selects,
  24. rpl::producer<> &&destroys,
  25. not_null<rpl::lifetime*> stateLifetime);
  26. void AddReactionCustomIcon(
  27. not_null<Ui::RpWidget*> parent,
  28. rpl::producer<QPoint> iconPositionValue,
  29. int iconSize,
  30. not_null<Window::SessionController*> controller,
  31. DocumentId customId,
  32. rpl::producer<> &&destroys,
  33. not_null<rpl::lifetime*> stateLifetime);
  34. void ReactionsSettingsBox(
  35. not_null<Ui::GenericBox*> box,
  36. not_null<Window::SessionController*> controller);