Class CompositeWireframeDrawer
Draws a flexbox wireframe of a IRegionNode tree into an IMGUI rect, so the builder window can show a live thumbnail of the chosen template. Leaves are labelled boxes; a switcher shows its first/active View with a marker. Project convention: ROW stacks vertically, COLUMN side-by-side.
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Editor.Builder
Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
Syntax
public static class CompositeWireframeDrawer
Methods
Draw(Rect, IRegionNode, float)
Draws node filling rect, where rect stands
in for a screen of referenceWidth px on its main horizontal axis. Fixed-px and
gap sizes are scaled by rect.width / referenceWidth so a 220px navbar reads at its true
proportion of the chosen resolution (pass the same aspect ratio in rect).
Declaration
public static void Draw(Rect rect, IRegionNode node, float referenceWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | rect | The (aspect-correct) screen area to draw into. |
| IRegionNode | node | The region tree (root container). |
| float | referenceWidth | The screen width in px the rect represents; ≤0 falls back to 1:1. |