Add SetStyle Function

This commit is contained in:
2026-01-23 09:36:43 -06:00
parent d442b7d6a8
commit c1296b1dc1
31 changed files with 425 additions and 392 deletions

View File

@@ -78,27 +78,28 @@ func (w *Spinner) Draw(screen tcell.Screen) {
screen.SetContent(w.x, w.y, w.frames[w.currentFrame], nil, w.style)
}
func (w *Spinner) Active() bool { return false }
func (w *Spinner) SetActive(a bool) {}
func (w *Spinner) Visible() bool { return w.visible }
func (w *Spinner) SetVisible(v bool) { w.visible = v }
func (w *Spinner) Focusable() bool { return false }
func (w *Spinner) SetFocusable(t bool) {}
func (w *Spinner) SetX(x int) { w.x = x }
func (w *Spinner) SetY(y int) { w.y = y }
func (w *Spinner) GetX() int { return w.x }
func (w *Spinner) GetY() int { return w.y }
func (w *Spinner) GetPos() Coord { return Coord{X: w.x, Y: w.y} }
func (w *Spinner) SetPos(pos Coord) { w.x, w.y = pos.X, pos.Y }
func (w *Spinner) SetSize(size Coord) {}
func (w *Spinner) SetW(wd int) {}
func (w *Spinner) SetH(h int) {}
func (w *Spinner) GetW() int { return 1 }
func (w *Spinner) GetH() int { return 1 }
func (w *Spinner) WantW() int { return 1 }
func (w *Spinner) WantH() int { return 1 }
func (w *Spinner) MinW() int { return 1 }
func (w *Spinner) MinH() int { return 1 }
func (w *Spinner) SetStyle(s tcell.Style) { w.style = s }
func (w *Spinner) Active() bool { return false }
func (w *Spinner) SetActive(a bool) {}
func (w *Spinner) Visible() bool { return w.visible }
func (w *Spinner) SetVisible(v bool) { w.visible = v }
func (w *Spinner) Focusable() bool { return false }
func (w *Spinner) SetFocusable(t bool) {}
func (w *Spinner) SetX(x int) { w.x = x }
func (w *Spinner) SetY(y int) { w.y = y }
func (w *Spinner) GetX() int { return w.x }
func (w *Spinner) GetY() int { return w.y }
func (w *Spinner) GetPos() Coord { return Coord{X: w.x, Y: w.y} }
func (w *Spinner) SetPos(pos Coord) { w.x, w.y = pos.X, pos.Y }
func (w *Spinner) SetSize(size Coord) {}
func (w *Spinner) SetW(wd int) {}
func (w *Spinner) SetH(h int) {}
func (w *Spinner) GetW() int { return 1 }
func (w *Spinner) GetH() int { return 1 }
func (w *Spinner) WantW() int { return 1 }
func (w *Spinner) WantH() int { return 1 }
func (w *Spinner) MinW() int { return 1 }
func (w *Spinner) MinH() int { return 1 }
func (w *Spinner) SetFrames(frames []rune) {
w.frames = frames