55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
/*
|
|
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 "media/view/media_view_overlay_widget.h"
|
|
|
|
namespace Media::Stories {
|
|
struct SiblingView;
|
|
} // namespace Media::Stories
|
|
|
|
namespace Media::View {
|
|
|
|
class OverlayWidget::Renderer : public Ui::GL::Renderer {
|
|
public:
|
|
virtual void paintBackground() = 0;
|
|
virtual void paintTransformedVideoFrame(ContentGeometry geometry) = 0;
|
|
virtual void paintTransformedStaticContent(
|
|
const QImage &image,
|
|
ContentGeometry geometry,
|
|
bool semiTransparent,
|
|
bool fillTransparentBackground,
|
|
int index = 0) = 0; // image, left sibling, right sibling
|
|
virtual void paintRadialLoading(
|
|
QRect inner,
|
|
bool radial,
|
|
float64 radialOpacity) = 0;
|
|
virtual void paintThemePreview(QRect outer) = 0;
|
|
virtual void paintDocumentBubble(QRect outer, QRect icon) = 0;
|
|
virtual void paintSaveMsg(QRect outer) = 0;
|
|
virtual void paintControlsStart() = 0;
|
|
virtual void paintControl(
|
|
Over control,
|
|
QRect over,
|
|
float64 overOpacity,
|
|
QRect inner,
|
|
float64 innerOpacity,
|
|
const style::icon &icon) = 0;
|
|
virtual void paintFooter(QRect outer, float64 opacity) = 0;
|
|
virtual void paintCaption(QRect outer, float64 opacity) = 0;
|
|
virtual void paintGroupThumbs(QRect outer, float64 opacity) = 0;
|
|
virtual void paintRoundedCorners(int radius) = 0;
|
|
virtual void paintStoriesSiblingPart(
|
|
int index,
|
|
const QImage &image,
|
|
QRect rect,
|
|
float64 opacity = 1.) = 0;
|
|
};
|
|
|
|
} // namespace Media::View
|