类型 SwitchResult

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

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

SwitchResult is what painting reports back; Clicked is true in the event pass of a click on the control (see ui.Canvas.Clicked), so the code that declares it handles it.

方法

Clicked#

func (result SwitchResult) Clicked() bool

Clicked reports whether this paint is delivering a click on the control.