> home > Custom Layer Boundary API

view_get_panel

January 19th 2020
Get the id of a panel associated with a view

Signature

C++
Panel_ID
view_get_panel(Application_Links* app,
               View_ID view_id);

Parameters

app

the standard custom layer context pointer

view_id

the id of the view to query

Return

the id of the panel associated with the view, if the view exists, zero otherwise

Details

Associations between panels and views are not 'stable'. They often change whenever the layout of panels is adjusted. The results of this query should only be taken as correct for as long as no panels or views are opened or closed.