ToplevelLayout

class ToplevelLayout(pointer: <Error class: unknown class><<Error class: unknown class>>)

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

Skipped during bindings generation

  • parameter fullscreen: fullscreen: Out parameter is not supported

  • parameter maximized: maximized: Out parameter is not supported

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gdkToplevelLayoutPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Create a new GdkToplevelLayout and copy the contents of @layout into it.

Link copied to clipboard

Check whether @layout and @other has identical layout properties.

Link copied to clipboard

Returns the monitor that the layout is fullscreening the surface on.

Link copied to clipboard

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

Link copied to clipboard

Increases the reference count of @layout.

Link copied to clipboard
fun setFullscreen(fullscreen: Boolean, monitor: Monitor? = null)

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

Link copied to clipboard
fun setMaximized(maximized: Boolean)

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

Link copied to clipboard
fun setResizable(resizable: Boolean)

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

Link copied to clipboard
fun unref()

Decreases the reference count of @layout.