move_cursor


Description:

public virtual signal bool move_cursor (MovementStep step, int count)

The move_cursor signal is a [keybinding signal][GtkBindingSignal] which gets emitted when the user presses one of the cursor keys.

Applications should not connect to it, but may emit it with emit_by_name if they need to control the cursor programmatically. In contrast to set_cursor and set_cursor_on_cell when moving horizontally move_cursor does not reset the current selection.

Parameters:

step

the granularity of the move, as a MovementStep. gtk_movement_logical_positions, gtk_movement_visual_positions, gtk_movement_display_lines, gtk_movement_pages and gtk_movement_buffer_ends are supported. gtk_movement_logical_positions and gtk_movement_visual_positions are treated identically.

direction

the direction to move: +1 to move forwards; -1 to move backwards. The resulting movement is undefined for all other values.

Returns:

true if step is supported, false otherwise.




2022 vala-language.org