Adw.CarouselIndicatorDots

g Adw.CarouselIndicatorDots Adw.CarouselIndicatorDots GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable->Adw.CarouselIndicatorDots Gtk.Widget->Adw.CarouselIndicatorDots

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

get_carousel ()

set_carousel (carousel)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

carousel

Adw.Carousel

r/w/en

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Adw.CarouselIndicatorDots(**kwargs)
Bases:

Gtk.Widget, Gtk.Orientable

Abstract:

No

Structure:

Adw.CarouselIndicatorDotsClass

A dots indicator for [class`Carousel`].

<picture> <source srcset=”carousel-indicator-dots-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”carousel-indicator-dots.png” alt=”carousel-indicator-dots”> </picture>

The AdwCarouselIndicatorDots widget shows a set of dots for each page of a given [class`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 [class`CarouselIndicatorLines`].

CSS nodes

AdwCarouselIndicatorDots has a single CSS node with name carouselindicatordots.

classmethod new()
Returns:

the newly created AdwCarouselIndicatorDots

Return type:

Gtk.Widget

Creates a new AdwCarouselIndicatorDots.

Returns:

the displayed carousel

Return type:

Adw.Carousel or None

Gets the displayed carousel.

Parameters:

carousel (Adw.Carousel or None) – a carousel

Sets the displayed carousel.

Property Details

Adw.CarouselIndicatorDots.props.carousel
Name:

carousel

Type:

Adw.Carousel

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The displayed carousel.