Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: object
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).
GdkToplevelLayout (Handle = null)
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]).
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.copy ()
Create a new
GdkToplevelLayoutand copy the contents of @layout into it.
a copy of @layout..equal (object other)
Check whether @layout and @other has identical layout properties.
other is another toplevel layout.true if @layout and @other have identical layout properties, otherwise false..get_fullscreen ()
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.
fullscreen is location to store whether the toplevel should be fullscreen.whether the @layout specifies the fullscreen state for the toplevel.get_fullscreen_monitor ()
Returns the monitor that the layout is fullscreening the surface on.
the monitor on which @layout fullscreens.get_maximized ()
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.
maximized is set to true if the toplevel should be maximized.whether the @layout specifies the maximized state for the toplevel.get_resizable ()
Returns whether the layout should allow the user to resize the surface.
true if the layout is resizable.ref ()
Increases the reference count of @layout.
the same @layout.set_fullscreen (bool fullscreen, object monitor)
Sets whether the layout should cause the surface to be fullscreen when presented.
fullscreen is true to fullscreen the surface.monitor is the monitor to fullscreen on.None.set_maximized (bool maximized)
Sets whether the layout should cause the surface to be maximized when presented.
maximized is true to maximize.None.set_resizable (bool resizable)
Sets whether the layout should allow the user to resize the surface after it has been presented.
resizable is true to allow resizing.None.unref ()
Decreases the reference count of @layout.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.