> home > Custom Layer Boundary API

text_layout_line_on_screen

September 8th 2024
Get the range of the y-axis spanned by a line layout

Signature

C++
Range_f32
text_layout_line_on_screen(Application_Links* app,
                           Text_Layout_ID layout_id,
                           i64 line_number);

Parameters

app

the standard custom layer context pointer

layout_id

the id of the text layout object

line_number

the line number of the line to query

Return

on success, when the object exists and the line is visible in the layout, the range in pixels from the top to the bottom of a particular line, cleared to zero otherwise