Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
func NewFlow ¶
func NewFlow(w fyne.Window) *Flow
NewFlow creates a new Flow. The generic type is the type for the flow keys. The Flow is associated with the given fyne.Window. Use the returned Flow to add FlowItems and to switch between them. Use the Close method to close the Flow. This will not close the associated fyne.Window!
func (*Flow) Close ¶
func (f *Flow) Close()
Close closes the Flow. This will not close the associated fyne.Window!
func (*Flow) GoTo ¶
GoTo sets the content of the window to the content of the FlowItem associated with the given key. If the key is not found, an error is returned.
func (*Flow) Set ¶
func (f *Flow) Set(key string, generator FlowItemGenerator) *FlowItem
Set adds a FlowItem to the Flow. If the key already exists, the FlowItem will be overwritten.
func (*Flow) UseStateInt ¶
UseStateInt returns a binding.Int that is associated with the given key. If the key does not exist, a new binding.Int is created with the given default value. If the key does exist, the default value is ignored. The returned binding.Int is shared between all FlowItems of the Flow.
func (*Flow) UseStateStr ¶
UseStateStr returns a binding.String that is associated with the given key. If the key does not exist, a new binding.String is created with the given default value. If the key does exist, the default value is ignored. The returned binding.String is shared between all FlowItems of the Flow.
type FlowItemGenerator ¶
type FlowItemGenerator func() fyne.CanvasObject