struct Gtk::EntryCompletion::InsertPrefixSignal

Overview

Emitted when the inline autocompletion is triggered.

The default behaviour is to make the entry display the whole prefix and select the newly inserted part.

Applications may connect to this signal in order to insert only a smaller part of the prefix into the entry - e.g. the entry used in the Gtk::FileChooser inserts only the part of the prefix up to the next '/'.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/entry_completion.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(String, Bool)) : GObject::SignalConnection #

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

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

[View source]
def emit(prefix : String) : Nil #

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

The signal name


[View source]