MCPcopy Index your code
hub / github.com/g3n/engine / SetColAlignV

Method SetColAlignV

gui/gridlayout.go:78–88  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

76// SetColAlignV sets the vertical alignment for all the cells of
77// the specified column. The function panics if the supplied column is invalid
78func (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.

Callers

nothing calls this directly

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected