WindowPosition

public extension WindowPosition
  • Cast constructor, converting any binary integer to a WindowPosition.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • No influence is made on placement.

    Declaration

    Swift

    static let none: GtkWindowPosition
  • Windows should be placed in the center of the screen.

    Declaration

    Swift

    static let center: GtkWindowPosition
  • Windows should be placed at the current mouse position.

    Declaration

    Swift

    static let mouse: GtkWindowPosition
  • Keep window centered as it changes size, etc.

    Declaration

    Swift

    static let centerAlways: GtkWindowPosition
  • Center the window on its transient parent (see gtk_window_set_transient_for()).

    Declaration

    Swift

    static let centerOnParent: GtkWindowPosition