| 123456789101112131415161718192021222324252627 |
- package layout
- import (
- "github.com/charmbracelet/bubbles/v2/key"
- tea "github.com/charmbracelet/bubbletea/v2"
- )
- // TODO: move this to core
- type Focusable interface {
- Focus() tea.Cmd
- Blur() tea.Cmd
- IsFocused() bool
- }
- type Sizeable interface {
- SetSize(width, height int) tea.Cmd
- GetSize() (int, int)
- }
- type Help interface {
- Bindings() []key.Binding
- }
- type Positional interface {
- SetPosition(x, y int) tea.Cmd
- }
|