Padding
Padding allows you to add space around a Widget.
See the PaddingDemo class.
Gui.NextWidth(100).TextButton("0");
// The Padding inside this scope will be applied with the specified values.
using (Ctx.BeginPadding(new Padding(30f, 10f, 10f, 10f)))
{
Gui.NextWidth(100).TextButton("1");
// Can be nested
using (Ctx.BeginPadding(new Padding(30f, 30f, 30f, 30f)))
{
Gui.NextWidth(100).TextButton("2");
}
Gui.NextWidth(100).TextButton("3");
}
Gui.NextWidth(100).TextButton("4");