ResponseType

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed

    Declaration

    Swift

    static let none: GtkResponseType
  • Generic response id, not used by GTK+ dialogs

    Declaration

    Swift

    static let reject: GtkResponseType
  • Generic response id, not used by GTK+ dialogs

    Declaration

    Swift

    static let accept: GtkResponseType
  • Returned if the dialog is deleted

    Declaration

    Swift

    static let deleteEvent: GtkResponseType
  • ok

    Returned by OK buttons in GTK+ dialogs

    Declaration

    Swift

    static let ok: GtkResponseType
  • Returned by Cancel buttons in GTK+ dialogs

    Declaration

    Swift

    static let cancel: GtkResponseType
  • Returned by Close buttons in GTK+ dialogs

    Declaration

    Swift

    static let close: GtkResponseType
  • yes

    Returned by Yes buttons in GTK+ dialogs

    Declaration

    Swift

    static let yes: GtkResponseType
  • no

    Returned by No buttons in GTK+ dialogs

    Declaration

    Swift

    static let no: GtkResponseType
  • Returned by Apply buttons in GTK+ dialogs

    Declaration

    Swift

    static let apply: GtkResponseType
  • Returned by Help buttons in GTK+ dialogs

    Declaration

    Swift

    static let help: GtkResponseType