Class PropertyAnimationTarget

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class PropertyAnimationTarget extends AnimationTarget
An AnimationTarget changing the value of a property of a GObject instance.
Since:
1.2
  • Constructor Details

    • PropertyAnimationTarget

      public PropertyAnimationTarget(MemorySegment address)
      Create a PropertyAnimationTarget instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • PropertyAnimationTarget

      public PropertyAnimationTarget(GObject object, String propertyName)
      Creates a new AdwPropertyAnimationTarget for the propertyName property on object.
      Parameters:
      object - an object to be animated
      propertyName - the name of the property on object to animate
      Since:
      1.2
    • PropertyAnimationTarget

      public PropertyAnimationTarget()
      Create a new PropertyAnimationTarget.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the PropertyAnimationTarget class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected PropertyAnimationTarget asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class AnimationTarget
      Returns:
      the instance as if it were its parent type
    • forPspec

      public static AnimationTarget forPspec(GObject object, 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
      Since:
      1.2
    • getObject

      public GObject 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
      Since:
      1.2
    • getPspec

      public ParamSpec getPspec()
      Gets the GParamSpec of the property animated by self.
      Returns:
      the animated property's GParamSpec
      Since:
      1.2
    • builder

      A PropertyAnimationTarget.Builder object constructs a PropertyAnimationTarget with the specified properties. Use the various set...() methods to set properties, and finish construction with PropertyAnimationTarget.Builder.build().
      Returns:
      the builder object