2011-10-19 23:04:52 +00:00
|
|
|
/********************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2011 Thomas Lübking <thomas.luebking@web.de>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
#ifndef ANIDATA_H
|
|
|
|
#define ANIDATA_H
|
|
|
|
|
|
|
|
#include "kwinanimationeffect.h"
|
|
|
|
#include <QEasingCurve>
|
|
|
|
#include <netwm.h>
|
|
|
|
|
|
|
|
namespace KWin {
|
|
|
|
|
2018-07-23 21:52:58 +00:00
|
|
|
class KWINEFFECTS_EXPORT AniData {
|
2011-10-19 23:04:52 +00:00
|
|
|
public:
|
|
|
|
AniData();
|
|
|
|
AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to,
|
2018-10-03 00:11:59 +00:00
|
|
|
QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource, bool keepAtTarget = false, FullScreenEffectLockPtr=FullScreenEffectLockPtr());
|
2012-12-29 06:34:38 +00:00
|
|
|
explicit AniData(const QString &str);
|
2011-10-19 23:04:52 +00:00
|
|
|
inline void addTime(int t) { time += t; }
|
|
|
|
inline bool isOneDimensional() const {
|
|
|
|
return from[0] == from[1] && to[0] == to[1];
|
|
|
|
}
|
2016-03-04 17:17:42 +00:00
|
|
|
|
|
|
|
quint64 id{0};
|
2011-10-19 23:04:52 +00:00
|
|
|
static QList<AniData> list(const QString &str);
|
|
|
|
QString toString() const;
|
2012-10-27 21:35:19 +00:00
|
|
|
QString debugInfo() const;
|
2011-10-19 23:04:52 +00:00
|
|
|
AnimationEffect::Attribute attribute;
|
|
|
|
QEasingCurve curve;
|
|
|
|
int customCurve;
|
|
|
|
FPx2 from, to;
|
|
|
|
int time, duration;
|
|
|
|
uint meta;
|
2012-11-03 20:33:34 +00:00
|
|
|
qint64 startTime;
|
2011-10-19 23:04:52 +00:00
|
|
|
NET::WindowTypeMask windowType;
|
2018-10-03 00:11:59 +00:00
|
|
|
QSharedPointer<FullScreenEffectLock> fullScreenEffectLock;
|
2013-02-28 18:51:00 +00:00
|
|
|
bool waitAtSource, keepAtTarget;
|
2011-10-19 23:04:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
2012-10-27 21:35:19 +00:00
|
|
|
QDebug operator<<(QDebug dbg, const KWin::AniData &a);
|
|
|
|
|
2011-10-19 23:04:52 +00:00
|
|
|
#endif // ANIDATA_H
|