> home > Custom Layer Boundary API

get_face_id

January 19th 2020
Get the id of a face attached to a buffer, or of the global face

Signature

C++
Face_ID
get_face_id(Application_Links* app,
            Buffer_ID buffer_id);

Parameters

app

the standard custom layer context pointer

buffer_id

the id of the buffer to query, or zero to query for the global face

Return

the id of the queried face, if the buffer exists or if the query is for the global face, otherwise zero