Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Functions | |
VGPath | qPainterPathToVGPath (const QPainterPath &path) |
void | qDrawTiled (VGImage image, const QSize imageSize, const QRectF &targetRect, const QPointF offset, float scaleX, float scaleY) |
void | qDrawBorderImage (VGImage image, const QSizeF &textureSize, const QRectF &targetRect, const QRectF &innerTargetRect, const QRectF &subSourceRect) |
void | qDrawSubImage (VGImage image, const QRectF &sourceRect, const QPointF &destOffset) |
const QVector< VGfloat > | qColorToVGColor (const QColor &color, float opacity) |
VGImageFormat | qImageFormatToVGImageFormat (QImage::Format format) |
QImage::Format | qVGImageFormatToQImageFormat (VGImageFormat format) |
Definition at line 298 of file qsgopenvghelpers.cpp.
Referenced by QSGOpenVGRenderer::render(), QSGOpenVGInternalRectangleNode::render(), QSGOpenVGRectangleNode::render(), QSGOpenVGGlyphNode::setColor(), and QSGOpenVGGlyphNode::setStyleColor().
void QSGOpenVGHelpers::qDrawBorderImage | ( | VGImage | image, |
const QSizeF & | textureSize, | ||
const QRectF & | targetRect, | ||
const QRectF & | innerTargetRect, | ||
const QRectF & | subSourceRect ) |
Definition at line 184 of file qsgopenvghelpers.cpp.
References QMarginsF::bottom(), QRectF::height(), QSizeF::height(), QMarginsF::left(), QRectF::left(), qDrawSubImage(), qDrawTiled(), qMax(), QMarginsF::right(), QMarginsF::top(), QRectF::top(), QRectF::topLeft(), QRectF::width(), and QSizeF::width().
Referenced by QSGOpenVGInternalImageNode::render(), and QSGOpenVGNinePatchNode::render().
void QSGOpenVGHelpers::qDrawSubImage | ( | VGImage | image, |
const QRectF & | sourceRect, | ||
const QPointF & | destOffset ) |
Definition at line 277 of file qsgopenvghelpers.cpp.
References QRectF::height(), QRectF::width(), QRectF::x(), and QRectF::y().
Referenced by qDrawBorderImage().
void QSGOpenVGHelpers::qDrawTiled | ( | VGImage | image, |
const QSize | imageSize, | ||
const QRectF & | targetRect, | ||
const QPointF | offset, | ||
float | scaleX, | ||
float | scaleY ) |
Definition at line 115 of file qsgopenvghelpers.cpp.
References qFuzzyCompare(), and qRound().
Referenced by qDrawBorderImage(), and QSGOpenVGInternalImageNode::render().
VGImageFormat QSGOpenVGHelpers::qImageFormatToVGImageFormat | ( | QImage::Format | format | ) |
Definition at line 310 of file qsgopenvghelpers.cpp.
References QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_Grayscale8, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB32, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, and QImage::Format_RGBX8888.
Referenced by QSGOpenVGTexture::QSGOpenVGTexture().
VGPath QSGOpenVGHelpers::qPainterPathToVGPath | ( | const QPainterPath & | path | ) |
Definition at line 11 of file qsgopenvghelpers.cpp.
References QPainterPath::CurveToDataElement, QPainterPath::CurveToElement, i, QPainterPath::LineToElement, QPainterPath::MoveToElement, QPainterPath::Element::type, QPointF::x(), QPainterPath::Element::x, QPointF::y(), and QPainterPath::Element::y.
QImage::Format QSGOpenVGHelpers::qVGImageFormatToQImageFormat | ( | VGImageFormat | format | ) |
Definition at line 355 of file qsgopenvghelpers.cpp.
References QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_Grayscale8, QImage::Format_Mono, QImage::Format_RGB16, QImage::Format_RGB32, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, and QImage::Format_RGBX8888.