media_view_pip_renderer.h 1023 B

12345678910111213141516171819202122232425262728293031323334353637
  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 "media/view/media_view_pip.h"
  9. #include "ui/gl/gl_surface.h"
  10. namespace Media::View {
  11. class Pip::Renderer : public Ui::GL::Renderer {
  12. public:
  13. virtual void paintTransformedVideoFrame(ContentGeometry geometry) = 0;
  14. virtual void paintTransformedStaticContent(
  15. const QImage &image,
  16. ContentGeometry geometry) = 0;
  17. virtual void paintRadialLoading(
  18. QRect inner,
  19. float64 controlsShown) = 0;
  20. virtual void paintButtonsStart() = 0;
  21. virtual void paintButton(
  22. const Button &button,
  23. int outerWidth,
  24. float64 shown,
  25. float64 over,
  26. const style::icon &icon,
  27. const style::icon &iconOver) = 0;
  28. virtual void paintPlayback(QRect outer, float64 shown) = 0;
  29. virtual void paintVolumeController(QRect outer, float64 shown) = 0;
  30. };
  31. } // namespace Media::View