QSkinny
0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskTextColors.h
1
/******************************************************************************
2
* QSkinny - Copyright (C) The authors
3
* SPDX-License-Identifier: BSD-3-Clause
4
*****************************************************************************/
5
6
#ifndef QSK_TEXT_COLORS_H
7
#define QSK_TEXT_COLORS_H
8
9
#include "QskGlobal.h"
10
11
#include <qcolor.h>
12
#include <qmetatype.h>
13
14
class
QDebug;
15
class
QVariant;
16
17
class
QSK_EXPORT
QskTextColors
18
{
19
public
:
20
QskTextColors
(
const
QColor& text = QColor(),
21
const
QColor& style = QColor(),
const
QColor& link = QColor() );
22
23
QskTextColors
interpolated(
const
QskTextColors
&, qreal value )
const
;
24
25
static
QVariant interpolate(
const
QskTextColors
&,
26
const
QskTextColors
&, qreal ratio );
27
28
QskHashValue hash( QskHashValue seed = 0 )
const
noexcept
;
29
30
QColor textColor;
31
QColor styleColor;
32
QColor linkColor;
33
};
34
35
inline
QskTextColors::QskTextColors(
36
const
QColor& text,
const
QColor& style,
const
QColor& link )
37
: textColor( text )
38
, styleColor( style )
39
, linkColor( link )
40
{
41
}
42
43
#ifndef QT_NO_DEBUG_STREAM
44
45
QSK_EXPORT QDebug operator<<( QDebug,
const
QskTextColors
& );
46
47
#endif
48
49
Q_DECLARE_METATYPE(
QskTextColors
)
50
51
#endif
QskTextColors
Definition
QskTextColors.h:18
src
common
QskTextColors.h
Generated by
1.9.8