qskinny/src/controls/QskAnimationHint.h

38 lines
944 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_ANIMATION_HINT_H
#define QSK_ANIMATION_HINT_H
#include "QskGlobal.h"
2018-07-19 14:10:48 +02:00
#include <qeasingcurve.h>
#include <qmetatype.h>
2017-07-21 18:21:34 +02:00
class QSK_EXPORT QskAnimationHint
{
2018-08-03 08:15:28 +02:00
public:
inline constexpr QskAnimationHint() noexcept
: duration( 0 )
, type( QEasingCurve::Linear )
2017-07-21 18:21:34 +02:00
{
}
inline constexpr QskAnimationHint( uint duration,
2018-08-03 08:15:28 +02:00
QEasingCurve::Type type = QEasingCurve::Linear ) noexcept
: duration( duration )
, type( type )
2017-07-21 18:21:34 +02:00
{
}
uint duration : 24;
QEasingCurve::Type type : 8;
};
Q_DECLARE_METATYPE( QskAnimationHint )
Q_DECLARE_TYPEINFO( QskAnimationHint, Q_PRIMITIVE_TYPE );
#endif