Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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>
10#include "qcommonstyle_p.h"
11
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
32
38
40{
41 Q_DECLARE_PUBLIC(QPixmapStyle)
42
43public:
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
56QT_END_NAMESPACE
57
58#endif // QPIXMAPSTYLE_P_H
QPixmap getCachedPixmap(QPixmapStyle::ControlDescriptor control, const QPixmapStyleDescriptor &desc, const QSize &size) const
QSize computeSize(const QPixmapStyleDescriptor &desc, int width, int height) const
QHash< QPixmapStyle::ControlPixmap, QPixmapStylePixmap > pixmaps
static QPixmap scale(int w, int h, const QPixmap &pixmap, const QPixmapStyleDescriptor &desc)
The QPixmapStyle class provides mechanism for writing pixmap based styles.