HdyCarouselIndicatorDots

HdyCarouselIndicatorDots — A dots indicator for HdyCarousel

Functions

Properties

HdyCarousel * carousel Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkDrawingArea
                ╰── HdyCarouselIndicatorDots

Implemented Interfaces

HdyCarouselIndicatorDots implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Description

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

HdyCarouselIndicatorDots has a single CSS node with name carouselindicatordots.

Functions

hdy_carousel_indicator_dots_new ()

GtkWidget *
hdy_carousel_indicator_dots_new (void);

Create a new HdyCarouselIndicatorDots widget.

Returns

The newly created HdyCarouselIndicatorDots widget.

[transfer full]

Since: 1.0


hdy_carousel_indicator_dots_get_carousel ()

HdyCarousel *
hdy_carousel_indicator_dots_get_carousel
                               (HdyCarouselIndicatorDots *self);

Get the HdyCarousel the indicator uses.

See: hdy_carousel_indicator_dots_set_carousel()

Parameters

Returns

the HdyCarousel, or NULL if none has been set.

[nullable][transfer none]

Since: 1.0


hdy_carousel_indicator_dots_set_carousel ()

void
hdy_carousel_indicator_dots_set_carousel
                               (HdyCarouselIndicatorDots *self,
                                HdyCarousel *carousel);

Sets the HdyCarousel to use.

Parameters

self

a HdyCarouselIndicatorDots

 

carousel

a HdyCarousel.

[nullable]

Since: 1.0

Types and Values

HDY_TYPE_CAROUSEL_INDICATOR_DOTS

#define HDY_TYPE_CAROUSEL_INDICATOR_DOTS (hdy_carousel_indicator_dots_get_type())

HdyCarouselIndicatorDots

typedef struct _HdyCarouselIndicatorDots HdyCarouselIndicatorDots;

Property Details

The “carousel” property

  “carousel”                 HdyCarousel *

The HdyCarousel the indicator uses.

Flags: Read / Write

Since: 1.0

See Also

HdyCarousel, HdyCarouselIndicatorLines