iv_delegate_impl.h 775 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. #include "iv/iv_delegate.h"
  9. namespace Iv {
  10. class DelegateImpl final : public Delegate {
  11. public:
  12. DelegateImpl() = default;
  13. void ivSetLastSourceWindow(not_null<QWidget*> window) override;
  14. [[nodiscard]] QRect ivGeometry() const override;
  15. void ivSaveGeometry(not_null<Ui::RpWindow*> window) override;
  16. [[nodiscard]] int ivZoom() const override;
  17. [[nodiscard]] rpl::producer<int> ivZoomValue() const override;
  18. void ivSetZoom(int value) override;
  19. private:
  20. QPointer<QWidget> _lastSourceWindow;
  21. };
  22. } // namespace Iv