Debian Codegraph @

methods.go

raw symbols SCIP
1 package multichoose
2
3 func (mc MultiChoose) Length() int {
4 return mc.length
5 }
6
7 func (mc *MultiChoose) SetLength(length int) {
8 mc.length = length
9 }
10
11 func (mc MultiChoose) Limit() int {
12 return mc.limit
13 }
14
15 func (mc *MultiChoose) SetLimit(limit int) {
16 mc.limit = limit
17 }
18
19 func (mc *MultiChoose) Toggle(index int) {
20 if mc.IsSelected(index) {
21 mc.Deselect(index)
22 } else {
23 mc.Select(index)
24 }
25 }