text_layout_get_visible_range
September 8th 2024
Get the range in byte positions within the buffer that are visible in a text layout
Signature
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