PolicyType

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • The scrollbar is always visible. The view size is independent of the content.

    Declaration

    Swift

    static let always: GtkPolicyType
  • The scrollbar will appear and disappear as necessary. For example, when all of a GtkTreeView can not be seen.

    Declaration

    Swift

    static let automatic: GtkPolicyType
  • The scrollbar should never appear. In this mode the content determines the size.

    Declaration

    Swift

    static let never: GtkPolicyType
  • Don’t show a scrollbar, but don’t force the size to follow the content. This can be used e.g. to make multiple scrolled windows share a scrollbar.

    Declaration

    Swift

    static let external: GtkPolicyType