Documentation
¶
Index ¶
- type Constraint
- type Direction
- type Fill
- type Flex
- type Layout
- func (l Layout) Split(area uv.Rectangle) Splitted
- func (l Layout) SplitWithSpacers(area uv.Rectangle) (segments, spacers Splitted)
- func (l Layout) WithConstraints(constraints ...Constraint) Layout
- func (l Layout) WithDirection(direction Direction) Layout
- func (l Layout) WithFlex(flex Flex) Layout
- func (l Layout) WithPadding(padding Padding) Layout
- func (l Layout) WithSpacing(spacing Spacing) Layout
- type Len
- type Max
- type Min
- type Padding
- type Percentage
- type Ratio
- type Spacing
- type SpacingOverlap
- type SpacingSpace
- type Splitted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraint ¶
type Layout ¶
type Layout struct {
Direction Direction
Constraints []Constraint
Padding Padding
Spacing Spacing
Flex Flex
}
func Horizontal ¶
func Horizontal(constraints ...Constraint) Layout
func New ¶
func New(direction Direction, constraints ...Constraint) Layout
func Vertical ¶
func Vertical(constraints ...Constraint) Layout
func (Layout) SplitWithSpacers ¶
func (Layout) WithConstraints ¶
func (l Layout) WithConstraints(constraints ...Constraint) Layout
func (Layout) WithDirection ¶
func (Layout) WithPadding ¶
func (Layout) WithSpacing ¶
type Padding ¶
type Padding struct {
Top, Right, Bottom, Left int
}
func NewPadding ¶
func (Padding) WithBottom ¶
type Percentage ¶
type Percentage int
func (Percentage) String ¶
func (p Percentage) String() string
type SpacingOverlap ¶
type SpacingOverlap int
type SpacingSpace ¶
type SpacingSpace int
Click to show internal directories.
Click to hide internal directories.