Adw.PropertyAnimationTarget

g Adw.AnimationTarget Adw.AnimationTarget Adw.PropertyAnimationTarget Adw.PropertyAnimationTarget Adw.AnimationTarget->Adw.PropertyAnimationTarget GObject.Object GObject.Object GObject.Object->Adw.AnimationTarget

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (object, property_name)

class

new_for_pspec (object, pspec)

get_object ()

get_pspec ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

object

GObject.Object

r/w/co

pspec

GObject.ParamSpec

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Adw.PropertyAnimationTarget(**kwargs)
Bases:

Adw.AnimationTarget

Abstract:

No

Structure:

Adw.PropertyAnimationTargetClass

An [class`AnimationTarget`] changing the value of a property of a [class`GObject`.Object] instance.

New in version 1.2.

classmethod new(object, property_name)
Parameters:
  • object (GObject.Object) – an object to be animated

  • property_name (str) – the name of the property on object to animate

Returns:

the newly created AdwPropertyAnimationTarget

Return type:

Adw.AnimationTarget

Creates a new AdwPropertyAnimationTarget for the property_name property on object.

New in version 1.2.

classmethod new_for_pspec(object, pspec)
Parameters:
Returns:

new newly created AdwPropertyAnimationTarget

Return type:

Adw.AnimationTarget

Creates a new AdwPropertyAnimationTarget for the pspec property on object.

New in version 1.2.

get_object()
Returns:

the animated object

Return type:

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.

New in version 1.2.

get_pspec()
Returns:

the animated property’s GParamSpec

Return type:

GObject.ParamSpec

Gets the GParamSpec of the property animated by self.

New in version 1.2.

Property Details

Adw.PropertyAnimationTarget.props.object
Name:

object

Type:

GObject.Object

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

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.

New in version 1.2.

Adw.PropertyAnimationTarget.props.pspec
Name:

pspec

Type:

GObject.ParamSpec

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The GParamSpec of the property to be animated.

New in version 1.2.