enum Gtk::DeleteType

Overview

Passed to various keybinding signals for deleting text.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/gtk.cr

Enum Members

Chars = 0_u32

Delete characters.

WordEnds = 1_u32

Delete only the portion of the word to the left/right of cursor if we’re in the middle of a word.

Words = 2_u32

Delete words.

DisplayLines = 3_u32

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

DisplayLineEnds = 4_u32

Delete only the portion of the display-line to the left/right of cursor.

ParagraphEnds = 5_u32

Delete to the end of the paragraph. Like C-k in Emacs (or its reverse).

Paragraphs = 6_u32

Delete entire line. Like C-k in pico.

Whitespace = 7_u32

Delete only whitespace. Like M-\ in Emacs.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def chars? #

[View source]
def display_line_ends? #

[View source]
def display_lines? #

[View source]
def paragraph_ends? #

[View source]
def paragraphs? #

[View source]
def whitespace? #

[View source]
def word_ends? #

[View source]
def words? #

[View source]