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
qpixmapstyle_p_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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPIXMAPSTYLE_P_H
6
#
define
QPIXMAPSTYLE_P_H
7
8
#
include
<
QtWidgets
/
private
/
qtwidgetsglobal_p
.
h
>
9
#
include
"qpixmapstyle_p.h"
10
#
include
"qcommonstyle_p.h"
11
12
QT_BEGIN_NAMESPACE
13
14
//
15
// W A R N I N G
16
// -------------
17
//
18
// This file is not part of the Qt API. It exists for the convenience
19
// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
20
// file may change from version to version without notice, or even be removed.
21
//
22
// We mean it.
23
//
24
25
struct
QPixmapStyleDescriptor
26
{
27
QString
fileName
;
28
QSize
size
;
29
QMargins
margins
;
30
QTileRules
tileRules
;
31
};
32
33
struct
QPixmapStylePixmap
34
{
35
QPixmap
pixmap
;
36
QMargins
margins
;
37
};
38
39
class
QPixmapStylePrivate
:
public
QCommonStylePrivate
40
{
41
Q_DECLARE_PUBLIC(QPixmapStyle)
42
43
public
:
44
QHash
<
QPixmapStyle
::
ControlDescriptor
,
QPixmapStyleDescriptor
>
descriptors
;
45
QHash
<
QPixmapStyle
::
ControlPixmap
,
QPixmapStylePixmap
>
pixmaps
;
46
47
static
QPixmap
scale
(
int
w,
int
h,
const
QPixmap &pixmap,
const
QPixmapStyleDescriptor
&desc);
48
49
QPixmap
getCachedPixmap
(QPixmapStyle::ControlDescriptor control,
50
const
QPixmapStyleDescriptor
&desc,
51
const
QSize &size)
const
;
52
53
QSize
computeSize
(
const
QPixmapStyleDescriptor
&desc,
int
width,
int
height)
const
;
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
// QPIXMAPSTYLE_P_H
QPixmapStylePrivate
Definition
qpixmapstyle_p_p.h:40
QPixmapStylePrivate::getCachedPixmap
QPixmap getCachedPixmap(QPixmapStyle::ControlDescriptor control, const QPixmapStyleDescriptor &desc, const QSize &size) const
Definition
qpixmapstyle.cpp:1167
QPixmapStylePrivate::computeSize
QSize computeSize(const QPixmapStyleDescriptor &desc, int width, int height) const
Definition
qpixmapstyle.cpp:1188
QPixmapStylePrivate::pixmaps
QHash< QPixmapStyle::ControlPixmap, QPixmapStylePixmap > pixmaps
Definition
qpixmapstyle_p_p.h:45
QPixmapStylePrivate::scale
static QPixmap scale(int w, int h, const QPixmap &pixmap, const QPixmapStyleDescriptor &desc)
Definition
qpixmapstyle.cpp:1153
QPixmapStyle
The QPixmapStyle class provides mechanism for writing pixmap based styles.
Definition
qpixmapstyle_p.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QPixmapStyleDescriptor
Definition
qpixmapstyle_p_p.h:26
QPixmapStyleDescriptor::fileName
QString fileName
Definition
qpixmapstyle_p_p.h:27
QPixmapStyleDescriptor::size
QSize size
Definition
qpixmapstyle_p_p.h:28
QPixmapStyleDescriptor::tileRules
QTileRules tileRules
Definition
qpixmapstyle_p_p.h:30
QPixmapStyleDescriptor::margins
QMargins margins
Definition
qpixmapstyle_p_p.h:29
QPixmapStylePixmap
Definition
qpixmapstyle_p_p.h:34
QPixmapStylePixmap::pixmap
QPixmap pixmap
Definition
qpixmapstyle_p_p.h:35
QPixmapStylePixmap::margins
QMargins margins
Definition
qpixmapstyle_p_p.h:36
qtbase
src
widgets
styles
qpixmapstyle_p_p.h
Generated on
for Qt by
1.18.0