QGIS/python/core/auto_generated/qgsanimatedicon.sip.in

98 lines
2.9 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsanimatedicon.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-03-30 17:54:46 +02:00
class QgsAnimatedIcon : QObject
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
2017-12-15 10:36:55 -04:00
Animated icon is keeping an animation running if there are listeners connected to frameChanged
2017-03-30 17:54:46 +02:00
%End
%TypeHeaderCode
2017-03-30 17:54:46 +02:00
#include "qgsanimatedicon.h"
%End
public:
2017-03-30 17:54:46 +02:00
QgsAnimatedIcon( const QString &iconPath = QString(), QObject *parent = 0 );
%Docstring
2017-12-15 10:36:55 -04:00
Create a new animated icon. Optionally, the ``iconPath`` can already be specified.
2017-03-30 17:54:46 +02:00
%End
QString iconPath() const;
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Path to a movie, e.g. animated GIF
2017-03-30 17:54:46 +02:00
%End
void setIconPath( const QString &iconPath );
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Path to a movie, e.g. animated GIF
2017-03-30 17:54:46 +02:00
%End
QIcon icon() const;
2017-03-30 17:54:46 +02:00
%Docstring
Gets the icons representation in the current frame.
This will need to be called repeatedly, whenever a :py:func:`~QgsAnimatedIcon.frameChanged`
2017-12-15 10:36:55 -04:00
signal is emitted.
2017-03-30 17:54:46 +02:00
%End
bool connectFrameChanged( const QObject *receiver, const char *method );
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Connect a slot that will be notified repeatedly whenever a frame changes and which should
request the current icon and trigger UI updates.
Connect to the frame changed signal with this method and not directly. This method
makes sure the annimation is started.
2017-03-30 17:54:46 +02:00
.. versionadded:: 3.0
2017-03-30 17:54:46 +02:00
%End
bool disconnectFrameChanged( const QObject *receiver, const char *method );
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Convenience function to disconnect the same style that the frame change connection was established.
.. versionadded:: 3.0
2017-03-30 17:54:46 +02:00
%End
int width() const;
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The native width of the icon.
.. versionadded:: 3.0
2017-03-30 17:54:46 +02:00
%End
int height() const;
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The native height of the icon.
.. versionadded:: 3.0
2017-03-30 17:54:46 +02:00
%End
signals:
2017-03-30 17:54:46 +02:00
void frameChanged();
2017-03-30 17:54:46 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Emitted when the icon changed. You should use connectFrameChanged instead of connecting
to this signal directly.
Connecting to this signal directly will cause the animation not to be started.
2017-03-30 17:54:46 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`connectFrameChanged`
2017-03-30 17:54:46 +02:00
%End
};
2017-03-30 17:54:46 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsanimatedicon.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/