Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgopenvghelpers.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGOPENVGHELPERS_H
5#define QSGOPENVGHELPERS_H
6
7#include <QtGui/QPainterPath>
8#include <QtGui/QColor>
9#include <QtGui/QImage>
10#include <VG/openvg.h>
11
13
15
16VGPath qPainterPathToVGPath(const QPainterPath &path);
17void qDrawTiled(VGImage image, const QSize imageSize, const QRectF &targetRect, const QPointF offset, float scaleX, float scaleY);
18void qDrawBorderImage(VGImage image, const QSizeF &textureSize, const QRectF &targetRect, const QRectF &innerTargetRect, const QRectF &subSourceRect);
19void qDrawSubImage(VGImage image, const QRectF &sourceRect, const QPointF &destOffset);
20const QVector<VGfloat> qColorToVGColor(const QColor &color, float opacity = 1.0f);
21VGImageFormat qImageFormatToVGImageFormat(QImage::Format format);
22QImage::Format qVGImageFormatToQImageFormat(VGImageFormat format);
23
24};
25
26QT_END_NAMESPACE
27
28#endif // QSGOPENVGHELPERS_H
QSGOpenVGFontGlyphCache * cache(const QRawFont &font)
void insertCache(const QRawFont &font, QSGOpenVGFontGlyphCache *cache)
void populate(const QVector< quint32 > &glyphs)
void release(const QVector< quint32 > &glyphs)
QSGOpenVGFontGlyphCache(QSGOpenVGFontGlyphCacheManager *manager, const QRawFont &font)
void qDrawBorderImage(VGImage image, const QSizeF &textureSize, const QRectF &targetRect, const QRectF &innerTargetRect, const QRectF &subSourceRect)
const QVector< VGfloat > qColorToVGColor(const QColor &color, float opacity=1.0f)
void qDrawTiled(VGImage image, const QSize imageSize, const QRectF &targetRect, const QPointF offset, float scaleX, float scaleY)
QImage::Format qVGImageFormatToQImageFormat(VGImageFormat format)
VGImageFormat qImageFormatToVGImageFormat(QImage::Format format)
VGPath qPainterPathToVGPath(const QPainterPath &path)
void qDrawSubImage(VGImage image, const QRectF &sourceRect, const QPointF &destOffset)