> home > Custom Layer Boundary API

panel_is_split

January 19th 2020
Check if a panel is an internal split panel

Signature

C++
b32
panel_is_split(Application_Links* app,
               Panel_ID panel_id);

Parameters

app

the standard custom layer context pointer

panel_id

the id of the panel to query

Return

non-zero if the panel exists and is an internal panel in the panel layout tree

Details

The panel layout tree is a binary tree with internal panels having exactly two children and a split rule, and leaf panels having an associated view.