> home > Custom Layer Boundary API

text_layout_region

January 19th 2020
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