Class PixbufSimpleAnim.Builder<B extends PixbufSimpleAnim.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
PixbufSimpleAnim

public static class PixbufSimpleAnim.Builder<B extends PixbufSimpleAnim.Builder<B>> extends PixbufAnimation.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public PixbufSimpleAnim build()
      Finish building the PixbufSimpleAnim object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to PixbufSimpleAnim.
      Overrides:
      build in class PixbufAnimation.Builder<B extends PixbufSimpleAnim.Builder<B>>
      Returns:
      a new instance of PixbufSimpleAnim with the properties that were set in the Builder object.
    • setLoop

      @Deprecated public B setLoop(boolean loop)
      Deprecated.
      Use a different image loading library for animatable assets
      Whether the animation should loop when it reaches the end.
      Parameters:
      loop - the value for the loop property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.18