struct Gtk::TextView::DeleteFromCursorSignal

Overview

Gets emitted when the user initiates a text deletion.

The ::delete-from-cursor signal is a keybinding signal.

If the @type is %GTK_DELETE_CHARS, GTK deletes the selection if there is one, otherwise it deletes the requested number of characters.

The default bindings for this signal are Delete for deleting a character, Ctrl-Delete for deleting a word and Ctrl-Backspace for deleting a word backwards.

Defined in:

auto/gtk-4.0/text_view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source, detail = nil) #

Instance Method Detail

def [](detail : String) : self #

def connect(&block : Proc(Gtk::DeleteType, Int32, Nil)) #

def connect(handler : Proc(Gtk::DeleteType, Int32, Nil)) #

def connect(handler : Proc(Gtk::TextView, Gtk::DeleteType, Int32, Nil)) #

def connect_after(&block : Proc(Gtk::DeleteType, Int32, Nil)) #

def connect_after(handler : Proc(Gtk::DeleteType, Int32, Nil)) #

def connect_after(handler : Proc(Gtk::TextView, Gtk::DeleteType, Int32, Nil)) #

def emit(type : Gtk::DeleteType, count : Int32) : Nil #

def name #