binding.Int
import "fyne.io/fyne/v2/data/binding"Usage
type Int
type Int = Item[int]Int supports binding a int value.
2.0func BindPreferenceInt
func BindPreferenceInt(key string, p fyne.Preferences) IntBindPreferenceInt returns a bindable int value that is managed by the application preferences. Changes to this value will be saved to application storage and when the app starts the previous values will be read.
2.0func FloatToInt
func FloatToInt(v Float) IntFloatToInt creates a binding that connects a Float data item to an Int.
2.5func NewInt
func NewInt() IntNewInt returns a bindable int value that is managed internally.
2.0func StringToInt
func StringToInt(str String) IntStringToInt creates a binding that connects a String data item to a Int. Changes to the String will be parsed and pushed to the Int if the parse was successful, and setting the Int update the String binding.
2.0func StringToIntWithFormat
func StringToIntWithFormat(str String, format string) IntStringToIntWithFormat creates a binding that connects a String data item to a Int and is presented using the specified format. Changes to the Int will be parsed and if the format matches and the parse is successful it will be pushed to the String. Setting the Int will push a formatted value into the String.
2.0