Gdk.ToplevelLayout¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gdk.ToplevelLayout¶
The
GdkToplevelLayout
struct contains information that is necessary to present a sovereign window on screen.The
GdkToplevelLayout
struct 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
GdkToplevelLayout
and copy the contents of self into it.
- equal(other)[source]¶
- Parameters:
other (
Gdk.ToplevelLayout
) – anotherGdkToplevelLayout
- Returns:
True
if 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
True
if it should go fullscreen, orFalse
, if it should go unfullscreen.
- get_fullscreen_monitor()[source]¶
- Returns:
the monitor on which self fullscreens
- Return type:
Gdk.Monitor
orNone
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 fullscreen, orFalse
, if it should go unmaximized.
- set_fullscreen(fullscreen, monitor)[source]¶
- Parameters:
monitor (
Gdk.Monitor
orNone
) – 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.