gdk.toplevel_layout
Module for [ToplevelLayout] class
class ToplevelLayout
Types 1
The [gdk.toplevel_layout.ToplevelLayout] struct contains information that is necessary to present a sovereign window on screen.
The [gdk.toplevel_layout.ToplevelLayout] struct is necessary for using [gdk.toplevel.Toplevel.present].
Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).
Methods
ToplevelLayout self()Returns `this`, for use in `with` statements.gdk.toplevel_layout.ToplevelLayout copy()Create a new [gdk.toplevel_layout.ToplevelLayout] and copy the contents of layout into it. Returns: a copy of layout.bool equal(gdk.toplevel_layout.ToplevelLayout other)Check whether layout and other has identical layout properties.bool getFullscreen(out bool 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.gdk.monitor.MonitorWrap getFullscreenMonitor()Returns the monitor that the layout is fullscreening the surface on. Returns: the monitor on which layout fullscreensbool getMaximized(out bool 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 fullscreen, or false, if it should go unmaximized.bool getResizable()Returns whether the layout should allow the user to resize the surface. Returns: true if the layout is resizablevoid setFullscreen(bool fullscreen, gdk.monitor.MonitorWrap monitor = null)Sets whether the layout should cause the surface to be fullscreen when presented.void setMaximized(bool maximized)Sets whether the layout should cause the surface to be maximized when presented.void setResizable(bool resizable)Sets whether the layout should allow the user to resize the surface after it has been presented.