Class PropertyAnimationTarget

All Implemented Interfaces:
PointerInterface

public class PropertyAnimationTarget extends AnimationTarget
An [class@AnimationTarget] changing the value of a property of a
[class@GObject.Object] instance.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PropertyAnimationTarget.html

  • Constructor Details

    • PropertyAnimationTarget

      public PropertyAnimationTarget(PointerContainer pointer)
    • PropertyAnimationTarget

      public PropertyAnimationTarget(@Nonnull Object object, @Nonnull Str property_name)
      Creates a new `AdwPropertyAnimationTarget` for the @property_name property on
      @object.
      Parameters:
      object - an object to be animated
      property_name - the name of the property on @object to animate
    • PropertyAnimationTarget

      public PropertyAnimationTarget(@Nonnull Object object, String property_name)
      Creates a new `AdwPropertyAnimationTarget` for the @property_name property on
      @object.
      Parameters:
      object - an object to be animated
      property_name - the name of the property on @object to animate
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newForPspecPropertyAnimationTarget

      public static PropertyAnimationTarget newForPspecPropertyAnimationTarget(@Nonnull Object object, @Nonnull ParamSpec pspec)
      Creates a new `AdwPropertyAnimationTarget` for the @pspec property on
      @object.
      Parameters:
      object - an object to be animated
      pspec - the param spec of the property on @object to animate
      Returns:
      new newly created `AdwPropertyAnimationTarget`
    • getObject

      public Object getObject()
      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.
      Returns:
      the animated object
    • getPspec

      public ParamSpec getPspec()
      Gets the `GParamSpec` of the property animated by @self.
      Returns:
      the animated property's `GParamSpec`
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()