> home > Custom Layer Boundary API

text_layout_get_visible_range

January 19th 2020
Get the range in byte positions within the buffer that are visible in a text layout

Signature

C++
Range_i64
text_layout_get_visible_range(Application_Links* app,
                              Text_Layout_ID text_layout_id);

Parameters

app

the standard custom layer context pointer

text_layout_id

the id of the text layout object

Return

on success, when the text layout object exists, the range of positions in the buffer that are visible in the object, otherwise cleared to zero