9#include <QtQml/qqmlregistration.h>
64 QSGNode*
updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData*) override;
65 void geometryChange(const QRectF& newGeometry, const QRectF& oldGeometry) override;
68 QRectF renderRect() const;
69 bool updateRenderedText();
71 static
bool colorNeedsTint(const QColor& color);
72 static QImage tintedImage(const QImage& image, const QColor& color);
76 QString m_renderedText;
78 QColor m_textColor = Qt::white;
81 int m_textureFilter = 1;
83 bool m_uppercase = false;
85 bool m_textureDirty = true;
double value
Definition BmsNotesData.cpp:35
Definition Lr2BitmapFontTexture.h:11
void setTextColor(const QColor &value)
Definition Lr2BitmapFontTexture.cpp:78
void setAlignment(int value)
Definition Lr2BitmapFontTexture.cpp:109
QML_ELEMENTQString fontPath
Definition Lr2BitmapFontTexture.h:14
qreal naturalWidth
Definition Lr2BitmapFontTexture.h:21
qreal textureHeight
Definition Lr2BitmapFontTexture.h:23
int alignment
Definition Lr2BitmapFontTexture.h:18
void setActive(bool value)
Definition Lr2BitmapFontTexture.cpp:139
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
Definition Lr2BitmapFontTexture.cpp:210
void textureFilterChanged()
QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override
Definition Lr2BitmapFontTexture.cpp:163
bool uppercase
Definition Lr2BitmapFontTexture.h:19
void setUppercase(bool value)
Definition Lr2BitmapFontTexture.cpp:123
void naturalSizeChanged()
QColor textColor
Definition Lr2BitmapFontTexture.h:16
QString text
Definition Lr2BitmapFontTexture.h:15
bool active
Definition Lr2BitmapFontTexture.h:20
int textureFilter
Definition Lr2BitmapFontTexture.h:17
void setFontPath(const QString &value)
Definition Lr2BitmapFontTexture.cpp:48
void setText(const QString &value)
Definition Lr2BitmapFontTexture.cpp:62
bool isActive() const
Definition Lr2BitmapFontTexture.cpp:135
void setTextureFilter(int value)
Definition Lr2BitmapFontTexture.cpp:94
qreal naturalHeight
Definition Lr2BitmapFontTexture.h:22