Versions in this module Expand all Collapse all v0 v0.1.12 Jan 14, 2026 Changes in this version + const BreakpointBasic + const BreakpointCompact + const BreakpointExtended + const BreakpointFull + func IsBasicMode(width int) bool + func IsCompactMode(width int) bool + func IsExtendedMode(width int) bool + func IsFullMode(width int) bool + type BoxLayout struct + func NewBoxLayout(orientation Orientation) *BoxLayout + func NewBoxLayoutWithSpacing(orientation Orientation, spacing int) *BoxLayout + func (b *BoxLayout) Calculate(available Rectangle, components []ComponentInfo) map[string]Rectangle + func (b *BoxLayout) GetOrientation() Orientation + func (b *BoxLayout) GetSpacing() int + func (b *BoxLayout) SetOrientation(orientation Orientation) + func (b *BoxLayout) SetSpacing(spacing int) + type BreakpointConfig struct + Layout Layout + MinWidth int + type ComponentInfo struct + Constraints Constraints + ID string + Order int + type Constraints struct + Grow bool + MaxHeight int + MaxWidth int + MinHeight int + MinWidth int + Shrink bool + Weight int + func DefaultConstraints() Constraints + func FixedConstraints(width, height int) Constraints + func FlexConstraints(minHeight, weight int) Constraints + type Layout interface + Calculate func(available Rectangle, components []ComponentInfo) map[string]Rectangle + type LayoutManager interface + GetComponentBounds func(id string) Rectangle + IsDirty func() bool + RecalculateLayout func() error + RegisterComponent func(id string, constraints Constraints) error + SetAvailableSize func(width, height int) + UnregisterComponent func(id string) error + type Manager struct + func NewManager(layout Layout) *Manager + func (m *Manager) Clear() + func (m *Manager) GetComponentBounds(id string) Rectangle + func (m *Manager) GetComponentCount() int + func (m *Manager) IsDirty() bool + func (m *Manager) RecalculateLayout() error + func (m *Manager) RegisterComponent(id string, constraints Constraints) error + func (m *Manager) SetAvailableSize(width, height int) + func (m *Manager) SetLayout(layout Layout) + func (m *Manager) UnregisterComponent(id string) error + type Orientation int + const Horizontal + const Vertical + type Rectangle struct + Height int + Width int + X int + Y int + type ResponsiveLayout struct + func NewResponsiveLayout(defaultLayout Layout) *ResponsiveLayout + func (r *ResponsiveLayout) AddBreakpoint(minWidth int, layout Layout) + func (r *ResponsiveLayout) Calculate(available Rectangle, components []ComponentInfo) map[string]Rectangle + func (r *ResponsiveLayout) ClearBreakpoints() + func (r *ResponsiveLayout) GetBreakpointCount() int + func (r *ResponsiveLayout) GetCurrentBreakpoint(width int) string + func (r *ResponsiveLayout) SetDefaultLayout(layout Layout)