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.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
14namespace QSGOpenVGHelpers {
15
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);
23
24};
25
27
28#endif // QSGOPENVGHELPERS_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
Format
The following image formats are available in Qt.
Definition qimage.h:41
\inmodule QtGui
\inmodule QtCore\reentrant
Definition qpoint.h:217
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtCore
Definition qsize.h:208
\inmodule QtCore
Definition qsize.h:25
void qDrawBorderImage(VGImage image, const QSizeF &textureSize, const QRectF &targetRect, const QRectF &innerTargetRect, const QRectF &subSourceRect)
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)
const QVector< VGfloat > qColorToVGColor(const QColor &color, float opacity)
VGPath qPainterPathToVGPath(const QPainterPath &path)
void qDrawSubImage(VGImage image, const QRectF &sourceRect, const QPointF &destOffset)
Combined button and popup list for selecting options.
Definition image.cpp:4
GLuint color
[2]
GLenum GLuint GLintptr offset
GLint GLsizei GLsizei GLenum format
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei imageSize
GLsizei const GLchar *const * path