SetColAlignV sets the vertical alignment for all the cells of the specified column. The function panics if the supplied column is invalid
(col int, align Align)
| 76 | // SetColAlignV sets the vertical alignment for all the cells of |
| 77 | // the specified column. The function panics if the supplied column is invalid |
| 78 | func (g *GridLayout) SetColAlignV(col int, align Align) { |
| 79 | |
| 80 | if col < 0 || col >= len(g.columns) { |
| 81 | panic("Invalid column") |
| 82 | } |
| 83 | if g.columns[col].alignv == nil { |
| 84 | g.columns[col].alignv = new(Align) |
| 85 | } |
| 86 | *g.columns[col].alignv = align |
| 87 | g.Recalc(g.pan) |
| 88 | } |
| 89 | |
| 90 | // SetColAlignH sets the horizontal alignment for all the cells of |
| 91 | // the specified column. The function panics if the supplied column is invalid. |