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
qquickclippedtext_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 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 QQUICKCLIPPEDTEXT_P_H
5
#define QQUICKCLIPPEDTEXT_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 <QtQuick/private/qquicktext_p.h>
19
#include <QtQuickControls2Impl/private/qtquickcontrols2implglobal_p.h>
20
21
QT_BEGIN_NAMESPACE
22
23
class
Q_QUICKCONTROLS2IMPL_PRIVATE_EXPORT
QQuickClippedText
:
public
QQuickText
24
{
25
Q_OBJECT
26
Q_PROPERTY
(
qreal
clipX READ clipX WRITE setClipX FINAL)
27
Q_PROPERTY
(
qreal
clipY READ clipY WRITE setClipY FINAL)
28
Q_PROPERTY
(
qreal
clipWidth READ clipWidth WRITE setClipWidth FINAL)
29
Q_PROPERTY
(
qreal
clipHeight READ clipHeight WRITE setClipHeight FINAL)
30
QML_NAMED_ELEMENT
(ClippedText)
31
QML_ADDED_IN_VERSION
(2, 2)
32
33
public
:
34
explicit
QQuickClippedText
(
QQuickItem
*
parent
=
nullptr
);
35
36
qreal
clipX()
const
;
37
void
setClipX(
qreal
x
);
38
39
qreal
clipY()
const
;
40
void
setClipY(
qreal
y
);
41
42
qreal
clipWidth()
const
;
43
void
setClipWidth(
qreal
width
);
44
45
qreal
clipHeight()
const
;
46
void
setClipHeight(
qreal
height
);
47
48
QRectF
clipRect
()
const override
;
49
50
private
:
51
void
markClipDirty();
52
53
bool
m_hasClipWidth =
false
;
54
bool
m_hasClipHeight =
false
;
55
qreal
m_clipX = 0;
56
qreal
m_clipY = 0;
57
qreal
m_clipWidth = 0;
58
qreal
m_clipHeight = 0;
59
};
60
61
QT_END_NAMESPACE
62
63
QML_DECLARE_TYPE
(
QQuickClippedText
)
64
65
#endif
// QQUICKCLIPPEDTEXT_P_H
QQuickClippedText
Definition
qquickclippedtext_p.h:24
QQuickItem
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition
qquickitem.h:64
QQuickText
Definition
qquicktext_p.h:28
QQuickText::clipRect
QRectF clipRect() const override
Returns a rectangular area slightly larger than what is currently visible in \l viewportItem(); other...
Definition
qquicktext.cpp:2434
QRectF
\inmodule QtCore\reentrant
Definition
qrect.h:483
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
x
GLint GLint GLint GLint GLint x
[0]
Definition
qopengles2ext.h:605
height
GLint GLsizei GLsizei height
Definition
qopengles2ext.h:206
width
GLint GLsizei width
Definition
qopengles2ext.h:206
y
GLint y
Definition
qopengles2ext.h:206
QML_DECLARE_TYPE
#define QML_DECLARE_TYPE(TYPE)
Definition
qqml.h:19
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:52
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:86
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
qreal
double qreal
Definition
qtypes.h:92
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtdeclarative
src
quickcontrolsimpl
qquickclippedtext_p.h
Generated by
1.9.7