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

@@ -185,23 +185,24 @@ func (w *SimpleList) Draw(screen tcell.Screen) {
}
}
func (w *SimpleList) Active() bool { return w.active }
func (w *SimpleList) SetActive(a bool) { w.active = a }
func (w *SimpleList) Visible() bool { return w.visible }
func (w *SimpleList) SetVisible(a bool) { w.visible = a }
func (w *SimpleList) SetX(x int) { w.x = x }
func (w *SimpleList) SetY(y int) { w.y = y }
func (w *SimpleList) GetX() int { return w.x }
func (w *SimpleList) GetY() int { return w.y }
func (w *SimpleList) GetPos() Coord { return Coord{X: w.x, Y: w.y} }
func (w *SimpleList) SetPos(c Coord) { w.x, w.y = c.X, c.Y }
func (w *SimpleList) SetW(x int) { w.w = x }
func (w *SimpleList) SetH(y int) { w.h = y }
func (w *SimpleList) GetW() int { return w.w }
func (w *SimpleList) GetH() int { return w.y }
func (w *SimpleList) SetSize(c Coord) { w.w, w.h = c.X, c.Y }
func (w *SimpleList) Focusable() bool { return w.focusable }
func (w *SimpleList) SetFocusable(b bool) { w.focusable = b }
func (w *SimpleList) SetStyle(s tcell.Style) { w.style = s }
func (w *SimpleList) Active() bool { return w.active }
func (w *SimpleList) SetActive(a bool) { w.active = a }
func (w *SimpleList) Visible() bool { return w.visible }
func (w *SimpleList) SetVisible(a bool) { w.visible = a }
func (w *SimpleList) SetX(x int) { w.x = x }
func (w *SimpleList) SetY(y int) { w.y = y }
func (w *SimpleList) GetX() int { return w.x }
func (w *SimpleList) GetY() int { return w.y }
func (w *SimpleList) GetPos() Coord { return Coord{X: w.x, Y: w.y} }
func (w *SimpleList) SetPos(c Coord) { w.x, w.y = c.X, c.Y }
func (w *SimpleList) SetW(x int) { w.w = x }
func (w *SimpleList) SetH(y int) { w.h = y }
func (w *SimpleList) GetW() int { return w.w }
func (w *SimpleList) GetH() int { return w.y }
func (w *SimpleList) SetSize(c Coord) { w.w, w.h = c.X, c.Y }
func (w *SimpleList) Focusable() bool { return w.focusable }
func (w *SimpleList) SetFocusable(b bool) { w.focusable = b }
func (w *SimpleList) WantW() int {
lng := wh.Longest(w.list)
if len(w.border) > 0 {