Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Loading...
Searching...
No Matches
qsgsoftwarespritenode_p.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 QSGSOFTWARESPRITENODE_H
5
#define QSGSOFTWARESPRITENODE_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 <private/qtquickglobal_p.h>
19
20
QT_REQUIRE_CONFIG
(quick_sprite);
21
22
#include <private/qsgadaptationlayer_p.h>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QSGSoftwarePixmapTexture
;
27
class
QSGSoftwareSpriteNode
:
public
QSGSpriteNode
28
{
29
public
:
30
QSGSoftwareSpriteNode
();
31
~QSGSoftwareSpriteNode
()
override
;
32
33
void
setTexture
(
QSGTexture
*
texture
)
override
;
34
void
setTime
(
float
time
)
override
;
35
void
setSourceA
(
const
QPoint
&
source
)
override
;
36
void
setSourceB
(
const
QPoint
&
source
)
override
;
37
void
setSpriteSize
(
const
QSize
&
size
)
override
;
38
void
setSheetSize
(
const
QSize
&
size
)
override
;
39
void
setSize
(
const
QSizeF
&
size
)
override
;
40
void
setFiltering
(
QSGTexture::Filtering
filtering)
override
;
41
void
update
()
override
;
42
43
void
paint
(
QPainter
*
painter
);
44
bool
isOpaque
()
const
;
45
QRectF
rect
()
const
;
46
47
private
:
48
49
QSGSoftwarePixmapTexture
*m_texture =
nullptr
;
50
float
m_time;
51
QPoint
m_sourceA;
52
QPoint
m_sourceB;
53
QSize
m_spriteSize;
54
QSize
m_sheetSize;
55
QSizeF
m_size;
56
57
};
58
59
QT_END_NAMESPACE
60
61
#endif
// QSGSOFTWARESPRITENODE_H
QPainter
The QPainter class performs low-level painting on widgets and other paint devices.
Definition
qpainter.h:46
QPoint
\inmodule QtCore\reentrant
Definition
qpoint.h:23
QRectF
\inmodule QtCore\reentrant
Definition
qrect.h:483
QSGSoftwarePixmapTexture
Definition
qsgsoftwarepixmaptexture_p.h:24
QSGSoftwareSpriteNode
Definition
qsgsoftwarespritenode_p.h:28
QSGSoftwareSpriteNode::isOpaque
bool isOpaque() const
Definition
qsgsoftwarespritenode.cpp:98
QSGSoftwareSpriteNode::setSize
void setSize(const QSizeF &size) override
Definition
qsgsoftwarespritenode.cpp:67
QSGSoftwareSpriteNode::setTexture
void setTexture(QSGTexture *texture) override
Definition
qsgsoftwarespritenode.cpp:21
QSGSoftwareSpriteNode::~QSGSoftwareSpriteNode
~QSGSoftwareSpriteNode() override
Definition
qsgsoftwarespritenode.cpp:16
QSGSoftwareSpriteNode::QSGSoftwareSpriteNode
QSGSoftwareSpriteNode()
Definition
qsgsoftwarespritenode.cpp:10
QSGSoftwareSpriteNode::setTime
void setTime(float time) override
Definition
qsgsoftwarespritenode.cpp:27
QSGSoftwareSpriteNode::setSourceB
void setSourceB(const QPoint &source) override
Definition
qsgsoftwarespritenode.cpp:43
QSGSoftwareSpriteNode::setSpriteSize
void setSpriteSize(const QSize &size) override
Definition
qsgsoftwarespritenode.cpp:51
QSGSoftwareSpriteNode::setFiltering
void setFiltering(QSGTexture::Filtering filtering) override
Definition
qsgsoftwarespritenode.cpp:75
QSGSoftwareSpriteNode::setSheetSize
void setSheetSize(const QSize &size) override
Definition
qsgsoftwarespritenode.cpp:59
QSGSoftwareSpriteNode::rect
QRectF rect() const
Definition
qsgsoftwarespritenode.cpp:103
QSGSoftwareSpriteNode::update
void update() override
Definition
qsgsoftwarespritenode.cpp:80
QSGSoftwareSpriteNode::setSourceA
void setSourceA(const QPoint &source) override
Definition
qsgsoftwarespritenode.cpp:35
QSGTexture
\inmodule QtQuick
Definition
qsgtexture.h:20
QSGTexture::Filtering
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
Definition
qsgtexture.h:34
QSizeF
\inmodule QtCore
Definition
qsize.h:207
QSize
\inmodule QtCore
Definition
qsize.h:25
paint
QPainter paint
Definition
doc_src_groups.cpp:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
texture
GLenum GLuint texture
Definition
qopengles2ext.h:416
source
GLsizei GLsizei GLchar * source
Definition
qopengles2ext.h:952
QT_REQUIRE_CONFIG
#define QT_REQUIRE_CONFIG(feature)
Definition
qtconfigmacros.h:66
time
QTime time
[5]
Definition
src_corelib_time_qdatetime.cpp:52
painter
QPainter painter(this)
[7]
qtdeclarative
src
quick
scenegraph
adaptations
software
qsgsoftwarespritenode_p.h
Generated by
1.9.7