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
qquickvectorimage_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 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 QQUICKVECTORIMAGE_P_H
5
#define QQUICKVECTORIMAGE_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <QQuickItem>
19
#include <QtQuickVectorImage/qtquickvectorimageexports.h>
20
21
QT_BEGIN_NAMESPACE
22
23
class
QQuickVectorImagePrivate
;
24
25
class
Q_QUICKVECTORIMAGE_EXPORT
QQuickVectorImage
:
public
QQuickItem
26
{
27
Q_OBJECT
28
29
Q_PROPERTY
(
QUrl
source
READ
source
WRITE setSource NOTIFY sourceChanged)
30
Q_PROPERTY
(
FillMode
fillMode
READ
fillMode
WRITE setFillMode NOTIFY fillModeChanged)
31
QML_NAMED_ELEMENT
(VectorImage)
32
33
public:
34
enum
FillMode
{
35
NoResize
,
36
PreserveAspectFit
,
37
PreserveAspectCrop
,
38
Stretch
39
};
40
Q_ENUM
(FillMode)
41
42
QQuickVectorImage
(
QQuickItem
*parent =
nullptr
);
43
44
QUrl
source
()
const
;
45
void
setSource(
const
QUrl
&
source
);
46
47
FillMode
fillMode
()
const
;
48
void
setFillMode(FillMode newFillMode);
49
50
signals
:
51
void
sourceChanged
();
52
void
fillModeChanged
();
53
54
private
slots
:
55
void
updateSvgItemScale();
56
57
private
:
58
Q_DISABLE_COPY(
QQuickVectorImage
)
59
Q_DECLARE_PRIVATE(
QQuickVectorImage
)
60
};
61
62
QT_END_NAMESPACE
63
64
#endif
// QQUICKVECTORIMAGE_P_H
65
QQuickItem
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition
qquickitem.h:63
QQuickVectorImagePrivate
Definition
qquickvectorimage_p_p.h:26
QQuickVectorImage
Definition
qquickvectorimage_p.h:26
QQuickVectorImage::FillMode
FillMode
Definition
qquickvectorimage_p.h:34
QQuickVectorImage::NoResize
@ NoResize
Definition
qquickvectorimage_p.h:35
QQuickVectorImage::PreserveAspectCrop
@ PreserveAspectCrop
Definition
qquickvectorimage_p.h:37
QQuickVectorImage::PreserveAspectFit
@ PreserveAspectFit
Definition
qquickvectorimage_p.h:36
QQuickVectorImage::fillModeChanged
void fillModeChanged()
QQuickVectorImage::sourceChanged
void sourceChanged()
QUrl
\inmodule QtCore
Definition
qurl.h:94
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
fillMode
GLenum fillMode
Definition
qopengles2ext.h:3182
source
GLsizei GLsizei GLchar * source
Definition
qopengles2ext.h:952
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
Q_ENUM
#define Q_ENUM(x)
Definition
qtmetamacros.h:68
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
slots
#define slots
Definition
qtmetamacros.h:40
signals
#define signals
Definition
qtmetamacros.h:41
qtdeclarative
src
quickvectorimage
qquickvectorimage_p.h
Generated by
1.10.0