:right-sidebar: True PropertyAnimationTarget =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.2 .. class:: PropertyAnimationTarget(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Adw.AnimationTarget`, :class:`~gi.repository.GObject.Object` :Constructors: :: PropertyAnimationTarget(**properties) new(object:GObject.Object, property_name:str) -> Adw.AnimationTarget new_for_pspec(object:GObject.Object, pspec:GObject.ParamSpec) -> Adw.AnimationTarget Constructors ------------ .. rst-class:: interim-class .. class:: PropertyAnimationTarget :no-index: .. classmethod:: new(object: ~gi.repository.GObject.Object, property_name: str) -> ~gi.repository.Adw.AnimationTarget Creates a new ``AdwPropertyAnimationTarget`` for the ``property_name`` property on ``object``. .. versionadded:: 1.2 :param object: an object to be animated :param property_name: the name of the property on ``object`` to animate .. classmethod:: new_for_pspec(object: ~gi.repository.GObject.Object, pspec: ~gi.repository.GObject.ParamSpec) -> ~gi.repository.Adw.AnimationTarget Creates a new ``AdwPropertyAnimationTarget`` for the ``pspec`` property on ``object``. .. versionadded:: 1.2 :param object: an object to be animated :param pspec: the param spec of the property on ``object`` to animate Methods ------- .. rst-class:: interim-class .. class:: PropertyAnimationTarget :no-index: .. method:: get_object() -> ~gi.repository.GObject.Object Gets the object animated by ``self``. The ``AdwPropertyAnimationTarget`` instance does not hold a strong reference on the object; make sure the object is kept alive throughout the target's lifetime. .. versionadded:: 1.2 .. method:: get_pspec() -> ~gi.repository.GObject.ParamSpec Gets the ``GParamSpec`` of the property animated by ``self``. .. versionadded:: 1.2 Properties ---------- .. rst-class:: interim-class .. class:: PropertyAnimationTarget :no-index: .. attribute:: props.object :type: ~gi.repository.GObject.Object The object whose property will be animated. The ``AdwPropertyAnimationTarget`` instance does not hold a strong reference on the object; make sure the object is kept alive throughout the target's lifetime. .. versionadded:: 1.2 .. attribute:: props.pspec :type: ~gi.repository.GObject.ParamSpec The ``GParamSpec`` of the property to be animated. .. versionadded:: 1.2