[][src]Function wayland_raw_protocol_bindings::client::input_method_unstable_v1::zwp_input_method_context_v1::zwp_input_method_context_v1_cursor_position

pub unsafe fn zwp_input_method_context_v1_cursor_position(
    zwp_input_method_context_v1: *mut zwp_input_method_context_v1,
    index: i32,
    anchor: i32
)

set cursor to a new position

Set the cursor and anchor to a new position. Index is the new cursor position in bytes (when >= 0 this is relative to the end of the inserted text, otherwise it is relative to the beginning of the inserted text). Anchor is the new anchor position in bytes (when >= 0 this is relative to the end of the inserted text, otherwise it is relative to the beginning of the inserted text). When there should be no selected text, anchor should be the same as index.

This request will be handled on the text_input side directly following a commit_string request.