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
qtextimagehandler_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 QTEXTIMAGEHANDLER_P_H
5
#define QTEXTIMAGEHANDLER_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 <QtGui/private/qtguiglobal_p.h>
19
#include "QtCore/qobject.h"
20
#include "QtGui/qabstracttextdocumentlayout.h"
21
22
QT_BEGIN_NAMESPACE
23
24
class
QTextImageFormat
;
25
26
class
Q_GUI_EXPORT
QTextImageHandler
:
public
QObject
,
27
public
QTextObjectInterface
28
{
29
Q_OBJECT
30
Q_INTERFACES
(
QTextObjectInterface
)
31
public
:
32
explicit
QTextImageHandler
(
QObject
*parent =
nullptr
);
33
34
virtual
QSizeF
intrinsicSize(
QTextDocument
*doc,
int
posInDocument,
const
QTextFormat
&
format
)
override
;
35
virtual
void
drawObject(
QPainter
*
p
,
const
QRectF
&
rect
,
QTextDocument
*doc,
int
posInDocument,
const
QTextFormat
&
format
)
override
;
36
QImage
image
(
QTextDocument
*doc,
const
QTextImageFormat
&imageFormat);
37
};
38
39
QT_END_NAMESPACE
40
41
#endif
// QTEXTIMAGEHANDLER_P_H
QImage
\inmodule QtGui
Definition
qimage.h:37
QObject
\inmodule QtCore
Definition
qobject.h:103
QPainter
The QPainter class performs low-level painting on widgets and other paint devices.
Definition
qpainter.h:46
QRectF
\inmodule QtCore\reentrant
Definition
qrect.h:484
QSizeF
\inmodule QtCore
Definition
qsize.h:208
QTextDocument
\reentrant \inmodule QtGui
Definition
qtextdocument.h:60
QTextFormat
\reentrant
Definition
qtextformat.h:90
QTextImageFormat
\reentrant
Definition
qtextformat.h:786
QTextImageHandler
Definition
qtextimagehandler_p.h:28
QTextObjectInterface
The QTextObjectInterface class allows drawing of custom text objects in \l{QTextDocument}s.
Definition
qabstracttextdocumentlayout.h:103
rect
rect
[4]
Definition
doc_src_styles.cpp:43
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
image
Definition
image.cpp:4
format
GLint GLsizei GLsizei GLenum format
Definition
qopengles2ext.h:206
p
GLfloat GLfloat p
[1]
Definition
qopenglext.h:12698
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_INTERFACES
#define Q_INTERFACES(x)
Definition
qtmetamacros.h:55
qtbase
src
gui
text
qtextimagehandler_p.h
Generated by
1.10.0