Fyne API "binding.ExternalFloat"

binding.ExternalFloat


import "fyne.io/fyne/v2/data/binding"

Usage

type ExternalFloat

type ExternalFloat interface {
	Float
	Reload() error
}

ExternalFloat supports binding a float64 value to an external value.

Since: 2.0

func BindFloat

func BindFloat(v *float64) ExternalFloat

BindFloat returns a new bindable value that controls the contents of the provided float64 variable. If your code changes the content of the variable this refers to you should call Reload() to inform the bindings.

Since: 2.0