> home > Custom Layer Boundary API

view_get_cursor_pos

September 8th 2024
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