ToplevelLayoutRef

public struct ToplevelLayoutRef : ToplevelLayoutProtocol

The ToplevelLayoutRef type acts as a lightweight Swift reference to an underlying GdkToplevelLayout instance. It exposes methods that can operate on this data type through ToplevelLayoutProtocol conformance. Use ToplevelLayoutRef only as an unowned reference to an existing GdkToplevelLayout instance.

The GdkToplevelLayout struct contains information that is necessary to present a sovereign window on screen.

The GdkToplevelLayout struct is necessary for using [methodGdk.Toplevel.present].

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

  • ptr
    Untyped pointer to the underlying `GdkToplevelLayout` instance.
    

    For type-safe access, use the generated, typed pointer toplevel_layout_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

ToplevelLayout Record

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafeMutablePointer<GdkToplevelLayout>)
  • Designated initialiser from a constant pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafePointer<GdkToplevelLayout>)
  • Conditional initialiser from an optional pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafeMutablePointer<GdkToplevelLayout>?)
  • Conditional initialiser from an optional, non-mutable pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GdkToplevelLayout>?)
  • Conditional initialiser from an optional gpointer

    Declaration

    Swift

    @inlinable
    init!(gpointer g: gpointer?)
  • Conditional initialiser from an optional, non-mutable gconstpointer

    Declaration

    Swift

    @inlinable
    init!(gconstpointer g: gconstpointer?)
  • Reference intialiser for a related type that implements ToplevelLayoutProtocol

    Declaration

    Swift

    @inlinable
    init<T>(_ other: T) where T : ToplevelLayoutProtocol
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to ToplevelLayoutProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(cPointer: UnsafeMutablePointer<T>)
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to ToplevelLayoutProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(constPointer: UnsafePointer<T>)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to ToplevelLayoutProtocol.

    Declaration

    Swift

    @inlinable
    init(mutating raw: UnsafeRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to ToplevelLayoutProtocol.

    Declaration

    Swift

    @inlinable
    init(raw: UnsafeMutableRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to ToplevelLayoutProtocol.

    Declaration

    Swift

    @inlinable
    init(opaquePointer: OpaquePointer)
  • Create a toplevel layout description.
    

    Used together with 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 gdk_surface_get_scale_factor()).

    Declaration

    Swift

    @inlinable
    init()