subsurface/profile-widget/animationfunctions.h
Berthold Stoeger 2d9dc40171 Profile: add speed parameter to Animation::* functions
For now always use the preferences value, so that this is a
no-op. This is a preparation for storing the speed in the
profile widget.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-07-12 09:59:28 +02:00

19 lines
494 B
C++

// SPDX-License-Identifier: GPL-2.0
#ifndef ANIMATIONFUNCTIONS_H
#define ANIMATIONFUNCTIONS_H
#include <QtGlobal>
#include <QPointF>
class QObject;
namespace Animations {
void hide(QObject *obj, int speed);
void show(QObject *obj, int speed);
void moveTo(QObject *obj, int speed, qreal x, qreal y);
void moveTo(QObject *obj, int speed, const QPointF &pos);
void animDelete(QObject *obj, int speed);
void scaleTo(QObject *obj, int speed, qreal scale);
}
#endif // ANIMATIONFUNCTIONS_H