move_cursor


Description:

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

The `GtkTreeView`move_cursor signal is a [keybinding signal][class@Gtk.

SignalAction] 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 `GtkTreeView` move_cursor does not reset the current selection.

Parameters:

step

the granularity of the move, as a `GtkMovementStep`. 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.

extend

whether to extend the selection

modify

whether to modify the selection

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