Class (GI Struct)

Gdk-4.0GdkToplevelLayout

Contains information that is necessary to present a sovereign window on screen.

The Gdk.ToplevelLayout struct is necessary for using Gdk.Toplevel.present.

Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).

Index

Constructors

Properties

Methods

  • Check whether layout and other has identical layout properties.

    Parameters

    Returns boolean

    true if layout and other have identical layout properties, otherwise false.

  • 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.

    Returns [boolean, boolean]

    whether the layout specifies the fullscreen state for the toplevel

  • 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.

    Returns [boolean, boolean]

    whether the layout specifies the maximized state for the toplevel

  • Returns whether the layout should allow the user to resize the surface.

    Returns boolean

    true if the layout is resizable

  • Sets whether the layout should cause the surface to be fullscreen when presented.

    Parameters

    • fullscreen: boolean

      true to fullscreen the surface

    • Optionalmonitor: Gdk.Monitor

      the monitor to fullscreen on

    Returns void

  • Sets whether the layout should cause the surface to be maximized when presented.

    Parameters

    • maximized: boolean

      true to maximize

    Returns void

  • Sets whether the layout should allow the user to resize the surface after it has been presented.

    Parameters

    • resizable: boolean

      true to allow resizing

    Returns void