Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
12
QT_BEGIN_NAMESPACE
13
14
namespace
QSGOpenVGHelpers
{
15
16
VGPath
qPainterPathToVGPath
(
const
QPainterPath &path);
17
void
qDrawTiled
(VGImage image,
const
QSize imageSize,
const
QRectF &targetRect,
const
QPointF offset,
float
scaleX,
float
scaleY);
18
void
qDrawBorderImage
(VGImage image,
const
QSizeF &textureSize,
const
QRectF &targetRect,
const
QRectF &innerTargetRect,
const
QRectF &subSourceRect);
19
void
qDrawSubImage
(VGImage image,
const
QRectF &sourceRect,
const
QPointF &destOffset);
20
const
QList
<
VGfloat
>
qColorToVGColor
(
const
QColor &color,
float
opacity = 1.0f);
21
VGImageFormat
qImageFormatToVGImageFormat
(QImage::Format format);
22
QImage
::
Format
qVGImageFormatToQImageFormat
(VGImageFormat format);
23
24
};
25
26
QT_END_NAMESPACE
27
28
#
endif
// QSGOPENVGHELPERS_H
QSGOpenVGFontGlyphCacheManager
Definition
qsgopenvgfontglyphcache.h:16
QSGOpenVGFontGlyphCacheManager::cache
QSGOpenVGFontGlyphCache * cache(const QRawFont &font)
Definition
qsgopenvgfontglyphcache.cpp:21
QSGOpenVGFontGlyphCacheManager::insertCache
void insertCache(const QRawFont &font, QSGOpenVGFontGlyphCache *cache)
Definition
qsgopenvgfontglyphcache.cpp:26
QSGOpenVGFontGlyphCacheManager::~QSGOpenVGFontGlyphCacheManager
~QSGOpenVGFontGlyphCacheManager()
Definition
qsgopenvgfontglyphcache.cpp:16
QSGOpenVGFontGlyphCache
Definition
qsgopenvgfontglyphcache.h:29
QSGOpenVGFontGlyphCache::release
void release(const QList< quint32 > &glyphs)
Definition
qsgopenvgfontglyphcache.cpp:71
QSGOpenVGFontGlyphCache::glyphCount
int glyphCount() const
Definition
qsgopenvgfontglyphcache.h:36
QSGOpenVGFontGlyphCache::populate
void populate(const QList< quint32 > &glyphs)
Definition
qsgopenvgfontglyphcache.cpp:46
QSGOpenVGFontGlyphCache::QSGOpenVGFontGlyphCache
QSGOpenVGFontGlyphCache(QSGOpenVGFontGlyphCacheManager *manager, const QRawFont &font)
Definition
qsgopenvgfontglyphcache.cpp:31
QSGOpenVGFontGlyphCache::~QSGOpenVGFontGlyphCache
~QSGOpenVGFontGlyphCache()
Definition
qsgopenvgfontglyphcache.cpp:40
QSGOpenVGHelpers
Definition
qsgopenvghelpers.h:14
QSGOpenVGHelpers::qDrawBorderImage
void qDrawBorderImage(VGImage image, const QSizeF &textureSize, const QRectF &targetRect, const QRectF &innerTargetRect, const QRectF &subSourceRect)
Definition
qsgopenvghelpers.cpp:184
QSGOpenVGHelpers::qColorToVGColor
const QList< VGfloat > qColorToVGColor(const QColor &color, float opacity=1.0f)
Definition
qsgopenvghelpers.cpp:298
QSGOpenVGHelpers::qDrawTiled
void qDrawTiled(VGImage image, const QSize imageSize, const QRectF &targetRect, const QPointF offset, float scaleX, float scaleY)
Definition
qsgopenvghelpers.cpp:115
QSGOpenVGHelpers::qVGImageFormatToQImageFormat
QImage::Format qVGImageFormatToQImageFormat(VGImageFormat format)
Definition
qsgopenvghelpers.cpp:355
QSGOpenVGHelpers::qImageFormatToVGImageFormat
VGImageFormat qImageFormatToVGImageFormat(QImage::Format format)
Definition
qsgopenvghelpers.cpp:310
QSGOpenVGHelpers::qPainterPathToVGPath
VGPath qPainterPathToVGPath(const QPainterPath &path)
Definition
qsgopenvghelpers.cpp:11
QSGOpenVGHelpers::qDrawSubImage
void qDrawSubImage(VGImage image, const QRectF &sourceRect, const QPointF &destOffset)
Definition
qsgopenvghelpers.cpp:277
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
plugins
scenegraph
openvg
qsgopenvghelpers.h
Generated on
for Qt by
1.18.0