MythTV master
mythuiprocedural.h
Go to the documentation of this file.
1#ifndef MYTHUIPROCEDURAL_H
2#define MYTHUIPROCEDURAL_H
3
4// MythTV
5#include "mythuitype.h"
6
7// Std
8#include <memory>
9
10using ShaderSource = std::shared_ptr<QByteArray>;
11
13{
14 public:
15 MythUIProcedural(MythUIType* Parent, const QString& Name);
16
17 protected:
18 void DrawSelf(MythPainter* Painter, int XOffset, int YOffset, int AlphaMod, QRect ClipRect) override;
19 bool ParseElement(const QString& FileName, QDomElement& Element, bool ShowWarnings) override;
20 void CopyFrom(MythUIType* Base) override;
21 void CreateCopy(MythUIType* Parent) override;
22 void Pulse() override;
23 void Finalize(void) override; // MythUIType
24 static ShaderSource LoadShaderSource(const QString &filename);
25
26 protected:
27 QString m_hash;
30};
31
32#endif
void Pulse() override
Pulse is called 70 times a second to trigger a single frame of an animation.
MythUIProcedural(MythUIType *Parent, const QString &Name)
A procedural texture class.
void Finalize(void) override
Perform any post-xml parsing initialisation tasks.
void CopyFrom(MythUIType *Base) override
Copy this widgets state from another.
void CreateCopy(MythUIType *Parent) override
Copy the state of this widget to the one given, it must be of the same type.
static ShaderSource LoadShaderSource(const QString &filename)
ShaderSource m_fragmentSource
ShaderSource m_vertexSource
void DrawSelf(MythPainter *Painter, int XOffset, int YOffset, int AlphaMod, QRect ClipRect) override
bool ParseElement(const QString &FileName, QDomElement &Element, bool ShowWarnings) override
Parse the xml definition of this widget setting the state of the object accordingly.
The base class on which all widgets and screens are based.
Definition: mythuitype.h:86
std::shared_ptr< QByteArray > ShaderSource