on 94de6bc help sign in
27 lines 396 B history raw
1package layout
3import (
4 "charm.land/bubbles/v2/key"
5 tea "charm.land/bubbletea/v2"
6)
8// TODO: move this to core
10type Focusable interface {
11 Focus() tea.Cmd
12 Blur() tea.Cmd
13 IsFocused() bool
16type Sizeable interface {
17 SetSize(width, height int) tea.Cmd
18 GetSize() (int, int)
21type Help interface {
22 Bindings() []key.Binding
25type Positional interface {
26 SetPosition(x, y int) tea.Cmd