Endless.PageManager¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Stack (22), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Child Properties¶
- Inherited:
Name |
Type |
Default |
Flags |
Short Description |
---|---|---|---|---|
|
|
r/w |
Position of background of the page |
|
|
r/w |
If page background repeats |
||
|
|
r/w |
Size of background of the page |
|
|
r/w |
URI for background of the page |
||
|
r/w |
Center topbar widget displayed in the middle of the topbar |
||
|
r/w |
Left topbar widget displayed left of the topbar |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Endless.PageManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This structure contains no public members.
- classmethod new()¶
- Returns:
the new page manager.
- Return type:
Creates a new default page manager.
- get_page_background_position(page)¶
- Parameters:
page (
Gtk.Widget
) – the page to be queried- Returns:
the position of page, as an EosSizePercentage.
- Return type:
Gets the position of the background image of page, which must previously have been added to the page manager. See
Endless.PageManager
:background-position
for more information.
- get_page_background_repeats(page)¶
- Parameters:
page (
Gtk.Widget
) – the page to be queried- Returns:
True if the background of page will repeat.
- Return type:
Gets whether or not the background image of page will tile when drawn. page must previously have been added to the page manager. See
Endless.PageManager
:background-repeats
for more information.
- get_page_background_size(page)¶
- Parameters:
page (
Gtk.Widget
) – the page to be queried- Returns:
the size of page, as an EosSizePercentage.
- Return type:
Gets the size of the background image of page, which must previously have been added to the page manager. See
Endless.PageManager
:background-size
for more information.
- get_page_background_uri(page)¶
- Parameters:
page (
Gtk.Widget
) – the page to be queried- Returns:
the background of page, or the
None
if page does not have a background.- Return type:
Gets the URI for the background image of page, which must previously have been added to the page manager. See
Endless.PageManager
:background-uri
for more information.
- get_page_center_topbar_widget(page)¶
- Parameters:
page (
Gtk.Widget
) – the page to be queried- Returns:
the center topbar
Gtk.Widget
of page, orNone
if there is none.- Return type:
Retrieves page's center topbar widget, if it has one. See
Endless.PageManager
:center-topbar-widget
for more information.
- get_page_left_topbar_widget(page)¶
- Parameters:
page (
Gtk.Widget
) – the page to be queried- Returns:
the left topbar
Gtk.Widget
of page, orNone
if there is none.- Return type:
Retrieves page's left topbar widget, if it has one. See
Endless.PageManager
:left-topbar-widget
for more information.
- remove_page_by_name(name)¶
- Parameters:
name (
str
) – the name of the page to remove
Removes the page called name from the page manager. If that page was the only page, then the page manager will display nothing. If that page was currently displaying but was not the only page, then the page manager will display another page; which page is undefined.
To remove a page without looking it up by name, use
Gtk.Container.remove
().
- set_page_background_position(page, position)¶
- Parameters:
page (
Gtk.Widget
) – the page to be modifiedposition (
str
) – the desired position of the background image of this page.
Changes the position of the background of page, which must previously have been added to the page manager. See
Endless.PageManager
:background-position
for more information.
- set_page_background_repeats(page, repeats)¶
- Parameters:
page (
Gtk.Widget
) – the page to be modifiedrepeats (
bool
) – True if the background of page will repeat.
Sets whether or not the background image of page will tile when drawn. page must previously have been added to the page manager. See
Endless.PageManager
:background-repeats
for more information.
- set_page_background_size(page, size)¶
- Parameters:
page (
Gtk.Widget
) – the page to be modifiedsize (
str
) – the desired size of the background image of this page.
Changes the size of the background of page, which must previously have been added to the page manager. See
Endless.PageManager
:background-size
for more information.
- set_page_background_uri(page, background)¶
- Parameters:
page (
Gtk.Widget
) – the page to be modifiedbackground (
str
orNone
) – the URI for the background image of this page.
Changes the background of page, which must previously have been added to the page manager. Setting
None
removes the background, using the window’s default background. SeeEndless.PageManager
:background-uri
for more information.
- set_page_center_topbar_widget(page, center_topbar_widget)¶
- Parameters:
page (
Gtk.Widget
) – the pagecenter_topbar_widget (
Gtk.Widget
orNone
) – center topbar widget for page
Sets the center topbar widget to be displayed for this page. See
Endless.PageManager
:center-topbar-widget
for more information.
- set_page_left_topbar_widget(page, left_topbar_widget)¶
- Parameters:
page (
Gtk.Widget
) – the pageleft_topbar_widget (
Gtk.Widget
orNone
) – left topbar widget for page
Sets the left topbar widget to be displayed for this page. See
Endless.PageManager
:left-topbar-widget
for more information.