emoji_button_factory.h 728 B

12345678910111213141516171819202122232425262728293031
  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 ChatHelpers {
  9. class TabbedPanel;
  10. } // namespace ChatHelpers
  11. namespace Window {
  12. class SessionController;
  13. } // namespace Window
  14. namespace Ui {
  15. class BoxContent;
  16. class EmojiButton;
  17. class InputField;
  18. [[nodiscard]] not_null<Ui::EmojiButton*> AddEmojiToggleToField(
  19. not_null<Ui::InputField*> field,
  20. not_null<Ui::BoxContent*> box,
  21. not_null<Window::SessionController*> controller,
  22. not_null<ChatHelpers::TabbedPanel*> emojiPanel,
  23. QPoint shift);
  24. } // namespace Ui