Adw.ViewStackPage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/co |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Adw.ViewStackPage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An auxiliary class used by [class`ViewStack`].
- get_badge_number()¶
- Returns:
the badge number for this page
- Return type:
Gets the badge number for this page.
- get_child()¶
- Returns:
the child to which self belongs
- Return type:
Gets the stack child to which self belongs.
- get_icon_name()¶
-
Gets the icon name of the page.
- get_needs_attention()¶
- Returns:
whether the page needs attention
- Return type:
Gets whether the page requires the user attention.
- get_use_underline()¶
- Returns:
whether underlines in the page title indicate mnemonics
- Return type:
Gets whether underlines in the page title indicate mnemonics.
- get_visible()¶
- Returns:
whether self is visible
- Return type:
Gets whether self is visible in its
AdwViewStack
.This is independent from the [property`Gtk`.Widget:visible] property of its widget.
- set_badge_number(badge_number)¶
- Parameters:
badge_number (
int
) – the new value to set
Sets the badge number for this page.
[class`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}:py:data::needs-attention<Adw.ViewStackPage.props.needs_attention>].
- set_icon_name(icon_name)¶
-
Sets the icon name of the page.
- set_needs_attention(needs_attention)¶
- Parameters:
needs_attention (
bool
) – the new value to set
Sets whether the page requires the user attention.
[class`ViewSwitcher`] will display it as a dot next to the page icon.
Property Details¶
- Adw.ViewStackPage.props.badge_number¶
- Name:
badge-number
- Type:
- Default Value:
0
- Flags:
The badge number for this page.
[class`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}:py:data::needs-attention<Adw.ViewStackPage.props.needs_attention>].
- Adw.ViewStackPage.props.child¶
- Name:
child
- Type:
- Default Value:
- Flags:
The stack child to which the page belongs.
- Adw.ViewStackPage.props.icon_name¶
- Name:
icon-name
- Type:
- Default Value:
- Flags:
The icon name of the child page.
- Adw.ViewStackPage.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
The name of the child page.
- Adw.ViewStackPage.props.needs_attention¶
- Name:
needs-attention
- Type:
- Default Value:
- Flags:
Whether the page requires the user attention.
[class`ViewSwitcher`] will display it as a dot next to the page icon.
- Adw.ViewStackPage.props.title¶
- Name:
title
- Type:
- Default Value:
- Flags:
The title of the child page.
- Adw.ViewStackPage.props.use_underline¶
- Name:
use-underline
- Type:
- Default Value:
- Flags:
Whether an embedded underline in the title indicates a mnemonic.