%% Tab is a generic Layout container: two separate routes to the split tree.
%% Solid arrows are runtime use (call / field); dotted arrows are
%% the implements relationship. Stadium node = interface, double-barred
%% node = a set of call sites rather than a type.
flowchart TD
    App["App frame loop"]
    TabW["TabWidget"]
    Tab["Tab<br/>Title + Content Layout"]
    Iface(["Layout interface<br/>Widget + BuildLayout"])
    WT["WidgetTree<br/>topology, geometry, focus, marks"]
    FutureA["future layout"]
    FutureB["future layout"]
    Shell["application shell .Layout()<br/>the one type assertion"]
    AppCode[["many application call sites<br/>focus, placement, splits, marks<br/>(not a type)"]]

    App -->|"calls Draw"| TabW
    TabW -->|"active tab"| Tab
    Tab -->|"Content field"| Iface
    Iface -.->|"implemented by"| WT
    Iface -.->|"implemented by"| FutureA
    Iface -.->|"implemented by"| FutureB
    AppCode -->|"calls"| Shell
    Shell -->|"returns concrete type"| WT
