Files
AynaLivePlayer/gui/component/check.go
2023-02-19 04:23:03 -08:00

12 lines
238 B
Go

package component
import "fyne.io/fyne/v2/widget"
func NewCheckOneWayBinding(name string, val *bool, checked bool) *widget.Check {
check := widget.NewCheck(name, func(b bool) {
*val = b
})
check.SetChecked(checked)
return check
}