mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			104 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/qgsanimatedicon.h                                           *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsAnimatedIcon : QObject
 | |
| {
 | |
| %Docstring
 | |
|  Animated icon is keeping an animation running if there are listeners connected to frameChanged
 | |
| %End
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsanimatedicon.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     QgsAnimatedIcon( const QString &iconPath = QString(), QObject *parent = 0 );
 | |
| %Docstring
 | |
|  Create a new animated icon. Optionally, the ``iconPath`` can already be specified.
 | |
| %End
 | |
| 
 | |
|     QString iconPath() const;
 | |
| %Docstring
 | |
|  Path to a movie, e.g. animated GIF
 | |
|  :rtype: str
 | |
| %End
 | |
| 
 | |
|     void setIconPath( const QString &iconPath );
 | |
| %Docstring
 | |
|  Path to a movie, e.g. animated GIF
 | |
| %End
 | |
| 
 | |
|     QIcon icon() const;
 | |
| %Docstring
 | |
|  Get the icons representation in the current frame.
 | |
|  This will need to be called repeatedly, whenever a frameChanged()
 | |
|  signal is emitted.
 | |
|  :rtype: QIcon
 | |
| %End
 | |
| 
 | |
| 
 | |
|     bool connectFrameChanged( const QObject *receiver, const char *method );
 | |
| %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
 | |
| %End
 | |
| 
 | |
|     bool disconnectFrameChanged( const QObject *receiver, const char *method );
 | |
| %Docstring
 | |
|  Convenience function to disconnect the same style that the frame change connection was established.
 | |
| 
 | |
| .. versionadded:: 3.0
 | |
|  :rtype: bool
 | |
| %End
 | |
| 
 | |
| 
 | |
|     int width() const;
 | |
| %Docstring
 | |
|  The native width of the icon.
 | |
| 
 | |
| .. versionadded:: 3.0
 | |
|  :rtype: int
 | |
| %End
 | |
| 
 | |
|     int height() const;
 | |
| %Docstring
 | |
|  The native height of the icon.
 | |
| 
 | |
| .. versionadded:: 3.0
 | |
|  :rtype: int
 | |
| %End
 | |
| 
 | |
|   signals:
 | |
| 
 | |
|     void frameChanged();
 | |
| %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.
 | |
| 
 | |
| .. seealso:: connectFrameChanged
 | |
| %End
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/qgsanimatedicon.h                                           *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |