Toplevel

interface Toplevel(source)

A GdkToplevel is a freestanding toplevel surface.

The GdkToplevel interface provides useful APIs for interacting with the windowing system, such as controlling maximization and size of the surface, setting icons and transient parents for dialogs.

Skipped during bindings generation

  • method decorated: Property has no getter

  • method deletable: Property has no getter

  • method fullscreen-mode: Property has no getter nor setter

  • method icon-list: Property has no getter

  • method modal: Property has no getter

  • method shortcuts-inhibited: Property has no getter nor setter

  • method startup-id: Property has no getter

  • method title: Property has no getter

  • method transient-for: Property has no getter

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class ToplevelImpl(gdkToplevelPointer: <Error class: unknown class><<Error class: unknown class>>) : Surface, Toplevel

The ToplevelImpl type represents a native instance of the Toplevel interface.

Properties

Link copied to clipboard
abstract val gdkToplevelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The state of the toplevel.

Functions

Link copied to clipboard
open fun beginMove(    device: Device,     button: <Error class: unknown class>,     x: <Error class: unknown class>,     y: <Error class: unknown class>,     timestamp: <Error class: unknown class>)

Begins an interactive move operation.

Link copied to clipboard
open fun beginResize(    edge: SurfaceEdge,     device: Device? = null,     button: <Error class: unknown class>,     x: <Error class: unknown class>,     y: <Error class: unknown class>,     timestamp: <Error class: unknown class>)

Begins an interactive resize operation.

Link copied to clipboard
open fun focus(timestamp: <Error class: unknown class>)

Sets keyboard focus to @surface.

Link copied to clipboard

Gets the bitwise or of the currently active surface state flags, from the GdkToplevelState enumeration.

Link copied to clipboard
open fun inhibitSystemShortcuts(event: Event? = null)

Requests that the @toplevel inhibit the system shortcuts.

Link copied to clipboard
open fun lower(): Boolean

Asks to lower the @toplevel below other windows.

Link copied to clipboard
open fun minimize(): Boolean

Asks to minimize the @toplevel.

Link copied to clipboard
open fun onComputeSize(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (size: ToplevelSize) -> Unit): <Error class: unknown class>

Emitted when the size for the surface needs to be computed, when it is present.

Link copied to clipboard
open fun present(layout: ToplevelLayout)

Present @toplevel after having processed the GdkToplevelLayout rules.

Link copied to clipboard

Restore default system keyboard shortcuts which were previously inhibited.

Link copied to clipboard
open fun setDecorated(decorated: Boolean)

Sets the toplevel to be decorated.

Link copied to clipboard
open fun setDeletable(deletable: Boolean)

Sets the toplevel to be deletable.

Link copied to clipboard
open fun setIconList(surfaces: <Error class: unknown class>)

Sets a list of icons for the surface.

Link copied to clipboard
open fun setModal(modal: Boolean)

Sets the toplevel to be modal.

Link copied to clipboard
open fun setStartupId(startupId: String)

Sets the startup notification ID.

Link copied to clipboard
open fun setTitle(title: String)

Sets the title of a toplevel surface.

Link copied to clipboard
open fun setTransientFor(parent: Surface)

Sets a transient-for parent.

Link copied to clipboard
open fun showWindowMenu(event: Event): Boolean

Asks the windowing system to show the window menu.

Link copied to clipboard

Returns whether the desktop environment supports tiled window states.

Link copied to clipboard

Performs a title bar gesture.