Documentation ¶
Index ¶
- func AddWidget(name string, widg Widget)
- func ChangeSelected(newselected int)
- func GenWidgets()
- func Init(win *fyne.Window, pathfile string)
- func LoadLayout(p string, funcs map[string]func()) fyne.CanvasObject
- func Read()
- func Save()
- func UpdateUI()
- type Button
- type ButtonSerialized
- type Hbox
- type HboxSerialized
- type Label
- type LabelSerialized
- type QueuedWidget
- type Root
- type RootSerialized
- type Vbox
- type VboxSerialized
- type Widget
- type WidgetSerialized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeSelected ¶
func ChangeSelected(newselected int)
ChangeSelected changes the selected widget
func LoadLayout ¶
func LoadLayout(p string, funcs map[string]func()) fyne.CanvasObject
LoadLayout allows you to load a layout file and get a CanvasObject
Types ¶
type Button ¶
Button is a button
func (*Button) BuildTree ¶
func (b *Button) BuildTree() fyne.CanvasObject
BuildTree builds the tree view
func (*Button) Delete ¶
func (b *Button) Delete(deletefunc func())
Delete provides a function to give the DeleteFunc
func (*Button) Serialize ¶
func (b *Button) Serialize() WidgetSerialized
Serialize creats a serialized form with the same data
type ButtonSerialized ¶
ButtonSerialized is the serialized form of a button
func (*ButtonSerialized) Deserialize ¶
func (b *ButtonSerialized) Deserialize(deleteFunc func()) Widget
Deserialize creates a deserialized version of the widget
type Hbox ¶
Hbox is a fyne Hbox
func (*Hbox) BuildTree ¶
func (h *Hbox) BuildTree() fyne.CanvasObject
BuildTree builds the tree view
func (*Hbox) Delete ¶
func (h *Hbox) Delete(deletefunc func())
Delete provides a function to give the DeleteFunc
func (*Hbox) Serialize ¶
func (h *Hbox) Serialize() WidgetSerialized
Serialize creats a serialized form with the same data
type HboxSerialized ¶
type HboxSerialized struct { Title string Children []WidgetSerialized }
HboxSerialized a serialized vbox
func (*HboxSerialized) Deserialize ¶
func (h *HboxSerialized) Deserialize(deleteFunc func()) Widget
Deserialize creates a deserialized version of the widget
type Label ¶
Label is a label
func (*Label) BuildTree ¶
func (l *Label) BuildTree() fyne.CanvasObject
BuildTree builds the tree view
func (*Label) Delete ¶
func (l *Label) Delete(deletefunc func())
Delete provides a function to give the DeleteFunc
func (*Label) Serialize ¶
func (l *Label) Serialize() WidgetSerialized
Serialize creats a serialized form with the same data
type LabelSerialized ¶
LabelSerialized is the serialized form of a button
func (*LabelSerialized) Deserialize ¶
func (l *LabelSerialized) Deserialize(deleteFunc func()) Widget
Deserialize creates a deserialized version of the widget
type QueuedWidget ¶
QueuedWidget contains the data for a queued widget
type Root ¶
Root is the root element
func (*Root) BuildTree ¶
func (r *Root) BuildTree() fyne.CanvasObject
BuildTree builds the layout for the tree view
func (*Root) Serialize ¶
func (r *Root) Serialize() WidgetSerialized
type RootSerialized ¶
type RootSerialized struct {
Child WidgetSerialized
}
func (*RootSerialized) Deserialize ¶
func (r *RootSerialized) Deserialize(func()) Widget
type Vbox ¶
Vbox is a fyne VBox
func (*Vbox) BuildTree ¶
func (v *Vbox) BuildTree() fyne.CanvasObject
BuildTree builds the tree view
func (*Vbox) Delete ¶
func (v *Vbox) Delete(deletefunc func())
Delete provides a function to give the DeleteFunc
func (*Vbox) Serialize ¶
func (v *Vbox) Serialize() WidgetSerialized
Serialize creats a serialized form with the same data
type VboxSerialized ¶
type VboxSerialized struct { Title string Children []WidgetSerialized }
VboxSerialized a serialized vbox
func (*VboxSerialized) Deserialize ¶
func (v *VboxSerialized) Deserialize(deleteFunc func()) Widget
Deserialize creates a deserialized version of the widget
type Widget ¶
type Widget interface { Build() fyne.CanvasObject BuildTree() fyne.CanvasObject Delete(func()) Clone() Widget Serialize() WidgetSerialized }
Widget allows you to recursively build the layouts
type WidgetSerialized ¶
type WidgetSerialized interface {
Deserialize(func()) Widget
}
WidgetSerialized allows you to serialize the widgets