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()).
Create a new GdkToplevelLayout
and copy the contents of layout
into it.
Check whether layout
and other
has identical layout properties.
another GdkToplevelLayout
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.
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, or %FALSE, if it should go unmaximized.
Returns whether the layout should allow the user to resize the surface.
Increases the reference count of layout
.
Sets whether the layout should cause the surface to be maximized when presented.
%TRUE to maximize
Sets whether the layout should allow the user to resize the surface after it has been presented.
%TRUE to allow resizing
Decreases the reference count of layout
.
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()).
The
GdkToplevelLayout
struct contains information that is necessary to present a sovereign window on screen.The
GdkToplevelLayout
struct is necessary for using [methodGdk
.Toplevel.present].Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).