struct Gtk::TextView::DeleteFromCursorSignal
- Gtk::TextView::DeleteFromCursorSignal
- GObject::Signal
- Struct
- Value
- Object
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.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gtk::DeleteType, Int32, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::TextView, Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(type : Gtk::DeleteType, count : Int32) : Nil
-
#name : String
The signal name
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
#
def connect(handler : Proc(Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::TextView, Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
#