Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolPreference ¶
Preference that is stored as a boolean key: the key of the preference, has to be unique across all preferences
func (BoolPreference) GetKey ¶
func (b BoolPreference) GetKey() string
type IntArrayPreference ¶
func (IntArrayPreference) GetKey ¶
func (i IntArrayPreference) GetKey() string
type IntPreference ¶
Preference that is stored as an int key: the key of the preference, has to be unique across all preferences
func (IntPreference) GetKey ¶
func (i IntPreference) GetKey() string
type PreferencesSynchronizer ¶
type PreferencesSynchronizer struct {
// contains filtered or unexported fields
}
PreferencesSynchronizer is used to sync preferences between bindings and the fyne preferences
func NewPreferencesSynchronizer ¶
func NewPreferencesSynchronizer(app fyne.App) *PreferencesSynchronizer
Creates a new preferences sync that can be used to sync preferences with the fyne preferences Remark: all bindings have to be initialized before calling this function
func (*PreferencesSynchronizer) AddBool ¶
func (p *PreferencesSynchronizer) AddBool(e BoolPreference) error
Adds a new bool preference to the synchronizer and sets the value to the current value of the preference or the fallback value if the preference is not set
func (*PreferencesSynchronizer) AddInt ¶
func (p *PreferencesSynchronizer) AddInt(e IntPreference) error
Adds a new int preference to the synchronizer and sets the value to the current value of the preference or the fallback value if the preference is not set
func (*PreferencesSynchronizer) AddIntArray ¶
func (p *PreferencesSynchronizer) AddIntArray(e IntArrayPreference) error
Adds a new int array preference to the synchronizer and sets the value to the current value of the preference or the fallback value if the preference is not set
func (*PreferencesSynchronizer) AddString ¶
func (p *PreferencesSynchronizer) AddString(e StringPreference) error
Adds a new string preference to the synchronizer and sets the value to the current value of the preference or the fallback value if the preference is not set
type StringPreference ¶
Preference that is stored as a string key: the key of the preference, has to be unique across all preferences
func (StringPreference) GetKey ¶
func (s StringPreference) GetKey() string