Endless.Window¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.ApplicationWindow (6), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gio.ActionGroup (14), Gio.ActionMap (5)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Whether or not |
||
r |
This is the calculated font-size by which children widgets scale |
||
r/w/c |
This is the default font-size by which font-size for children widgets will scale |
||
r/w/c |
This is the base resolution by which font-size for children widgets will scale |
||
r/w/c |
This is the minimum font-size under which font-size for children widgets won’t scale |
||
r/w |
Page manager associated with this window |
Style Properties¶
- Inherited:
Signals¶
Fields¶
- Inherited:
Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gio.ActionGroup (4)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Endless.Window(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This class structure contains no public members.
- classmethod new(application)¶
- Parameters:
application (
Endless.Application
) – theEndless.Application
that the window belongs to.- Returns:
a pointer to the window.
- Return type:
Create a window. It is invisible by default.
- get_font_scaling_active()¶
- Returns:
whether or not the font will automatically scale.
- Return type:
See
Endless.Window
:font-scaling-active
for details.
- get_font_scaling_calculated_font_size()¶
- Returns:
the calculated font size by which the font size of children widgets will scale.
- Return type:
See
Endless.Window
:font-scaling-calculated-font-size
for details.
- get_font_scaling_default_size()¶
- Returns:
the default font size by which the font size of children widgets will scale.
- Return type:
See
Endless.Window
:font-scaling-default-size
for details.
- get_font_scaling_default_window_size()¶
- Returns:
the default window size by which font scaling will occur.
- Return type:
See
Endless.Window
:font-scaling-default-window-size
for details.
- get_font_scaling_min_font_size()¶
- Returns:
the minimum font size below which font scaling won’t occur.
- Return type:
See
Endless.Window
:font-scaling-min-font-size
for details.
- get_page_manager()¶
- Returns:
a pointer to the current page manager, or
None
if there is no page manager set.- Return type:
Stub
- set_font_scaling_active(is_scaling)¶
- Parameters:
is_scaling (
bool
) – true for enabling font scaling and false for disabling font scaling
Sets whether or not the font will automatically scale. See
Endless.Window
:font-scaling-active
for details.
- set_font_scaling_default_size(new_default_font_size)¶
- Parameters:
new_default_font_size (
int
) – the new default font size
Sets the default font size by which the font size of children widgets will scale. See
Endless.Window
:font-scaling-default-size
for details.
- set_font_scaling_default_window_size(new_default_window_size)¶
- Parameters:
new_default_window_size (
int
) – the new default window size
Sets the default window size by which the font size of children widgets will scale. See
Endless.Window
:font-scaling-default-window-size
for details.
- set_font_scaling_min_font_size(new_min_font_size)¶
- Parameters:
new_min_font_size (
int
) – the new min font size
Sets the min font size by which the font size of children widgets will scale. See
Endless.Window
:font-scaling-min-font-size
for details.
- set_page_manager(page_manager)¶
- Parameters:
page_manager (
Endless.PageManager
) – the page manager
Stub
Property Details¶
- Endless.Window.props.font_scaling_active¶
-
The scaling flag that determines if the windows scale or not.
- Endless.Window.props.font_scaling_calculated_font_size¶
-
The calculated font-size by which children widgets scale. Units are in pixels.
- Endless.Window.props.font_scaling_default_size¶
-
The default font-size by which font scaling will occur. Units are in pixels.
- Endless.Window.props.font_scaling_default_window_size¶
- Name:
font-scaling-default-window-size
- Type:
- Default Value:
1080
- Flags:
The base resolution by which font scaling will occur. Units are in pixels.
- Endless.Window.props.font_scaling_min_font_size¶
-
The minimum font-size under which font scaling won’t occur. Units are in pixels.
- Endless.Window.props.page_manager¶
- Name:
page-manager
- Type:
- Default Value:
- Flags:
The
Endless.PageManager
that controls the flow of this window’s application.