struct Gtk::Text::DeleteFromCursorSignal
- Gtk::Text::DeleteFromCursorSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Emitted when the user initiates a text deletion.
This 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 and Ctrl-Delete for deleting a word.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/text.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::Text, 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::Text, Gtk::DeleteType, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection
#