QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskSkinTransition.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_SKIN_TRANSITION_H
7#define QSK_SKIN_TRANSITION_H
8
9#include "QskGlobal.h"
10#include <memory>
11
13class QskFontRole;
14class QskAspect;
15class QskSkin;
16
17class QQuickWindow;
18class QVariant;
19
20template< typename Key, typename T > class QHash;
21
22class QSK_EXPORT QskSkinTransition
23{
24 public:
25 enum Type
26 {
27 Color = 1,
28 Metric = 2,
29
30 AllTypes = Color | Metric
31 };
32
34 virtual ~QskSkinTransition();
35
36 void setSourceSkin( const QskSkin* );
37 void setTargetSkin( const QskSkin* );
38
39 void setMask( Type );
40 Type mask() const;
41
42 void run( const QskAnimationHint& );
43
44 static bool isRunning();
45
46 static QVariant animatedHint( const QQuickWindow*, QskAspect );
47 static QVariant animatedGraphicFilter( const QQuickWindow*, int graphicRole );
48 static QVariant animatedFontSize( const QQuickWindow*, const QskFontRole& );
49
50 private:
51 Q_DISABLE_COPY( QskSkinTransition )
52
53 class PrivateData;
54 std::unique_ptr< PrivateData > m_data;
55};
56
57#endif
Lookup key for a QskSkinHintTable.
Definition QskAspect.h:15