ButtonsType

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • no buttons at all

    Declaration

    Swift

    static let none: GtkButtonsType
  • ok

    an OK button

    Declaration

    Swift

    static let ok: GtkButtonsType
  • a Close button

    Declaration

    Swift

    static let close: GtkButtonsType
  • a Cancel button

    Declaration

    Swift

    static let cancel: GtkButtonsType
  • Yes and No buttons

    Declaration

    Swift

    static let yesNo: GtkButtonsType
  • OK and Cancel buttons

    Declaration

    Swift

    static let okCancel: GtkButtonsType