signal callback delegate or function to connect
void callback(gtk.types.ScrollStep step, int num, gtksource.completion.Completion completion)
step The #GtkScrollStep by which to move the cursor (optional)
num The amount of steps to move the cursor (optional)
completion the instance the signal is connected to (optional)
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to MoveCursor signal.
The #GtkSourceCompletion::move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement.
The <keycap>Up</keycap>, <keycap>Down</keycap>, <keycap>PageUp</keycap>, <keycap>PageDown</keycap>, <keycap>Home</keycap> and <keycap>End</keycap> keys are bound to the normal behavior expected by those keys.
When step is equal to gtk.types.ScrollStep.Pages, the page size is defined by the #GtkSourceCompletion:proposal-page-size property. It is used for the <keycap>PageDown</keycap> and <keycap>PageUp</keycap> keys.
Applications should not connect to it, but may emit it with gobject.global.signalEmitByName if they need to control the cursor programmatically.