Endless.Window

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Endless.Window Endless.Window GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gio.ActionGroup Gio.ActionGroup GObject.GInterface->Gio.ActionGroup Gio.ActionMap Gio.ActionMap GObject.GInterface->Gio.ActionMap Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.ApplicationWindow Gtk.ApplicationWindow Gio.ActionGroup->Gtk.ApplicationWindow Gio.ActionMap->Gtk.ApplicationWindow Gtk.ApplicationWindow->Endless.Window Gtk.Bin Gtk.Bin Gtk.Window Gtk.Window Gtk.Bin->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container Gtk.Window->Gtk.ApplicationWindow

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

new (application)

get_font_scaling_active ()

get_font_scaling_calculated_font_size ()

get_font_scaling_default_size ()

get_font_scaling_default_window_size ()

get_font_scaling_min_font_size ()

get_page_manager ()

set_font_scaling_active (is_scaling)

set_font_scaling_default_size (new_default_font_size)

set_font_scaling_default_window_size (new_default_window_size)

set_font_scaling_min_font_size (new_min_font_size)

set_page_manager (page_manager)

Virtual Methods

Inherited:

Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gio.ActionGroup (14), Gio.ActionMap (3)

Properties

Inherited:

Gtk.ApplicationWindow (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

font-scaling-active

bool

r/w/c

Whether or not Endless.Window objects scale font size

font-scaling-calculated-font-size

float

r

This is the calculated font-size by which children widgets scale

font-scaling-default-size

int

r/w/c

This is the default font-size by which font-size for children widgets will scale

font-scaling-default-window-size

int

r/w/c

This is the base resolution by which font-size for children widgets will scale

font-scaling-min-font-size

int

r/w/c

This is the minimum font-size under which font-size for children widgets won’t scale

page-manager

Endless.PageManager

r/w

Page manager associated with this window

Style Properties

Inherited:

Gtk.Window (2), Gtk.Widget (17)

Signals

Inherited:

Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gio.ActionGroup (4)

Fields

Inherited:

Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gio.ActionGroup (4)

Name

Type

Access

Description

parent

Gtk.ApplicationWindow

r

Class Details

class Endless.Window(*args, **kwargs)
Bases:

Gtk.ApplicationWindow

Abstract:

No

Structure:

Endless.WindowClass

This class structure contains no public members.

classmethod new(application)
Parameters:

application (Endless.Application) – the Endless.Application that the window belongs to.

Returns:

a pointer to the window.

Return type:

Gtk.Widget

Create a window. It is invisible by default.

get_font_scaling_active()
Returns:

whether or not the font will automatically scale.

Return type:

bool

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:

float

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:

int

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:

int

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:

int

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:

Endless.PageManager or None

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
Name:

font-scaling-active

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT

The scaling flag that determines if the windows scale or not.

Endless.Window.props.font_scaling_calculated_font_size
Name:

font-scaling-calculated-font-size

Type:

float

Default Value:

16.0

Flags:

READABLE

The calculated font-size by which children widgets scale. Units are in pixels.

Endless.Window.props.font_scaling_default_size
Name:

font-scaling-default-size

Type:

int

Default Value:

16

Flags:

READABLE, WRITABLE, CONSTRUCT

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:

int

Default Value:

1080

Flags:

READABLE, WRITABLE, CONSTRUCT

The base resolution by which font scaling will occur. Units are in pixels.

Endless.Window.props.font_scaling_min_font_size
Name:

font-scaling-min-font-size

Type:

int

Default Value:

10

Flags:

READABLE, WRITABLE, CONSTRUCT

The minimum font-size under which font scaling won’t occur. Units are in pixels.

Endless.Window.props.page_manager
Name:

page-manager

Type:

Endless.PageManager

Default Value:

None

Flags:

READABLE, WRITABLE

The Endless.PageManager that controls the flow of this window’s application.