DeleteType

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Delete characters.

    Declaration

    Swift

    static let chars: GtkDeleteType
  • Delete only the portion of the word to the left/right of cursor if we’re in the middle of a word.

    Declaration

    Swift

    static let wordEnds: GtkDeleteType
  • Delete words.

    Declaration

    Swift

    static let words: GtkDeleteType
  • Delete display-lines. Display-lines refers to the visible lines, with respect to to the current line breaks. As opposed to paragraphs, which are defined by line breaks in the input.

    Declaration

    Swift

    static let displayLines: GtkDeleteType
  • Delete only the portion of the display-line to the left/right of cursor.

    Declaration

    Swift

    static let displayLineEnds: GtkDeleteType
  • Delete to the end of the paragraph. Like C-k in Emacs (or its reverse).

    Declaration

    Swift

    static let paragraphEnds: GtkDeleteType
  • Delete entire line. Like C-k in pico.

    Declaration

    Swift

    static let paragraphs: GtkDeleteType
  • Delete only whitespace. Like M-\ in Emacs.

    Declaration

    Swift

    static let whitespace: GtkDeleteType