(column int)
| 138 | } |
| 139 | |
| 140 | func (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 | |
| 153 | func (l *GridLayout) SetColumnStretchFactor(column, factor int) error { |
| 154 | if column < 0 { |
no outgoing calls
no test coverage detected