Fyne API "binding.ExternalInt"

binding.ExternalInt


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

Usage

type ExternalInt

type ExternalInt interface {
	Int
	Reload() error
}

ExternalInt supports binding a int value to an external value.

Since: 2.0

func BindInt

func BindInt(v *int) ExternalInt

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

Since: 2.0