gui

package
v0.0.0-...-3973335 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNew

func CreateNew(name string) fyne.CanvasObject

func DecodeJSON

func DecodeJSON(r io.Reader) (fyne.CanvasObject, map[fyne.CanvasObject]map[string]string, error)

DecodeJSON returns a tree of `CanvasObject` elements from the provided JSON `Reader` and updates the metadata map to include any additional information.

func DecodeMap

func DecodeMap(m map[string]interface{}, meta map[fyne.CanvasObject]map[string]string) (fyne.CanvasObject, error)

DecodeMap returns a tree of `CanvasObject` elements from the provided JSON map and updates the metadata map to include any additional information.

func EditorFor

func EditorFor(o fyne.CanvasObject, props map[string]string) []*widget.FormItem

func EncodeJSON

func EncodeJSON(obj fyne.CanvasObject, meta map[fyne.CanvasObject]map[string]string, w io.Writer) error

EncodeJSON writes a JSON stream for the tree of `CanvasObject` elements provided. If an error occurs it will be returned, otherwise nil.

func EncodeMap

func EncodeMap(obj fyne.CanvasObject, meta map[fyne.CanvasObject]map[string]string) (interface{}, error)

EncodeMap returns a JSON map for the tree of `CanvasObject` elements provided, using additional metadata if required. If an error occurs it will be returned, otherwise nil.

func ExportGo

func ExportGo(obj fyne.CanvasObject, meta map[fyne.CanvasObject]map[string]string, w io.Writer) error

func ExportGoPreview

func ExportGoPreview(obj fyne.CanvasObject, meta map[fyne.CanvasObject]map[string]string, w io.Writer) error

func GoStringFor

func GoStringFor(o fyne.CanvasObject, props map[fyne.CanvasObject]map[string]string, defs map[string]string) string

func NameOf

func NameOf(o fyne.CanvasObject) string

func WidgetClassList

func WidgetClassList() []string

WidgetClassList returns the list of supported widget & container classes. These can be used for passing to `CreateNew` or `EditorFor`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL