1.73 <AdwViewStackPage>

Class: <AdwViewStackPage>

It derives from <GObject>.

An auxiliary class used by ViewStack.

Properties

Property: view-stack-page:badge-number self

The badge number for this page.

ViewSwitcher can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.

It can be used together with [property@ViewStack{age}:needs-attention].

Its value is an unsigned 32-bit integer.

Set it with (set! (view-stack-page:badge-number self) value).

Property: view-stack-page:child self

The stack child to which the page belongs.

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

It can only be set when the object is made, with #:child.

Property: view-stack-page:icon-name self

The icon name of the child page.

Its value is a string, or #f.

Set it with (set! (view-stack-page:icon-name self) value).

Property: view-stack-page:name self

The name of the child page.

Its value is a string, or #f.

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

Property: view-stack-page:needs-attention self

Whether the page requires the user attention.

ViewSwitcher will display it as a dot next to the page icon.

Its value is a boolean.

Set it with (set! (view-stack-page:needs-attention self) value).

Property: view-stack-page:section-title self

Section title for this page.

Does nothing unless ViewStackPage:starts-section is set.

Its value is a string, or #f.

Set it with (set! (view-stack-page:section-title self) value).

Property: view-stack-page:starts-section self

Whether this page starts a section.

If set to TRUE, ViewStack:pages will have a section starting from this page.

If ViewStackPage:section-title is set, it should be used as a title for the section.

Its value is a boolean.

Set it with (set! (view-stack-page:starts-section self) value).

Property: view-stack-page:title self

The title of the child page.

Its value is a string, or #f.

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

Property: view-stack-page:use-underline self

Whether an embedded underline in the title indicates a mnemonic.

Its value is a boolean.

Set it with (set! (view-stack-page:use-underline self) value).

Property: view-stack-page:visible self

Whether this page is visible.

This is independent from the widget:visible property of ViewStackPage:child.

Its value is a boolean.

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

Procedures

Method: view-stack-page:get-badge-number self ⇒ %return
Method: get-badge-number self ⇒ %return

Gets the badge number for this page.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: an unsigned 32-bit integer.

the badge number for this page

Method: view-stack-page:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the stack child to which self belongs.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a <GtkWidget>.

the child to which self belongs

Method: view-stack-page:get-icon-name self ⇒ %return
Method: get-icon-name self ⇒ %return

Gets the icon name of the page.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a string, or #f.

the icon name of the page

Method: view-stack-page:get-name self ⇒ %return
Method: get-name self ⇒ %return

Gets the name of the page.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a string, or #f.

the name of the page

Method: view-stack-page:get-needs-attention? self ⇒ %return
Method: get-needs-attention? self ⇒ %return

Gets whether the page requires the user attention.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a boolean.

whether the page needs attention

Method: view-stack-page:get-section-title self ⇒ %return
Method: get-section-title self ⇒ %return

Gets the section title for self.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a string, or #f.

the section title

Method: view-stack-page:get-starts-section? self ⇒ %return
Method: get-starts-section? self ⇒ %return

Gets whether self starts a section.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a boolean.

whether self starts a section

Method: view-stack-page:get-title self ⇒ %return
Method: get-title self ⇒ %return

Gets the page title.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a string, or #f.

the page title

Method: view-stack-page:get-use-underline? self ⇒ %return
Method: get-use-underline? self ⇒ %return

Gets whether underlines in the page title indicate mnemonics.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a boolean.

whether underlines in the page title indicate mnemonics

Method: view-stack-page:get-visible? self ⇒ %return
Method: get-visible? self ⇒ %return

Gets whether self is visible in its <AdwViewStack>.

This is independent from the widget:visible property of its widget.

self

Passed: a <AdwViewStackPage>.

a view stack page

%return

Returned: a boolean.

whether self is visible

Method: view-stack-page:set-badge-number self badge-number
Method: set-badge-number self badge-number

Sets the badge number for this page.

ViewSwitcher can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.

It can be used together with [property@ViewStack{age}:needs-attention].

self

Passed: a <AdwViewStackPage>.

a view stack page

badge-number

Passed: an unsigned 32-bit integer.

the new value to set

Method: view-stack-page:set-icon-name self [icon-name]
Method: set-icon-name self [icon-name]

Sets the icon name of the page.

self

Passed: a <AdwViewStackPage>.

a view stack page

icon-name

Passed, or left out: a string, or #f.

the icon name

Method: view-stack-page:set-name self [name]
Method: set-name self [name]

Sets the name of the page.

self

Passed: a <AdwViewStackPage>.

a view stack page

name

Passed, or left out: a string, or #f.

the page name

Method: view-stack-page:set-needs-attention self needs-attention
Method: set-needs-attention self needs-attention

Sets whether the page requires the user attention.

ViewSwitcher will display it as a dot next to the page icon.

self

Passed: a <AdwViewStackPage>.

a view stack page

needs-attention

Passed: a boolean.

the new value to set

Method: view-stack-page:set-section-title self [section-title]
Method: set-section-title self [section-title]

Sets the section title for self.

Does nothing unless ViewStackPage:starts-section is set.

self

Passed: a <AdwViewStackPage>.

a view stack page

section-title

Passed, or left out: a string, or #f.

the section title

Method: view-stack-page:set-starts-section self starts-section
Method: set-starts-section self starts-section

Sets whether self starts a section.

If set to TRUE, ViewStack:pages will have a section starting from this page.

If ViewStackPage:section-title is set, it should be used as a title for the section.

self

Passed: a <AdwViewStackPage>.

a view stack page

starts-section

Passed: a boolean.

whether self starts a section

Method: view-stack-page:set-title self [title]
Method: set-title self [title]

Sets the page title.

self

Passed: a <AdwViewStackPage>.

a view stack page

title

Passed, or left out: a string, or #f.

the page title

Method: view-stack-page:set-use-underline self use-underline
Method: set-use-underline self use-underline

Sets whether underlines in the page title indicate mnemonics.

self

Passed: a <AdwViewStackPage>.

a view stack page

use-underline

Passed: a boolean.

the new value to set

Method: view-stack-page:set-visible self visible
Method: set-visible self visible

Sets whether self is visible in its <AdwViewStack>.

This is independent from the widget:visible property of ViewStackPage:child.

self

Passed: a <AdwViewStackPage>.

a view stack page

visible

Passed: a boolean.

whether self is visible