> home > Custom Layer Boundary API

panel_is_leaf

January 19th 2020
Check if a panel is a leaf panel with an associated view

Signature

C++
b32
panel_is_leaf(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 a leaf 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.