QGIS/python/core/qgsanimatedicon.sip

104 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
{
2017-03-30 17:54:46 +02:00
%Docstring
Animated icon is keeping an animation running if there are listeners connected to frameChanged
%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
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
Path to a movie, e.g. animated GIF
:rtype: str
2017-03-30 17:54:46 +02:00
%End
void setIconPath( const QString &iconPath );
2017-03-30 17:54:46 +02:00
%Docstring
Path to a movie, e.g. animated GIF
%End
QIcon icon() const;
2017-03-30 17:54:46 +02:00
%Docstring
Get the icons representation in the current frame.
This will need to be called repeatedly, whenever a frameChanged()
signal is emitted.
:rtype: QIcon
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
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.
.. versionadded:: 3.0
:rtype: bool
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
Convenience function to disconnect the same style that the frame change connection was established.
.. versionadded:: 3.0
:rtype: bool
2017-03-30 17:54:46 +02:00
%End
int width() const;
2017-03-30 17:54:46 +02:00
%Docstring
The native width of the icon.
.. versionadded:: 3.0
:rtype: int
2017-03-30 17:54:46 +02:00
%End
int height() const;
2017-03-30 17:54:46 +02:00
%Docstring
The native height of the icon.
.. versionadded:: 3.0
:rtype: int
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
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-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 *
************************************************************************/