> home > Custom Layer Boundary API

text_layout_region

September 8th 2024
Get the on screen rectangular region of a layout object

Signature

C++
Rect_f32
text_layout_region(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 rectangular region used to create the object, otherwise zero