Separator
A line the theme's border width thick, in the border colour. It takes nothing: it only divides.


Fixtures: separator-horizontal and separator-vertical.
Build
public static Box Build(BibuiRuntime runtime, bool vertical = false)
public const float Thickness = 1f; // under the default themeA horizontal separator is as wide as its parent. A vertical one is as tall as its parent, so in a row of centred items, the row must give itself a height. Size the box it returns to make it shorter or longer.
Claims and reports
None. It returns a keyless Box.
State the caller owns
None.
Theme tokens
Border,runtime.Theme.Borders.Widththick.
Example
using Bibui.Core;
using Bibui.Core.Runtime;
sealed class Toolbar
{
const string Cut = "Cut";
const string Copy = "Copy";
const string Help = "Help";
public UiNode Build(BibuiRuntime runtime)
{
var row = runtime.BeginParent(runtime.Row().Sized(y: Size.Px(36f)));
runtime.Button("toolbar-cut", Cut, ghost: true);
runtime.Button("toolbar-copy", Copy, ghost: true);
runtime.Gap(8f);
Separator.Build(runtime, vertical: true); // the row's 36 px
runtime.Gap(8f);
runtime.Button("toolbar-help", Help, ghost: true);
runtime.EndParent(row);
return row;
}
}