Adw.CarouselIndicatorLines

g Adw.CarouselIndicatorLines Adw.CarouselIndicatorLines 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.CarouselIndicatorLines Gtk.Widget->Adw.CarouselIndicatorLines

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.CarouselIndicatorLines(**kwargs)
Bases:

Gtk.Widget, Gtk.Orientable

Abstract:

No

Structure:

Adw.CarouselIndicatorLinesClass

A lines indicator for [class`Carousel`].

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

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

See also [class`CarouselIndicatorDots`].

CSS nodes

AdwCarouselIndicatorLines has a single CSS node with name carouselindicatorlines.

classmethod new()
Returns:

the newly created AdwCarouselIndicatorLines

Return type:

Gtk.Widget

Creates a new AdwCarouselIndicatorLines.

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.CarouselIndicatorLines.props.carousel
Name:

carousel

Type:

Adw.Carousel

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The displayed carousel.