init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
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 paintVideoStream() = 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
|
||||
Reference in New Issue
Block a user