QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskBoxHints.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_BOX_HINTS_H
7#define QSK_BOX_HINTS_H
8
9#include "QskBoxBorderMetrics.h"
10#include "QskBoxBorderColors.h"
11#include "QskBoxShapeMetrics.h"
12#include "QskShadowMetrics.h"
13#include "QskGradient.h"
14#include <qcolor.h>
15
16class QSK_EXPORT QskBoxHints
17{
18 Q_GADGET
19
20 Q_PROPERTY( QskBoxShapeMetrics shape MEMBER shape )
21 Q_PROPERTY( QskBoxBorderMetrics borderMetrics MEMBER borderMetrics )
22 Q_PROPERTY( QskBoxBorderColors borderColors MEMBER borderColors )
23 Q_PROPERTY( QskGradient gradient MEMBER gradient )
24 Q_PROPERTY( QskShadowMetrics shadowMetrics MEMBER shadowMetrics )
25 Q_PROPERTY( QColor shadowColor MEMBER shadowColor )
26
27 public:
30 const QskBoxBorderColors&, const QskGradient&,
31 const QskShadowMetrics&, const QColor& );
32
33 QskBoxHints toAbsolute( const QSizeF& ) const noexcept;
34
35 QskBoxHints interpolated(
36 const QskBoxHints&, qreal value ) const noexcept;
37
39 QskBoxBorderMetrics borderMetrics;
40 QskBoxBorderColors borderColors;
41 QskGradient gradient;
42 QskShadowMetrics shadowMetrics;
43 QColor shadowColor;
44};
45
46#ifndef QT_NO_DEBUG_STREAM
47
48class QDebug;
49QSK_EXPORT QDebug operator<<( QDebug, const QskBoxHints& );
50
51#endif
52
53#endif