AdwCarouselIndicatorDots

AdwCarouselIndicatorDots — A dots indicator for AdwCarousel

Functions

Properties

AdwCarousel * carousel Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── AdwCarouselIndicatorDots

Implemented Interfaces

AdwCarouselIndicatorDots implements GtkAccessible, GtkBuildable, GtkConstraintTarget and GtkOrientable.

Description

The AdwCarouselIndicatorDots widget can be used to show a set of dots for each page of a given AdwCarousel. 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.

CSS nodes

AdwCarouselIndicatorDots has a single CSS node with name carouselindicatordots.

Functions

adw_carousel_indicator_dots_new ()

GtkWidget *
adw_carousel_indicator_dots_new (void);

Create a new AdwCarouselIndicatorDots widget.

Returns

The newly created AdwCarouselIndicatorDots widget.

[transfer full]

Since: 1.0


adw_carousel_indicator_dots_get_carousel ()

AdwCarousel *
adw_carousel_indicator_dots_get_carousel
                               (AdwCarouselIndicatorDots *self);

Get the AdwCarousel the indicator uses.

See: adw_carousel_indicator_dots_set_carousel()

Parameters

Returns

the AdwCarousel, or NULL if none has been set.

[nullable][transfer none]

Since: 1.0


adw_carousel_indicator_dots_set_carousel ()

void
adw_carousel_indicator_dots_set_carousel
                               (AdwCarouselIndicatorDots *self,
                                AdwCarousel *carousel);

Sets the AdwCarousel to use.

Parameters

self

a AdwCarouselIndicatorDots

 

carousel

a AdwCarousel.

[nullable]

Since: 1.0

Types and Values

ADW_TYPE_CAROUSEL_INDICATOR_DOTS

#define ADW_TYPE_CAROUSEL_INDICATOR_DOTS (adw_carousel_indicator_dots_get_type())

AdwCarouselIndicatorDots

typedef struct _AdwCarouselIndicatorDots AdwCarouselIndicatorDots;

Property Details

The “carousel” property

  “carousel”                 AdwCarousel *

The AdwCarousel the indicator uses.

Owner: AdwCarouselIndicatorDots

Flags: Read / Write

Since: 1.0

See Also

AdwCarousel, AdwCarouselIndicatorLines