info_profile_icon.h 734 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include "ui/rp_widget.h"
  9. namespace Info {
  10. namespace Profile {
  11. class FloatingIcon : public Ui::RpWidget {
  12. public:
  13. FloatingIcon(
  14. RpWidget *parent,
  15. const style::icon &icon,
  16. QPoint position);
  17. protected:
  18. void paintEvent(QPaintEvent *e) override;
  19. private:
  20. struct Tag {
  21. };
  22. FloatingIcon(
  23. RpWidget *parent,
  24. const style::icon &icon,
  25. QPoint position,
  26. const Tag &);
  27. not_null<const style::icon*> _icon;
  28. QPoint _point;
  29. };
  30. } // namespace Profile
  31. } // namespace Info