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
qquickstylehelper_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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#include <QtCore/qpoint.h>
5#include <QtCore/qstring.h>
6#include <QtGui/qpaintdevice.h>
7#include <QtGui/qpolygon.h>
8#include <QtCore/qstringbuilder.h>
9#include <QtCore/private/qglobal_p.h>
10#if QT_CONFIG(accessibility)
11#include <QtGui/qaccessible.h>
12#endif
13
14#ifndef QSTYLEHELPER_P_H
15#define QSTYLEHELPER_P_H
16
17//
18// W A R N I N G
19// -------------
20//
21// This file is not part of the Qt API. It exists purely as an
22// implementation detail. This header file may change from version to
23// version without notice, or even be removed.
24//
25// We mean it.
26//
27
29
30class QObject;
31class QPainter;
32class QPixmap;
33
34namespace QQC2 {
35
36class QStyleOptionSlider;
37class QStyleOption;
38
39namespace QStyleHelper
40{
41 QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size);
42
47
48 qreal angle(const QPointF &p1, const QPointF &p2);
49 QPolygonF calcLines(const QStyleOptionSlider *dial);
50 int calcBigLineSize(int radius);
51 void drawDial(const QStyleOptionSlider *dial, QPainter *painter);
52
54 int left = 0, int top = 0, int right = 0,
55 int bottom = 0);
56
57#if QT_CONFIG(accessibility)
58 bool isInstanceOf(QObject *obj, QAccessible::Role role);
59 bool hasAncestor(QObject *obj, QAccessible::Role role);
60#endif
62
65}
66
67} // namespace QQC2
68
70
71#endif // QSTYLEHELPER_P_H
IOBluetoothDevice * device
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore
Definition qobject.h:103
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QPolygonF class provides a list of points using floating point precision.
Definition qpolygon.h:96
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QStyleOption class stores the parameters used by QStyle functions.
QPixmap p2
QPixmap p1
[0]
rect
[4]
QStyleOptionButton opt
QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size)
int calcBigLineSize(int radius)
QPolygonF calcLines(const QStyleOptionSlider *dial)
qreal dpi(const QStyleOption *option)
void drawBorderPixmap(const QPixmap &pixmap, QPainter *painter, const QRect &rect, int left, int top, int right, int bottom)
WidgetSizePolicy widgetSizePolicy(const QStyleOption *opt)
QColor backgroundColor(const QPalette &pal)
qreal dpiScaled(qreal value, qreal dpi)
void drawDial(const QStyleOptionSlider *option, QPainter *painter)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint64 key
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLdouble GLdouble GLdouble GLdouble top
GLdouble GLdouble right
GLint left
GLint GLint bottom
GLfloat angle
GLhandleARB obj
[2]
GLuint GLenum option
double qreal
Definition qtypes.h:187
widget render & pixmap
QPainter painter(this)
[7]