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:

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

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source : GObject::Object, detail : Nil | String = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Gtk::DeleteType, Int32, Nil)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::TextView, Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(type : Gtk::DeleteType, count : Int32) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]