Add SetStyle Function
This commit is contained in:
@@ -149,20 +149,21 @@ func (w *Table) Draw(screen tcell.Screen) {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *Table) Active() bool { return w.active }
|
||||
func (w *Table) SetActive(a bool) { w.active = a }
|
||||
func (w *Table) Visible() bool { return w.visible }
|
||||
func (w *Table) SetVisible(a bool) { w.visible = a }
|
||||
func (w *Table) SetX(x int) { w.x = x }
|
||||
func (w *Table) SetY(y int) { w.y = y }
|
||||
func (w *Table) GetX() int { return w.x }
|
||||
func (w *Table) GetY() int { return w.y }
|
||||
func (w *Table) GetPos() Coord { return Coord{X: w.x, Y: w.y} }
|
||||
func (w *Table) SetPos(c Coord) { w.x, w.y = c.X, c.Y }
|
||||
func (w *Table) SetW(x int) { w.w = x }
|
||||
func (w *Table) SetH(y int) { w.h = y }
|
||||
func (w *Table) GetW() int { return w.w }
|
||||
func (w *Table) GetH() int { return w.y }
|
||||
func (w *Table) SetStyle(s tcell.Style) { w.style = s }
|
||||
func (w *Table) Active() bool { return w.active }
|
||||
func (w *Table) SetActive(a bool) { w.active = a }
|
||||
func (w *Table) Visible() bool { return w.visible }
|
||||
func (w *Table) SetVisible(a bool) { w.visible = a }
|
||||
func (w *Table) SetX(x int) { w.x = x }
|
||||
func (w *Table) SetY(y int) { w.y = y }
|
||||
func (w *Table) GetX() int { return w.x }
|
||||
func (w *Table) GetY() int { return w.y }
|
||||
func (w *Table) GetPos() Coord { return Coord{X: w.x, Y: w.y} }
|
||||
func (w *Table) SetPos(c Coord) { w.x, w.y = c.X, c.Y }
|
||||
func (w *Table) SetW(x int) { w.w = x }
|
||||
func (w *Table) SetH(y int) { w.h = y }
|
||||
func (w *Table) GetW() int { return w.w }
|
||||
func (w *Table) GetH() int { return w.y }
|
||||
|
||||
func (w *Table) WantW() int {
|
||||
if w.minimized {
|
||||
|
||||
Reference in New Issue
Block a user