:right-sidebar: True PixbufSimpleAnim =================================================================== .. currentmodule:: gi.repository.GdkPixbuf .. class:: PixbufSimpleAnim(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GdkPixbuf.PixbufAnimation`, :class:`~gi.repository.GObject.Object` :Constructors: :: PixbufSimpleAnim(**properties) new(width:int, height:int, rate:float) -> GdkPixbuf.PixbufSimpleAnim Constructors ------------ .. rst-class:: interim-class .. class:: PixbufSimpleAnim :no-index: .. classmethod:: new(width: int, height: int, rate: float) -> ~gi.repository.GdkPixbuf.PixbufSimpleAnim Creates a new, empty animation. .. versionadded:: 2.8 :param width: the width of the animation :param height: the height of the animation :param rate: the speed of the animation, in frames per second Methods ------- .. rst-class:: interim-class .. class:: PixbufSimpleAnim :no-index: .. method:: add_frame(pixbuf: ~gi.repository.GdkPixbuf.Pixbuf) -> None Adds a new frame to ``animation``. The ``pixbuf`` must have the dimensions specified when the animation was constructed. .. versionadded:: 2.8 :param pixbuf: the pixbuf to add .. method:: get_loop() -> bool Gets whether ``animation`` should loop indefinitely when it reaches the end. .. versionadded:: 2.18 .. method:: set_loop(loop: bool) -> None Sets whether ``animation`` should loop indefinitely when it reaches the end. .. versionadded:: 2.18 :param loop: whether to loop the animation Properties ---------- .. rst-class:: interim-class .. class:: PixbufSimpleAnim :no-index: .. attribute:: props.loop :type: bool Whether the animation should loop when it reaches the end. .. versionadded:: 2.18