1 #ifndef MYTHFONTPROPERTIES_H_
2 #define MYTHFONTPROPERTIES_H_
20 void SetFace(
const QFont &face);
21 void SetColor(
const QColor &color);
22 void SetShadow(
bool on, QPoint offset,
const QColor &color,
int alpha);
23 void SetOutline(
bool on,
const QColor &color,
int size,
int alpha);
25 QFont face(
void)
const;
26 QColor
color(
void)
const {
return m_brush.color(); }
27 QBrush
GetBrush(
void)
const {
return m_brush; }
30 void GetShadow(QPoint &offset, QColor &color,
int &alpha)
const;
33 void GetOutline(QColor &color,
int &size,
int &alpha)
const;
35 QString
GetHash(
void)
const {
return m_hash; }
38 const QString &
filename,
const QDomElement &element,
39 MythUIType *parent =
nullptr,
bool addToGlobal =
false,
40 bool showWarnings =
true);
44 void SetPixelSize(
float size);
45 void SetPointSize(
uint points);
47 void Rescale(
int height);
48 void AdjustStretch(
int stretch);
50 static void Zoom(
void);
51 static void SetZoom(
uint zoom_percent);
60 QBrush m_brush {Qt::white};
62 bool m_hasShadow {
false};
65 int m_shadowAlpha {255};
67 bool m_hasOutline {
false};
69 int m_outlineSize {0};
70 int m_outlineAlpha {255};
72 float m_relativeSize {0.5F};
76 bool m_bFreeze {
false};
93 bool Contains(
const QString &text);
96 void Rescale(
int height = 0);