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>.
Loading...
Searching...
No Matches
QSGOpenVGHelpers Namespace Reference

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)
 

Function Documentation

◆ qColorToVGColor()

const QVector< VGfloat > QSGOpenVGHelpers::qColorToVGColor ( const QColor & color,
float opacity )

Definition at line 298 of file qsgopenvghelpers.cpp.

Referenced by QSGOpenVGRenderer::render(), QSGOpenVGInternalRectangleNode::render(), QSGOpenVGRectangleNode::render(), QSGOpenVGGlyphNode::setColor(), and QSGOpenVGGlyphNode::setStyleColor().

+ Here is the caller graph for this function:

◆ qDrawBorderImage()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawSubImage()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawTiled()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qImageFormatToVGImageFormat()

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().

+ Here is the caller graph for this function:

◆ qPainterPathToVGPath()

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.

+ Here is the call graph for this function:

◆ qVGImageFormatToQImageFormat()