1.74 <AdwViewStackPages>

Class: <AdwViewStackPages>

It derives from <GObject>.

An auxiliary class used by ViewStack.

See ViewStack:pages.

Properties

Property: view-stack-pages:item-type self

The type of the items. See list-model:get-item-type.

Its value is a class, or a GType number.

It is read only.

Property: view-stack-pages:n-items self

The number of items. See list-model:get-n-items.

Its value is an unsigned 32-bit integer.

It is read only.

Property: view-stack-pages:selected-page self

The selected ViewStackPage within the ViewStackPages.

This can be used to keep an up-to-date view of the ViewStackPage for The visible ViewStackPage within the associated ViewStackPages.

This can be used to keep an up-to-date view of the visible child.

Its value is a <AdwViewStackPage>, or #f.

Set it with (set! (view-stack-pages:selected-page self) value).

Procedures

Method: view-stack-pages:get-selected-page self ⇒ %return
Method: get-selected-page self ⇒ %return

Gets the ViewStackPage for the visible child of a view stack

Gets the ViewStackPage for the visible child of the associated stack.

Returns NULL if there’s no selected page.

self

Passed: a <AdwViewStackPages>.

a ViewStackPages

%return

Returned: a <AdwViewStackPage>, or #f.

the stack page

Method: view-stack-pages:set-selected-page self page
Method: set-selected-page self page

Sets the visible child in the associated ViewStack.

See ViewStack:visible-child.

self

Passed: a <AdwViewStackPages>.

a ViewStackPages

page

Passed: a <AdwViewStackPage>.

a stack page within the associated stack