> home > Custom Layer Boundary API

buffer_set_layout

January 19th 2020
Set the layout function of a buffer

Signature

C++
b32
buffer_set_layout(Application_Links* app,
                  Buffer_ID buffer_id,
                  Layout_Function* layout_func);

Parameters

app

the standard custom layer context pointer

buffer_id

the id of the buffer to be modified

layout_func

the new layout function for the buffer's layout

Return

non-zero on success, when the buffer exists, otherwise zero