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 [method`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 [method`Gdk`.Surface.get_scale]).
- 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) – another toplevel layout- Returns:
true if self and other have identical layout properties, otherwise false.
- 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 true if it should go fullscreen, or false, 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 true if 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 true if it should go maximized, or false, if it should go unmaximized.
- get_resizable()[source]¶
- Returns:
true if the layout is resizable
- Return type:
Returns whether the layout should allow the user to resize the surface.
- set_fullscreen(fullscreen, monitor)[source]¶
- Parameters:
fullscreen (
bool) – true to fullscreen the surfacemonitor (
Gdk.MonitororNone) – the monitor to fullscreen on
Sets whether the layout should cause the surface to be fullscreen when presented.
- set_maximized(maximized)[source]¶
- Parameters:
maximized (
bool) – true to maximize
Sets whether the layout should cause the surface to be maximized when presented.