Class CarouselIndicatorDots

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

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

A dots indicator for Carousel.

carousel-indicator-dots

The AdwCarouselIndicatorDots widget shows a set of dots for each page of a given Carousel. The dot representing the carousel's active page is larger and more opaque than the others, the transition to the active and inactive state is gradual to match the carousel's position.

See also CarouselIndicatorLines.

CSS nodes

AdwCarouselIndicatorDots has a single CSS node with name carouselindicatordots.

  • Constructor Details

    • CarouselIndicatorDots

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

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

    • getType

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

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

      protected CarouselIndicatorDots 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 CarouselIndicatorDots.Builder object constructs a CarouselIndicatorDots with the specified properties. Use the various set...() methods to set properties, and finish construction with CarouselIndicatorDots.Builder.build().
      Returns:
      the builder object