> home > Custom Layer Boundary API

view_set_buffer

January 19th 2020
Set a view's associated buffer

Signature

C++
b32
view_set_buffer(Application_Links* app,
                View_ID view_id,
                Buffer_ID buffer_id,
                Set_Buffer_Flag flags);

Parameters

app

the standard custom layer context pointer

view_id

the id of the view to modify

buffer_id

the id of the buffer to associate to this view

flags

flags controlling the behavior of the view as it changes to the new buffer

Return

non-zero if the view and buffer both exist, otherwise zero

Related

Set_Buffer_Flag