> home > Custom Layer Boundary API

buffer_set_dirty_state

January 19th 2020
Set the dirty state of a buffer

Signature

C++
b32
buffer_set_dirty_state(Application_Links* app,
                       Buffer_ID buffer_id,
                       Dirty_State dirty_state);

Parameters

app

the standard custom layer context pointer

buffer_id

the id of the buffer to be modified

dirty_state

the new value for the buffer's dirty state

Return

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

Related

Dirty_State