Dazzle.ApplicationWindow

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.ApplicationWindow Dazzle.ApplicationWindow 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->Dazzle.ApplicationWindow 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)

get_fullscreen ()

get_titlebar ()

get_titlebar_animation ()

set_fullscreen (fullscreen)

set_titlebar (titlebar)

Virtual Methods

Inherited:

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

do_get_fullscreen ()

do_set_fullscreen (fullscreen)

Properties

Inherited:

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

Name

Type

Flags

Short Description

fullscreen

bool

r/w

If the window is fullscreen

titlebar-animation

Dazzle.TitlebarAnimation

r

The state of the titlebar animation

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_instance

Gtk.ApplicationWindow

r

Class Details

class Dazzle.ApplicationWindow(*args, **kwargs)
Bases:

Gtk.ApplicationWindow

Abstract:

No

Structure:

Dazzle.ApplicationWindowClass

get_fullscreen()
Returns:

True if self is fullscreen, otherwise False.

Return type:

bool

Gets if the window is in the fullscreen state.

New in version 3.26.

get_titlebar()
Returns:

A Gtk.Widget or None

Return type:

Gtk.Widget

Gets the titlebar for the window, if there is one.

New in version 3.26.

get_titlebar_animation()
Return type:

Dazzle.TitlebarAnimation

set_fullscreen(fullscreen)
Parameters:

fullscreen (bool) – if the window should be in the fullscreen state

Sets the Dazzle.ApplicationWindow into either the fullscreen or unfullscreen state based on fullscreen.

The titlebar for the window is contained within a Gtk.Revealer which is repurposed as a floating bar when the application is in fullscreen mode.

See Dazzle.ApplicationWindow.get_fullscreen() to get the current fullscreen state.

New in version 3.26.

set_titlebar(titlebar)
Parameters:

titlebar (Gtk.Widget) –

Sets the titlebar for the window.

Generally, you want to do this from your GTK ui template by setting the <child type=”titlebar”>

New in version 3.26.

do_get_fullscreen() virtual
Returns:

True if self is fullscreen, otherwise False.

Return type:

bool

Gets if the window is in the fullscreen state.

New in version 3.26.

do_set_fullscreen(fullscreen) virtual
Parameters:

fullscreen (bool) – if the window should be in the fullscreen state

Sets the Dazzle.ApplicationWindow into either the fullscreen or unfullscreen state based on fullscreen.

The titlebar for the window is contained within a Gtk.Revealer which is repurposed as a floating bar when the application is in fullscreen mode.

See Dazzle.ApplicationWindow.get_fullscreen() to get the current fullscreen state.

New in version 3.26.

Property Details

Dazzle.ApplicationWindow.props.fullscreen
Name:

fullscreen

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

The “fullscreen” property denotes if the window is in the fullscreen state. The titlebar of the Dazzle.ApplicationWindow contains a revealer which will be repurposed into a floating bar while the window is in the fullscreen mode.

Set this property to False to unfullscreen.

Dazzle.ApplicationWindow.props.titlebar_animation
Name:

titlebar-animation

Type:

Dazzle.TitlebarAnimation

Default Value:

Dazzle.TitlebarAnimation.SHOWN

Flags:

READABLE

The state of the titlebar animation