feat: wip tui updates
This commit is contained in:
parent
5d7e9d79c4
commit
dde2d98a84
5 changed files with 158 additions and 24 deletions
18
tui/size.go
18
tui/size.go
|
|
@ -2,9 +2,21 @@ package tui
|
|||
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
|
||||
type Size struct{
|
||||
Width, Height int
|
||||
}
|
||||
type (
|
||||
Size struct{
|
||||
Width, Height int
|
||||
}
|
||||
|
||||
Sized interface{
|
||||
SetSize(width, height int) tea.Model
|
||||
}
|
||||
SizedWidth interface{
|
||||
SetWidth(width int) tea.Model
|
||||
}
|
||||
SizedHeight interface{
|
||||
SetHeight(height int) tea.Model
|
||||
}
|
||||
)
|
||||
|
||||
func NewSize(width, height int) Size {
|
||||
return Size { Width: width, Height: height }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue