/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "calls/group/calls_group_viewport.h" #include "ui/round_rect.h" #include "ui/effects/cross_line.h" #include "ui/gl/gl_surface.h" #include "ui/text/text.h" namespace Calls::Group { class Viewport::Renderer final : public Ui::GL::Renderer { public: explicit Renderer(not_null owner); void paintFallback( Painter &&p, const QRegion &clip, Ui::GL::Backend backend) override; private: void paintTile( Painter &p, not_null tile, const QRect &clip, bool opengl, QRegion &bg); void paintTileOutline( Painter &p, int x, int y, int width, int height, not_null tile); void paintTileControls( Painter &p, int x, int y, int width, int height, not_null tile); const not_null _owner; QImage _shadow; Ui::CrossLineAnimation _pinIcon; Ui::RoundRect _pinBackground; }; } // namespace Calls::Group