diff options
| author | adamdottv <[email protected]> | 2025-06-13 15:56:30 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-13 15:56:33 -0500 |
| commit | 67023bb00710b6a40836800da2eb5cdacc1ee9c1 (patch) | |
| tree | 4c6fce2842956f214b8e39a7465d4444b37d39b0 /packages/tui/internal/layout | |
| parent | a316aed4fe973682667a19e6ba550270cf1a9df4 (diff) | |
| download | opencode-67023bb00710b6a40836800da2eb5cdacc1ee9c1.tar.gz opencode-67023bb00710b6a40836800da2eb5cdacc1ee9c1.zip | |
wip: refactoring tui
Diffstat (limited to 'packages/tui/internal/layout')
| -rw-r--r-- | packages/tui/internal/layout/container.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/tui/internal/layout/container.go b/packages/tui/internal/layout/container.go index c57b7bd7e..b1310f498 100644 --- a/packages/tui/internal/layout/container.go +++ b/packages/tui/internal/layout/container.go @@ -19,6 +19,7 @@ type Container interface { MaxWidth() int Alignment() lipgloss.Position GetPosition() (x, y int) + GetContent() ModelWithView } type container struct { @@ -177,6 +178,11 @@ func (c *container) GetPosition() (x, y int) { return c.x, c.y } +// GetContent returns the content of the container +func (c *container) GetContent() ModelWithView { + return c.content +} + type ContainerOption func(*container) func NewContainer(content ModelWithView, options ...ContainerOption) Container { |
