Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MainWindow fyne.Window
MainWindow is held as global state to enable easy reference with dialogs.
Functions ¶
This section is empty.
Types ¶
type StringObserver ¶
type StringObserver func(appliedValue string)
StringObserver enables a dependent object to be updated in response to a state change.
type StringSubject ¶
type StringSubject struct {
// contains filtered or unexported fields
}
StringSubject encapsulates an independent value to be observed.
var Hash *StringSubject = NewStringSubject("")
Hash is the observable state of the bcrypt hash generated from the password.
var Pass *StringSubject = NewStringSubject("")
Pass is the observable state of the password entered by the user or generated.
func NewStringSubject ¶
func NewStringSubject(initialValue string) *StringSubject
NewStringSubject creates an initialized subject.
func (*StringSubject) Attach ¶
func (s *StringSubject) Attach(in StringObserver)
Attach notifies the subject of the observer.
func (*StringSubject) GetState ¶
func (s *StringSubject) GetState() string
GetState gets the current state of the subject.
func (*StringSubject) SetState ¶
func (s *StringSubject) SetState(newVal string)
SetState sets the subject state to a new value.
func (*StringSubject) SetStateNoBroadcast ¶
func (s *StringSubject) SetStateNoBroadcast(newVal string)
SetStateNoBroadcast sets the subject state, but does not broadcast the change.