Gdk.ToplevelLayout¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gdk.ToplevelLayout¶
Contains information that is necessary to present a sovereign window on screen.
The
GdkToplevelLayoutstruct is necessary for using [method`Gdk`.Toplevel.present].Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).
- classmethod new()[source]¶
- Returns:
newly created instance of
GdkToplevelLayout- Return type:
Create a toplevel layout description.
Used together with
Gdk.Toplevel.present() to describe how a toplevel surface should be placed and behave on-screen.The size is in ”application pixels”, not ”device pixels” (see
Gdk.Surface.get_scale_factor()).
- copy()[source]¶
- Returns:
a copy of self.
- Return type:
Create a new
GdkToplevelLayoutand copy the contents of self into it.
- equal(other)[source]¶
- Parameters:
other (
Gdk.ToplevelLayout) – anotherGdkToplevelLayout- Returns:
Trueif self and other have identical layout properties, otherwiseFalse.- Return type:
Check whether self and other has identical layout properties.
- get_fullscreen()[source]¶
- Returns:
whether the self specifies the fullscreen state for the toplevel
- fullscreen:
location to store whether the toplevel should be fullscreen
- Return type:
If the layout specifies whether to the toplevel should go fullscreen, the value pointed to by fullscreen is set to
Trueif it should go fullscreen, orFalse, if it should go unfullscreen.
- get_fullscreen_monitor()[source]¶
- Returns:
the monitor on which self fullscreens
- Return type:
Gdk.MonitororNone
Returns the monitor that the layout is fullscreening the surface on.
- get_maximized()[source]¶
- Returns:
whether the self specifies the maximized state for the toplevel
- maximized:
set to
Trueif the toplevel should be maximized
- Return type:
If the layout specifies whether to the toplevel should go maximized, the value pointed to by maximized is set to
Trueif it should go fullscreen, orFalse, if it should go unmaximized.
- set_fullscreen(fullscreen, monitor)[source]¶
- Parameters:
monitor (
Gdk.MonitororNone) – the monitor to fullscreen on
Sets whether the layout should cause the surface to be fullscreen when presented.
- set_maximized(maximized)[source]¶
-
Sets whether the layout should cause the surface to be maximized when presented.