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
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
4#ifndef QPIXMAPSTYLE_P_H
5#define QPIXMAPSTYLE_P_H
6
7#include <QtWidgets/private/qtwidgetsglobal_p.h>
8#include "qpixmapstyle_p.h"
9#include "qcommonstyle_p.h"
10
12
13//
14// W A R N I N G
15// -------------
16//
17// This file is not part of the Qt API. It exists for the convenience
18// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
19// file may change from version to version without notice, or even be removed.
20//
21// We mean it.
22//
23
31
37
39{
40 Q_DECLARE_PUBLIC(QPixmapStyle)
41
42public:
43 QHash<QPixmapStyle::ControlDescriptor, QPixmapStyleDescriptor> descriptors;
44 QHash<QPixmapStyle::ControlPixmap, QPixmapStylePixmap> pixmaps;
45
46 static QPixmap scale(int w, int h, const QPixmap &pixmap, const QPixmapStyleDescriptor &desc);
47
49 const QPixmapStyleDescriptor &desc,
50 const QSize &size) const;
51
52 QSize computeSize(const QPixmapStyleDescriptor &desc, int width, int height) const;
53};
54
56
57#endif // QPIXMAPSTYLE_P_H
\inmodule QtCore
Definition qmargins.h:24
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
QHash< QPixmapStyle::ControlDescriptor, QPixmapStyleDescriptor > descriptors
The QPixmapStyle class provides mechanism for writing pixmap based styles.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei width
GLfloat GLfloat GLfloat GLfloat h
GLenum GLenum GLenum GLenum GLenum scale
widget render & pixmap
The QTileRules class provides the rules used to draw a pixmap or image split into nine segments.
Definition qdrawutil.h:88