类型 ToggleGroupResult

API 文档由 Go 源码生成,内容为英文。

type ToggleGroupResult struct {
	// contains filtered or unexported fields
}

ToggleGroupResult is what painting a toggle group reports back.

方法

Clicked#

func (result ToggleGroupResult) Clicked() (ui.ID, bool)

Clicked returns the option whose click this paint is delivering, and false in every other paint (see ui.Canvas.Clicked). The application flips that option's Active, or moves the selection, itself.