Go to the documentation of this file.
8 #include <QLinearGradient>
26 void SetCropRect(
int x,
int y,
int width,
int height);
27 void SetCropRect(
const MythRect &rect);
28 void SetFillBrush(QBrush fill);
29 void SetLinePen(QPen pen);
33 int alphaMod, QRect clipRect)
override;
36 bool showWarnings)
override;
41 QString m_type {
"box"};
42 QBrush m_fillBrush {Qt::NoBrush};
43 QPen m_linePen {Qt::NoPen};
44 int m_cornerRadius {10};
A narrow purpose widget used to represent cut positions and regions when editing a video.
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
virtual void CreateCopy(MythUIType *parent)
Copy the state of this widget to the one given, it must be of the same type.
virtual void DrawSelf(MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
The base class on which all widgets and screens are based.
A widget for rendering primitive shapes and lines.
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.