> home > Custom Layer Boundary API

view_get_cursor_pos

January 19th 2020
Get the position of the core tracked cursor on a view

Signature

C++
i64
view_get_cursor_pos(Application_Links* app,
                    View_ID view_id);

Parameters

app

the standard custom layer context pointer

view_id

the id of the view to query

Return

the position of the view's cursor in bytes, if the view exists, otherwise zero