func (c *LayoutComponent) Layout() *layout.Builder {
	return c.builder
}
componentLayout internal implementation.
package glint
import (
	"context"
	"github.com/mitchellh/go-glint/flex"
	"github.com/mitchellh/go-glint/internal/layout"
)
func Layout(inner ...Component) *LayoutComponent {
	return &LayoutComponent{inner: inner, builder: &layout.Builder{}}
}
type LayoutComponent struct {
	inner   []Component
	builder *layout.Builder
}
func (c *LayoutComponent) Row() *LayoutComponent {
	c.builder = c.builder.Raw(func(n *flex.Node) {
		n.StyleSetFlexDirection(flex.FlexDirectionRow)
	})
	return c
}
func (c *LayoutComponent) MarginLeft(x int) *LayoutComponent {
	c.builder = c.builder.Raw(func(n *flex.Node) {
		n.StyleSetMargin(flex.EdgeLeft, float32(x))
	})
	return c
}
func (c *LayoutComponent) MarginRight(x int) *LayoutComponent {
	c.builder = c.builder.Raw(func(n *flex.Node) {
		n.StyleSetMargin(flex.EdgeRight, float32(x))
	})
	return c
}
func (c *LayoutComponent) PaddingLeft(x int) *LayoutComponent {
	c.builder = c.builder.Raw(func(n *flex.Node) {
		n.StyleSetPadding(flex.EdgeLeft, float32(x))
	})
	return c
}
func (c *LayoutComponent) PaddingRight(x int) *LayoutComponent {
	c.builder = c.builder.Raw(func(n *flex.Node) {
		n.StyleSetPadding(flex.EdgeRight, float32(x))
	})
	return c
}
func (c *LayoutComponent) Body(context.Context) Component {
	return Fragment(c.inner...)
}