Vixen
dd8b0a81
csharp
public readonly record struct UiBoxModel

An element's four boxes, as CSS names them.

Read the guide page for this →

Remarks

⚠ Four rectangles rather than twelve edges, because the thing a debug overlay draws is four nested outlines and the arithmetic that turns edges into them is the part that is easy to get wrong once per overlay. Reading it costs twelve calls into the layout results and allocates nothing.

Fields and properties (4)

  • public Rectangle Margin

    The outermost box, including the margins.

  • public Rectangle Border

    The border box, which is Bounds.

  • public Rectangle Padding

    Inside the borders.

  • public Rectangle Content

    Inside the padding: where the words and the children go.

Methods (1)

Used by (3)

  • DiagnosticsPanelVixen.Ui.Controls
  • DiagnosticsTestsVixen.Ui.Tests
  • UiDiagnosticsVixen.Ui