: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` An :obj:`~gi.repository.Adw.AnimationTarget` changing the value of a property of a :obj:`~gi.repository.GObject.Object` instance. 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.overrides.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.overrides.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 type of the None singleton. .. versionadded:: 1.2 .. attribute:: props.pspec :type: ~gi.overrides.GObject.ParamSpec The type of the None singleton. .. versionadded:: 1.2