MCPcopy Create free account
hub / github.com/lxn/walk / ColumnStretchFactor

Method ColumnStretchFactor

gridlayout.go:140–151  ·  view source on GitHub ↗
(column int)

Source from the content-addressed store, hash-verified

138}
139
140func (l *GridLayout) ColumnStretchFactor(column int) int {
141 if column < 0 {
142 // FIXME: Should we rather return an error?
143 return -1
144 }
145
146 if column >= len(l.columnStretchFactors) {
147 return 1
148 }
149
150 return l.columnStretchFactors[column]
151}
152
153func (l *GridLayout) SetColumnStretchFactor(column, factor int) error {
154 if column < 0 {

Callers 2

InitWidgetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected