Class CarouselIndicatorLines

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Orientable, Proxy

@Generated("org.javagi.JavaGI") public final class CarouselIndicatorLines extends Widget implements Accessible, Buildable, ConstraintTarget, Orientable

A lines indicator for Carousel.

carousel-indicator-lines

The AdwCarouselIndicatorLines widget shows a set of lines for each page of a given Carousel. The carousel's active page is shown as another line that moves between them to match the carousel's position.

See also CarouselIndicatorDots.

CSS nodes

AdwCarouselIndicatorLines has a single CSS node with name carouselindicatorlines.

  • Constructor Details

    • CarouselIndicatorLines

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

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

    • getType

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

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

      protected CarouselIndicatorLines 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 Widget
      Returns:
      the instance as if it were its parent type
    • getCarousel

      public @Nullable Carousel getCarousel()
      Gets the displayed carousel.
      Returns:
      the displayed carousel
    • setCarousel

      public void setCarousel(@Nullable Carousel carousel)
      Sets the displayed carousel.
      Parameters:
      carousel - a carousel
    • builder

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