diff --git a/current/fyne_io_fyne_v2/generated.go b/current/fyne_io_fyne_v2/generated.go index 525558f..237f8d7 100644 --- a/current/fyne_io_fyne_v2/generated.go +++ b/current/fyne_io_fyne_v2/generated.go @@ -7,6 +7,7 @@ package fyne_io_fyne_v2 import ( + "embed" "errors" "fmt" "fyne.io/fyne/v2" @@ -20,6 +21,7 @@ import ( "fyne.io/fyne/v2/driver/desktop" "fyne.io/fyne/v2/driver/mobile" "fyne.io/fyne/v2/driver/software" + "fyne.io/fyne/v2/lang" "fyne.io/fyne/v2/layout" "fyne.io/fyne/v2/storage" "fyne.io/fyne/v2/storage/repository" @@ -115,7 +117,9 @@ var ryeStructNameLookup = map[string]string{ "fyne.io/fyne/v2.*ShortcutCut": "Go(*fyne.ShortcutCut)", "fyne.io/fyne/v2.*ShortcutHandler": "Go(*fyne.ShortcutHandler)", "fyne.io/fyne/v2.*ShortcutPaste": "Go(*fyne.ShortcutPaste)", + "fyne.io/fyne/v2.*ShortcutRedo": "Go(*fyne.ShortcutRedo)", "fyne.io/fyne/v2.*ShortcutSelectAll": "Go(*fyne.ShortcutSelectAll)", + "fyne.io/fyne/v2.*ShortcutUndo": "Go(*fyne.ShortcutUndo)", "fyne.io/fyne/v2.*Size": "Go(*fyne.Size)", "fyne.io/fyne/v2.*StaticResource": "Go(*fyne.StaticResource)", "fyne.io/fyne/v2.*TextStyle": "Go(*fyne.TextStyle)", @@ -130,8 +134,11 @@ var ryeStructNameLookup = map[string]string{ "fyne.io/fyne/v2/canvas.*Text": "Go(*canvas.Text)", "fyne.io/fyne/v2/container.*AppTabs": "Go(*container.AppTabs)", "fyne.io/fyne/v2/container.*DocTabs": "Go(*container.DocTabs)", + "fyne.io/fyne/v2/container.*InnerWindow": "Go(*container.InnerWindow)", + "fyne.io/fyne/v2/container.*MultipleWindows": "Go(*container.MultipleWindows)", "fyne.io/fyne/v2/container.*Split": "Go(*container.Split)", "fyne.io/fyne/v2/container.*TabItem": "Go(*container.TabItem)", + "fyne.io/fyne/v2/container.*ThemeOverride": "Go(*container.ThemeOverride)", "fyne.io/fyne/v2/dialog.*ColorPickerDialog": "Go(*dialog.ColorPickerDialog)", "fyne.io/fyne/v2/dialog.*ConfirmDialog": "Go(*dialog.ConfirmDialog)", "fyne.io/fyne/v2/dialog.*CustomDialog": "Go(*dialog.CustomDialog)", @@ -141,10 +148,16 @@ var ryeStructNameLookup = map[string]string{ "fyne.io/fyne/v2/dialog.*ProgressDialog": "Go(*dialog.ProgressDialog)", "fyne.io/fyne/v2/dialog.*ProgressInfiniteDialog": "Go(*dialog.ProgressInfiniteDialog)", "fyne.io/fyne/v2/driver.*AndroidContext": "Go(*fyne_driver.AndroidContext)", + "fyne.io/fyne/v2/driver.*AndroidWindowContext": "Go(*fyne_driver.AndroidWindowContext)", + "fyne.io/fyne/v2/driver.*MacWindowContext": "Go(*fyne_driver.MacWindowContext)", "fyne.io/fyne/v2/driver.*UnknownContext": "Go(*fyne_driver.UnknownContext)", + "fyne.io/fyne/v2/driver.*WaylandWindowContext": "Go(*fyne_driver.WaylandWindowContext)", + "fyne.io/fyne/v2/driver.*WindowsWindowContext": "Go(*fyne_driver.WindowsWindowContext)", + "fyne.io/fyne/v2/driver.*X11WindowContext": "Go(*fyne_driver.X11WindowContext)", "fyne.io/fyne/v2/driver/desktop.*CustomShortcut": "Go(*desktop.CustomShortcut)", "fyne.io/fyne/v2/driver/desktop.*MouseEvent": "Go(*desktop.MouseEvent)", "fyne.io/fyne/v2/driver/mobile.*TouchEvent": "Go(*mobile.TouchEvent)", + "fyne.io/fyne/v2/layout.*CustomPaddedLayout": "Go(*layout.CustomPaddedLayout)", "fyne.io/fyne/v2/layout.*Spacer": "Go(*layout.Spacer)", "fyne.io/fyne/v2/storage.*ExtensionFileFilter": "Go(*storage.ExtensionFileFilter)", "fyne.io/fyne/v2/storage.*MimeTypeFileFilter": "Go(*storage.MimeTypeFileFilter)", @@ -155,6 +168,7 @@ var ryeStructNameLookup = map[string]string{ "fyne.io/fyne/v2/theme.*ThemedResource": "Go(*theme.ThemedResource)", "fyne.io/fyne/v2/widget.*Accordion": "Go(*widget.Accordion)", "fyne.io/fyne/v2/widget.*AccordionItem": "Go(*widget.AccordionItem)", + "fyne.io/fyne/v2/widget.*Activity": "Go(*widget.Activity)", "fyne.io/fyne/v2/widget.*BaseWidget": "Go(*widget.BaseWidget)", "fyne.io/fyne/v2/widget.*Button": "Go(*widget.Button)", "fyne.io/fyne/v2/widget.*Card": "Go(*widget.Card)", @@ -203,7 +217,6 @@ var ryeStructNameLookup = map[string]string{ "io.*PipeReader": "Go(*io.PipeReader)", "io.*PipeWriter": "Go(*io.PipeWriter)", "io.*SectionReader": "Go(*io.SectionReader)", - "io/fs.*PathError": "Go(*fs.PathError)", "sync.*Cond": "Go(*sync.Cond)", "sync.*Map": "Go(*sync.Map)", "sync.*Mutex": "Go(*sync.Mutex)", @@ -211,7 +224,6 @@ var ryeStructNameLookup = map[string]string{ "sync.*Pool": "Go(*sync.Pool)", "sync.*RWMutex": "Go(*sync.RWMutex)", "sync.*WaitGroup": "Go(*sync.WaitGroup)", - "sync/atomic.*Value": "Go(*atomic.Value)", } type iface_binding_Bool struct { @@ -225,12 +237,15 @@ type iface_binding_Bool struct { func (self *iface_binding_Bool) Get() (bool, error) { return self.fn_Get(self.self) } + func (self *iface_binding_Bool) Set(arg0 bool) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_Bool) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Bool) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -421,6 +436,7 @@ type iface_binding_BoolList struct { fn_Get func(self env.RyeCtx) ([]bool, error) fn_GetValue func(self env.RyeCtx, arg0 int) (bool, error) fn_Prepend func(self env.RyeCtx, arg0 bool) error + fn_Remove func(self env.RyeCtx, arg0 bool) error fn_Set func(self env.RyeCtx, arg0 []bool) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 bool) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -432,30 +448,43 @@ type iface_binding_BoolList struct { func (self *iface_binding_BoolList) Append(arg0 bool) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_BoolList) Get() ([]bool, error) { return self.fn_Get(self.self) } + func (self *iface_binding_BoolList) GetValue(arg0 int) (bool, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_BoolList) Prepend(arg0 bool) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_BoolList) Remove(arg0 bool) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_BoolList) Set(arg0 []bool) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_BoolList) SetValue(arg0 int, arg1 bool) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_BoolList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_BoolList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_BoolList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_BoolList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -562,8 +591,9 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis case env.Block: res0 = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.Integer); ok { - res0[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -747,11 +777,57 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis default: return nil, errors.New("context to binding.BoolList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.BoolList: expected context to have function Set") + return nil, errors.New("context to binding.BoolList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.BoolList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 bool) error { + var farg0Val env.Object + farg0Val = *env.NewInteger(boolToInt64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BoolList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BoolList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.BoolList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.BoolList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -799,11 +875,11 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis default: return nil, errors.New("context to binding.BoolList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.BoolList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.BoolList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -846,11 +922,11 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis default: return nil, errors.New("context to binding.BoolList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.BoolList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -957,11 +1033,11 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis default: return nil, errors.New("context to binding.BoolList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.BoolList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.BoolList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -987,11 +1063,11 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis default: return nil, errors.New("context to binding.BoolList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.BoolList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1006,11 +1082,11 @@ func ctxTo_binding_BoolList(ps *env.ProgramState, v env.RyeCtx) (binding.BoolLis default: return nil, errors.New("context to binding.BoolList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.BoolList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1034,6 +1110,7 @@ type iface_binding_BoolTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]bool, error) fn_GetValue func(self env.RyeCtx, arg0 string) (bool, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 bool) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]bool) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 bool) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -1045,30 +1122,43 @@ type iface_binding_BoolTree struct { func (self *iface_binding_BoolTree) Append(arg0 string, arg1 string, arg2 bool) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_BoolTree) Get() (map[string][]string, map[string]bool, error) { return self.fn_Get(self.self) } + func (self *iface_binding_BoolTree) GetValue(arg0 string) (bool, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_BoolTree) Prepend(arg0 string, arg1 string, arg2 bool) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_BoolTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_BoolTree) Set(arg0 map[string][]string, arg1 map[string]bool) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_BoolTree) SetValue(arg0 string, arg1 bool) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_BoolTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_BoolTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_BoolTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_BoolTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -1204,8 +1294,9 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -1247,8 +1338,9 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -1533,11 +1625,57 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre default: return nil, errors.New("context to binding.BoolTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.BoolTree: expected context to have function Set") + return nil, errors.New("context to binding.BoolTree: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.BoolTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BoolTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BoolTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.BoolTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.BoolTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.BoolTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1602,11 +1740,11 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre default: return nil, errors.New("context to binding.BoolTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.BoolTree: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.BoolTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1649,11 +1787,11 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre default: return nil, errors.New("context to binding.BoolTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.BoolTree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1760,11 +1898,11 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre default: return nil, errors.New("context to binding.BoolTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.BoolTree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1780,8 +1918,9 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -1817,11 +1956,11 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre default: return nil, errors.New("context to binding.BoolTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.BoolTree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1836,11 +1975,11 @@ func ctxTo_binding_BoolTree(ps *env.ProgramState, v env.RyeCtx) (binding.BoolTre default: return nil, errors.New("context to binding.BoolTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.BoolTree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BoolTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -1869,12 +2008,15 @@ type iface_binding_Bytes struct { func (self *iface_binding_Bytes) Get() ([]byte, error) { return self.fn_Get(self.self) } + func (self *iface_binding_Bytes) Set(arg0 []byte) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_Bytes) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Bytes) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -1935,23 +2077,13 @@ func ctxTo_binding_Bytes(ps *env.ProgramState, v env.RyeCtx) (binding.Bytes, err case env.Block: res0 = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.Bytes: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &res0[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.Bytes: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.Bytes: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -2022,7 +2154,7 @@ func ctxTo_binding_Bytes(ps *env.ProgramState, v env.RyeCtx) (binding.Bytes, err { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -2107,6 +2239,7 @@ type iface_binding_BytesList struct { fn_Get func(self env.RyeCtx) ([][]byte, error) fn_GetValue func(self env.RyeCtx, arg0 int) ([]byte, error) fn_Prepend func(self env.RyeCtx, arg0 []byte) error + fn_Remove func(self env.RyeCtx, arg0 []byte) error fn_Set func(self env.RyeCtx, arg0 [][]byte) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 []byte) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -2118,30 +2251,43 @@ type iface_binding_BytesList struct { func (self *iface_binding_BytesList) Append(arg0 []byte) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_BytesList) Get() ([][]byte, error) { return self.fn_Get(self.self) } + func (self *iface_binding_BytesList) GetValue(arg0 int) ([]byte, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_BytesList) Prepend(arg0 []byte) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_BytesList) Remove(arg0 []byte) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_BytesList) Set(arg0 [][]byte) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_BytesList) SetValue(arg0 int, arg1 []byte) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_BytesList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_BytesList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_BytesList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_BytesList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -2178,7 +2324,7 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -2254,27 +2400,18 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL case env.Block: res0 = make([][]byte, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.Block: - res0[i] = make([]byte, len(v.Series.S)) + (*iv) = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i][i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesList: arg 0: callback result: "+"block item: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &(*iv)[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesList: arg 0: callback result: "+"block item: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.BytesList: arg 0: callback result: "+"block item: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -2291,7 +2428,7 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL ) return res0, res1 } - res0[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -2392,23 +2529,13 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL case env.Block: res0 = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesList: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &res0[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesList: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.BytesList: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -2479,7 +2606,7 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -2517,11 +2644,63 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL default: return nil, errors.New("context to binding.BytesList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.BytesList: expected context to have function Set") + return nil, errors.New("context to binding.BytesList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.BytesList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 []byte) error { + var farg0Val env.Object + { + items := make([]env.Object, len(farg0)) + for i, it := range farg0 { + items[i] = *env.NewInteger(int64(it)) + } + farg0Val = *env.NewBlock(*env.NewTSeries(items)) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BytesList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BytesList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.BytesList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.BytesList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -2534,7 +2713,7 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL { items := make([]env.Object, len(it)) for i, it := range it { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } items[i] = *env.NewBlock(*env.NewTSeries(items)) } @@ -2575,11 +2754,11 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL default: return nil, errors.New("context to binding.BytesList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.BytesList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.BytesList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -2590,7 +2769,7 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL { items := make([]env.Object, len(farg1)) for i, it := range farg1 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg1Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -2628,11 +2807,11 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL default: return nil, errors.New("context to binding.BytesList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.BytesList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -2739,11 +2918,11 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL default: return nil, errors.New("context to binding.BytesList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.BytesList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.BytesList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -2769,11 +2948,11 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL default: return nil, errors.New("context to binding.BytesList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.BytesList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -2788,11 +2967,11 @@ func ctxTo_binding_BytesList(ps *env.ProgramState, v env.RyeCtx) (binding.BytesL default: return nil, errors.New("context to binding.BytesList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.BytesList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -2816,6 +2995,7 @@ type iface_binding_BytesTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string][]byte, error) fn_GetValue func(self env.RyeCtx, arg0 string) ([]byte, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 []byte) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string][]byte) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 []byte) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -2827,30 +3007,43 @@ type iface_binding_BytesTree struct { func (self *iface_binding_BytesTree) Append(arg0 string, arg1 string, arg2 []byte) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_BytesTree) Get() (map[string][]string, map[string][]byte, error) { return self.fn_Get(self.self) } + func (self *iface_binding_BytesTree) GetValue(arg0 string) ([]byte, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_BytesTree) Prepend(arg0 string, arg1 string, arg2 []byte) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_BytesTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_BytesTree) Set(arg0 map[string][]string, arg1 map[string][]byte) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_BytesTree) SetValue(arg0 string, arg1 []byte) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_BytesTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_BytesTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_BytesTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_BytesTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -2889,7 +3082,7 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT { items := make([]env.Object, len(farg2)) for i, it := range farg2 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg2Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -2992,8 +3185,9 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -3035,8 +3229,9 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -3119,23 +3314,13 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1, res2 - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.BytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -3173,23 +3358,13 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1, res2 - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.BytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -3308,23 +3483,13 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT case env.Block: res0 = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesTree: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &res0[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.BytesTree: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.BytesTree: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -3397,7 +3562,7 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT { items := make([]env.Object, len(farg2)) for i, it := range farg2 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg2Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -3435,11 +3600,57 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT default: return nil, errors.New("context to binding.BytesTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.BytesTree: expected context to have function Set") + return nil, errors.New("context to binding.BytesTree: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.BytesTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BytesTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.BytesTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.BytesTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.BytesTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.BytesTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -3468,7 +3679,7 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT { items := make([]env.Object, len(mVal)) for i, it := range mVal { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } dVal = *env.NewBlock(*env.NewTSeries(items)) } @@ -3510,11 +3721,11 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT default: return nil, errors.New("context to binding.BytesTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.BytesTree: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.BytesTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -3525,7 +3736,7 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT { items := make([]env.Object, len(farg1)) for i, it := range farg1 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg1Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -3563,11 +3774,11 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT default: return nil, errors.New("context to binding.BytesTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.BytesTree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -3674,11 +3885,11 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT default: return nil, errors.New("context to binding.BytesTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.BytesTree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -3694,8 +3905,9 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -3731,11 +3943,11 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT default: return nil, errors.New("context to binding.BytesTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.BytesTree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -3750,11 +3962,11 @@ func ctxTo_binding_BytesTree(ps *env.ProgramState, v env.RyeCtx) (binding.BytesT default: return nil, errors.New("context to binding.BytesTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.BytesTree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.BytesTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -3781,6 +3993,7 @@ type iface_binding_DataItem struct { func (self *iface_binding_DataItem) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_DataItem) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -3855,12 +4068,15 @@ type iface_binding_DataList struct { func (self *iface_binding_DataList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_DataList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_DataList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_DataList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -4123,12 +4339,15 @@ type iface_binding_DataMap struct { func (self *iface_binding_DataMap) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_DataMap) Keys() []string { return self.fn_Keys(self.self) } + func (self *iface_binding_DataMap) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_DataMap) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -4280,8 +4499,9 @@ func ctxTo_binding_DataMap(ps *env.ProgramState, v env.RyeCtx) (binding.DataMap, case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -4369,12 +4589,15 @@ type iface_binding_DataTree struct { func (self *iface_binding_DataTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_DataTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_DataTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_DataTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -4528,8 +4751,9 @@ func ctxTo_binding_DataTree(ps *env.ProgramState, v env.RyeCtx) (binding.DataTre case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -4618,15 +4842,19 @@ type iface_binding_ExternalBool struct { func (self *iface_binding_ExternalBool) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalBool) Get() (bool, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalBool) Set(arg0 bool) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalBool) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalBool) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -4862,6 +5090,7 @@ type iface_binding_ExternalBoolList struct { fn_Get func(self env.RyeCtx) ([]bool, error) fn_GetValue func(self env.RyeCtx, arg0 int) (bool, error) fn_Prepend func(self env.RyeCtx, arg0 bool) error + fn_Remove func(self env.RyeCtx, arg0 bool) error fn_Set func(self env.RyeCtx, arg0 []bool) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 bool) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -4873,33 +5102,47 @@ type iface_binding_ExternalBoolList struct { func (self *iface_binding_ExternalBoolList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalBoolList) Append(arg0 bool) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalBoolList) Get() ([]bool, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalBoolList) GetValue(arg0 int) (bool, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalBoolList) Prepend(arg0 bool) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalBoolList) Remove(arg0 bool) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalBoolList) Set(arg0 []bool) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalBoolList) SetValue(arg0 int, arg1 bool) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalBoolList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalBoolList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalBoolList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalBoolList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -5050,8 +5293,9 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: res0 = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.Integer); ok { - res0[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -5235,11 +5479,57 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalBoolList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalBoolList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalBoolList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 bool) error { + var farg0Val env.Object + farg0Val = *env.NewInteger(boolToInt64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBoolList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBoolList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalBoolList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalBoolList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -5287,11 +5577,11 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalBoolList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalBoolList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -5334,11 +5624,11 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalBoolList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -5445,11 +5735,11 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalBoolList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalBoolList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -5475,11 +5765,11 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalBoolList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -5494,11 +5784,11 @@ func ctxTo_binding_ExternalBoolList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalBoolList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -5523,6 +5813,7 @@ type iface_binding_ExternalBoolTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]bool, error) fn_GetValue func(self env.RyeCtx, arg0 string) (bool, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 bool) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]bool) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 bool) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -5534,33 +5825,47 @@ type iface_binding_ExternalBoolTree struct { func (self *iface_binding_ExternalBoolTree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalBoolTree) Append(arg0 string, arg1 string, arg2 bool) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalBoolTree) Get() (map[string][]string, map[string]bool, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalBoolTree) GetValue(arg0 string) (bool, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalBoolTree) Prepend(arg0 string, arg1 string, arg2 bool) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalBoolTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalBoolTree) Set(arg0 map[string][]string, arg1 map[string]bool) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalBoolTree) SetValue(arg0 string, arg1 bool) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalBoolTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalBoolTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalBoolTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalBoolTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -5740,8 +6045,9 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -5783,8 +6089,9 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -6069,44 +6376,90 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function Remove") } switch fn := ctxObj5.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.ExternalBoolTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalBoolTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]bool) error { - var farg0Val, farg1Val env.Object - { - data := make(map[string]any, len(farg0)) - for mKey, mVal := range farg0 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewString(it) - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg0Val = *env.NewDict(data) - } - { - data := make(map[string]any, len(farg1)) - for mKey, mVal := range farg1 { - var dVal env.Object - dVal = *env.NewInteger(boolToInt64(mVal)) - data[mKey] = dVal - } - farg1Val = *env.NewDict(data) - } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBoolTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBoolTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalBoolTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalBoolTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]bool) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = *env.NewInteger(boolToInt64(mVal)) + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) var res error switch v := ps.Res.(type) { case env.String: @@ -6138,11 +6491,11 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalBoolTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -6185,11 +6538,11 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -6296,11 +6649,11 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -6316,8 +6669,9 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -6353,11 +6707,11 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -6372,11 +6726,11 @@ func ctxTo_binding_ExternalBoolTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalBoolTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalBoolTree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBoolTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -6406,15 +6760,19 @@ type iface_binding_ExternalBytes struct { func (self *iface_binding_ExternalBytes) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalBytes) Get() ([]byte, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalBytes) Set(arg0 []byte) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalBytes) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalBytes) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -6519,23 +6877,13 @@ func ctxTo_binding_ExternalBytes(ps *env.ProgramState, v env.RyeCtx) (binding.Ex case env.Block: res0 = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytes: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &res0[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytes: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalBytes: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -6606,7 +6954,7 @@ func ctxTo_binding_ExternalBytes(ps *env.ProgramState, v env.RyeCtx) (binding.Ex { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -6692,6 +7040,7 @@ type iface_binding_ExternalBytesList struct { fn_Get func(self env.RyeCtx) ([][]byte, error) fn_GetValue func(self env.RyeCtx, arg0 int) ([]byte, error) fn_Prepend func(self env.RyeCtx, arg0 []byte) error + fn_Remove func(self env.RyeCtx, arg0 []byte) error fn_Set func(self env.RyeCtx, arg0 [][]byte) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 []byte) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -6703,33 +7052,47 @@ type iface_binding_ExternalBytesList struct { func (self *iface_binding_ExternalBytesList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalBytesList) Append(arg0 []byte) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalBytesList) Get() ([][]byte, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalBytesList) GetValue(arg0 int) ([]byte, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalBytesList) Prepend(arg0 []byte) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalBytesList) Remove(arg0 []byte) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalBytesList) Set(arg0 [][]byte) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalBytesList) SetValue(arg0 int, arg1 []byte) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalBytesList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalBytesList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalBytesList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalBytesList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -6810,7 +7173,7 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -6886,27 +7249,18 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: res0 = make([][]byte, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.Block: - res0[i] = make([]byte, len(v.Series.S)) + (*iv) = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i][i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesList: arg 0: callback result: "+"block item: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &(*iv)[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesList: arg 0: callback result: "+"block item: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalBytesList: arg 0: callback result: "+"block item: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -6923,7 +7277,7 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin ) return res0, res1 } - res0[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -7024,23 +7378,13 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: res0 = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesList: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &res0[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesList: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalBytesList: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -7111,7 +7455,7 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -7149,11 +7493,63 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalBytesList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalBytesList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalBytesList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 []byte) error { + var farg0Val env.Object + { + items := make([]env.Object, len(farg0)) + for i, it := range farg0 { + items[i] = *env.NewInteger(int64(it)) + } + farg0Val = *env.NewBlock(*env.NewTSeries(items)) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBytesList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBytesList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalBytesList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalBytesList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -7166,7 +7562,7 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(it)) for i, it := range it { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } items[i] = *env.NewBlock(*env.NewTSeries(items)) } @@ -7207,11 +7603,11 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalBytesList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalBytesList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -7222,7 +7618,7 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(farg1)) for i, it := range farg1 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg1Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -7260,11 +7656,11 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalBytesList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -7371,11 +7767,11 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalBytesList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalBytesList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -7401,11 +7797,11 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalBytesList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -7420,11 +7816,11 @@ func ctxTo_binding_ExternalBytesList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalBytesList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -7449,6 +7845,7 @@ type iface_binding_ExternalBytesTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string][]byte, error) fn_GetValue func(self env.RyeCtx, arg0 string) ([]byte, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 []byte) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string][]byte) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 []byte) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -7460,33 +7857,47 @@ type iface_binding_ExternalBytesTree struct { func (self *iface_binding_ExternalBytesTree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalBytesTree) Append(arg0 string, arg1 string, arg2 []byte) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalBytesTree) Get() (map[string][]string, map[string][]byte, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalBytesTree) GetValue(arg0 string) ([]byte, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalBytesTree) Prepend(arg0 string, arg1 string, arg2 []byte) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalBytesTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalBytesTree) Set(arg0 map[string][]string, arg1 map[string][]byte) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalBytesTree) SetValue(arg0 string, arg1 []byte) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalBytesTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalBytesTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalBytesTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalBytesTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -7569,7 +7980,7 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(farg2)) for i, it := range farg2 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg2Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -7672,8 +8083,9 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -7715,8 +8127,9 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -7799,23 +8212,13 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1, res2 - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalBytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -7853,23 +8256,13 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1, res2 - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalBytesTree: arg 0: callback result: "+"map value: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -7988,23 +8381,13 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: res0 = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res0[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesTree: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res0, res1 - } - default: + iv := &res0[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalBytesTree: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalBytesTree: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -8077,7 +8460,7 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(farg2)) for i, it := range farg2 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg2Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -8115,50 +8498,96 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function Remove") } switch fn := ctxObj5.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.ExternalBytesTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalBytesTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string][]byte) error { - var farg0Val, farg1Val env.Object - { - data := make(map[string]any, len(farg0)) - for mKey, mVal := range farg0 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewString(it) - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg0Val = *env.NewDict(data) - } - { - data := make(map[string]any, len(farg1)) - for mKey, mVal := range farg1 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg1Val = *env.NewDict(data) - } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBytesTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalBytesTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalBytesTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalBytesTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string][]byte) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewInteger(int64(it)) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) var res error switch v := ps.Res.(type) { case env.String: @@ -8190,11 +8619,11 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalBytesTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -8205,7 +8634,7 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin { items := make([]env.Object, len(farg1)) for i, it := range farg1 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg1Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -8243,11 +8672,11 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -8354,11 +8783,11 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -8374,8 +8803,9 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -8411,11 +8841,11 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -8430,11 +8860,11 @@ func ctxTo_binding_ExternalBytesTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalBytesTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalBytesTree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalBytesTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -8464,15 +8894,19 @@ type iface_binding_ExternalFloat struct { func (self *iface_binding_ExternalFloat) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalFloat) Get() (float64, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalFloat) Set(arg0 float64) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalFloat) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalFloat) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -8708,6 +9142,7 @@ type iface_binding_ExternalFloatList struct { fn_Get func(self env.RyeCtx) ([]float64, error) fn_GetValue func(self env.RyeCtx, arg0 int) (float64, error) fn_Prepend func(self env.RyeCtx, arg0 float64) error + fn_Remove func(self env.RyeCtx, arg0 float64) error fn_Set func(self env.RyeCtx, arg0 []float64) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 float64) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -8719,33 +9154,47 @@ type iface_binding_ExternalFloatList struct { func (self *iface_binding_ExternalFloatList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalFloatList) Append(arg0 float64) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalFloatList) Get() ([]float64, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalFloatList) GetValue(arg0 int) (float64, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalFloatList) Prepend(arg0 float64) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalFloatList) Remove(arg0 float64) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalFloatList) Set(arg0 []float64) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalFloatList) SetValue(arg0 int, arg1 float64) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalFloatList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalFloatList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalFloatList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalFloatList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -8896,8 +9345,9 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: res0 = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.Decimal); ok { - res0[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -9081,11 +9531,57 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalFloatList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalFloatList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalFloatList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 float64) error { + var farg0Val env.Object + farg0Val = *env.NewDecimal(float64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalFloatList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalFloatList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalFloatList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalFloatList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -9133,11 +9629,11 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalFloatList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalFloatList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -9180,11 +9676,11 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalFloatList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -9291,11 +9787,11 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalFloatList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalFloatList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -9321,11 +9817,11 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalFloatList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -9340,11 +9836,11 @@ func ctxTo_binding_ExternalFloatList(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalFloatList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -9369,6 +9865,7 @@ type iface_binding_ExternalFloatTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]float64, error) fn_GetValue func(self env.RyeCtx, arg0 string) (float64, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 float64) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]float64) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 float64) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -9380,33 +9877,47 @@ type iface_binding_ExternalFloatTree struct { func (self *iface_binding_ExternalFloatTree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalFloatTree) Append(arg0 string, arg1 string, arg2 float64) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalFloatTree) Get() (map[string][]string, map[string]float64, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalFloatTree) GetValue(arg0 string) (float64, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalFloatTree) Prepend(arg0 string, arg1 string, arg2 float64) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalFloatTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalFloatTree) Set(arg0 map[string][]string, arg1 map[string]float64) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalFloatTree) SetValue(arg0 string, arg1 float64) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalFloatTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalFloatTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalFloatTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalFloatTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -9586,8 +10097,9 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -9629,8 +10141,9 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -9915,91 +10428,137 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function Remove") } switch fn := ctxObj5.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.ExternalFloatTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) - } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]float64) error { - var farg0Val, farg1Val env.Object - { - data := make(map[string]any, len(farg0)) - for mKey, mVal := range farg0 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewString(it) - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg0Val = *env.NewDict(data) - } - { - data := make(map[string]any, len(farg1)) - for mKey, mVal := range farg1 { - var dVal env.Object - dVal = *env.NewDecimal(float64(mVal)) - data[mKey] = dVal - } - farg1Val = *env.NewDict(data) - } - actualFn := fn - _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) - var res error - switch v := ps.Res.(type) { - case env.String: - res = errors.New(v.Value) - case env.Error: - res = errors.New(v.Print(*ps.Idx)) - case env.Integer: - if v.Value != 0 { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalFloatTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res - } - res = nil - default: - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalFloatTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res - } - return res - } - default: - return nil, errors.New("context to binding.ExternalFloatTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) - } - ctxObj6, ok := wordToObj["set-value"] - if !ok { - return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function SetValue") - } - switch fn := ctxObj6.(type) { - case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.ExternalFloatTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalFloatTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 float64) error { - var farg0Val, farg1Val env.Object + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object farg0Val = *env.NewString(farg0) - farg1Val = *env.NewDecimal(float64(farg1)) actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalFloatTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalFloatTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalFloatTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalFloatTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]float64) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = *env.NewDecimal(float64(mVal)) + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalFloatTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalFloatTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalFloatTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj7, ok := wordToObj["set-value"] + if !ok { + return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function SetValue") + } + switch fn := ctxObj7.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalFloatTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 float64) error { + var farg0Val, farg1Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewDecimal(float64(farg1)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) var res error switch v := ps.Res.(type) { case env.String: @@ -10031,11 +10590,11 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -10142,11 +10701,11 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -10162,8 +10721,9 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -10199,11 +10759,11 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -10218,11 +10778,11 @@ func ctxTo_binding_ExternalFloatTree(ps *env.ProgramState, v env.RyeCtx) (bindin default: return nil, errors.New("context to binding.ExternalFloatTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalFloatTree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalFloatTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -10252,15 +10812,19 @@ type iface_binding_ExternalInt struct { func (self *iface_binding_ExternalInt) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalInt) Get() (int, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalInt) Set(arg0 int) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalInt) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalInt) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -10496,6 +11060,7 @@ type iface_binding_ExternalIntList struct { fn_Get func(self env.RyeCtx) ([]int, error) fn_GetValue func(self env.RyeCtx, arg0 int) (int, error) fn_Prepend func(self env.RyeCtx, arg0 int) error + fn_Remove func(self env.RyeCtx, arg0 int) error fn_Set func(self env.RyeCtx, arg0 []int) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 int) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -10507,33 +11072,47 @@ type iface_binding_ExternalIntList struct { func (self *iface_binding_ExternalIntList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalIntList) Append(arg0 int) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalIntList) Get() ([]int, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalIntList) GetValue(arg0 int) (int, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalIntList) Prepend(arg0 int) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalIntList) Remove(arg0 int) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalIntList) Set(arg0 []int) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalIntList) SetValue(arg0 int, arg1 int) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalIntList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalIntList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalIntList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalIntList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -10684,8 +11263,9 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: res0 = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.Integer); ok { - res0[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -10869,11 +11449,57 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalIntList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalIntList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalIntList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 int) error { + var farg0Val env.Object + farg0Val = *env.NewInteger(int64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalIntList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalIntList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalIntList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalIntList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -10921,11 +11547,11 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalIntList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalIntList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -10968,11 +11594,11 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalIntList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11079,11 +11705,11 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalIntList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalIntList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11109,11 +11735,11 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalIntList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11128,11 +11754,11 @@ func ctxTo_binding_ExternalIntList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalIntList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11157,6 +11783,7 @@ type iface_binding_ExternalIntTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]int, error) fn_GetValue func(self env.RyeCtx, arg0 string) (int, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 int) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]int) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 int) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -11168,33 +11795,47 @@ type iface_binding_ExternalIntTree struct { func (self *iface_binding_ExternalIntTree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalIntTree) Append(arg0 string, arg1 string, arg2 int) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalIntTree) Get() (map[string][]string, map[string]int, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalIntTree) GetValue(arg0 string) (int, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalIntTree) Prepend(arg0 string, arg1 string, arg2 int) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalIntTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalIntTree) Set(arg0 map[string][]string, arg1 map[string]int) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalIntTree) SetValue(arg0 string, arg1 int) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalIntTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalIntTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalIntTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalIntTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -11374,8 +12015,9 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -11417,8 +12059,9 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -11703,11 +12346,57 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalIntTree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalIntTree: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalIntTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalIntTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalIntTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalIntTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalIntTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalIntTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11772,11 +12461,11 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalIntTree: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalIntTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11819,11 +12508,11 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalIntTree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11930,11 +12619,11 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalIntTree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -11950,8 +12639,9 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -11987,11 +12677,11 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalIntTree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12006,11 +12696,11 @@ func ctxTo_binding_ExternalIntTree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalIntTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalIntTree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalIntTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12040,15 +12730,19 @@ type iface_binding_ExternalRune struct { func (self *iface_binding_ExternalRune) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalRune) Get() (rune, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalRune) Set(arg0 rune) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalRune) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalRune) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -12295,6 +12989,7 @@ type iface_binding_ExternalRuneList struct { fn_Get func(self env.RyeCtx) ([]rune, error) fn_GetValue func(self env.RyeCtx, arg0 int) (rune, error) fn_Prepend func(self env.RyeCtx, arg0 rune) error + fn_Remove func(self env.RyeCtx, arg0 rune) error fn_Set func(self env.RyeCtx, arg0 []rune) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 rune) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -12306,33 +13001,47 @@ type iface_binding_ExternalRuneList struct { func (self *iface_binding_ExternalRuneList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalRuneList) Append(arg0 rune) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalRuneList) Get() ([]rune, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalRuneList) GetValue(arg0 int) (rune, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalRuneList) Prepend(arg0 rune) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalRuneList) Remove(arg0 rune) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalRuneList) Set(arg0 []rune) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalRuneList) SetValue(arg0 int, arg1 rune) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalRuneList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalRuneList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalRuneList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalRuneList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -12483,10 +13192,11 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: res0 = make([]rune, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(rune); ok { - res0[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -12690,11 +13400,57 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalRuneList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalRuneList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalRuneList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 rune) error { + var farg0Val env.Object + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(rune)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalRuneList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalRuneList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalRuneList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalRuneList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12742,11 +13498,11 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalRuneList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalRuneList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12789,11 +13545,11 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalRuneList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12900,11 +13656,11 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalRuneList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalRuneList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12930,11 +13686,11 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalRuneList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12949,11 +13705,11 @@ func ctxTo_binding_ExternalRuneList(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalRuneList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -12978,6 +13734,7 @@ type iface_binding_ExternalRuneTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]rune, error) fn_GetValue func(self env.RyeCtx, arg0 string) (rune, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 rune) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]rune) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 rune) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -12989,33 +13746,47 @@ type iface_binding_ExternalRuneTree struct { func (self *iface_binding_ExternalRuneTree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalRuneTree) Append(arg0 string, arg1 string, arg2 rune) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalRuneTree) Get() (map[string][]string, map[string]rune, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalRuneTree) GetValue(arg0 string) (rune, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalRuneTree) Prepend(arg0 string, arg1 string, arg2 rune) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalRuneTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalRuneTree) Set(arg0 map[string][]string, arg1 map[string]rune) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalRuneTree) SetValue(arg0 string, arg1 rune) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalRuneTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalRuneTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalRuneTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalRuneTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -13195,8 +13966,9 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -13238,8 +14010,9 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -13557,11 +14330,57 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalRuneTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalRuneTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalRuneTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalRuneTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalRuneTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -13626,11 +14445,11 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalRuneTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -13673,11 +14492,11 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -13784,11 +14603,11 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -13804,8 +14623,9 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -13841,11 +14661,11 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -13860,11 +14680,11 @@ func ctxTo_binding_ExternalRuneTree(ps *env.ProgramState, v env.RyeCtx) (binding default: return nil, errors.New("context to binding.ExternalRuneTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalRuneTree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalRuneTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -13894,15 +14714,19 @@ type iface_binding_ExternalString struct { func (self *iface_binding_ExternalString) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalString) Get() (string, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalString) Set(arg0 string) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalString) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalString) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -14138,6 +14962,7 @@ type iface_binding_ExternalStringList struct { fn_Get func(self env.RyeCtx) ([]string, error) fn_GetValue func(self env.RyeCtx, arg0 int) (string, error) fn_Prepend func(self env.RyeCtx, arg0 string) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 []string) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 string) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -14149,33 +14974,47 @@ type iface_binding_ExternalStringList struct { func (self *iface_binding_ExternalStringList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalStringList) Append(arg0 string) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalStringList) Get() ([]string, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalStringList) GetValue(arg0 int) (string, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalStringList) Prepend(arg0 string) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalStringList) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalStringList) Set(arg0 []string) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalStringList) SetValue(arg0 int, arg1 string) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalStringList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalStringList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalStringList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalStringList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -14326,8 +15165,9 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi case env.Block: res0 = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.String); ok { - res0[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -14511,11 +15351,57 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalStringList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalStringList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalStringList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalStringList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalStringList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalStringList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalStringList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -14563,11 +15449,11 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalStringList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalStringList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -14610,11 +15496,11 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalStringList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -14721,11 +15607,11 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalStringList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalStringList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -14751,11 +15637,11 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalStringList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -14770,11 +15656,11 @@ func ctxTo_binding_ExternalStringList(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalStringList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -14799,6 +15685,7 @@ type iface_binding_ExternalStringTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]string, error) fn_GetValue func(self env.RyeCtx, arg0 string) (string, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 string) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]string) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 string) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -14810,33 +15697,47 @@ type iface_binding_ExternalStringTree struct { func (self *iface_binding_ExternalStringTree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalStringTree) Append(arg0 string, arg1 string, arg2 string) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalStringTree) Get() (map[string][]string, map[string]string, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalStringTree) GetValue(arg0 string) (string, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalStringTree) Prepend(arg0 string, arg1 string, arg2 string) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalStringTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalStringTree) Set(arg0 map[string][]string, arg1 map[string]string) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalStringTree) SetValue(arg0 string, arg1 string) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalStringTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalStringTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalStringTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalStringTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -15016,8 +15917,9 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -15059,8 +15961,9 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -15345,44 +16248,90 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalStringTree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalStringTree: expected context to have function Remove") } switch fn := ctxObj5.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.ExternalStringTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalStringTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]string) error { - var farg0Val, farg1Val env.Object - { - data := make(map[string]any, len(farg0)) - for mKey, mVal := range farg0 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewString(it) - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg0Val = *env.NewDict(data) - } - { - data := make(map[string]any, len(farg1)) - for mKey, mVal := range farg1 { - var dVal env.Object - dVal = *env.NewString(mVal) - data[mKey] = dVal - } - farg1Val = *env.NewDict(data) - } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalStringTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalStringTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalStringTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalStringTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalStringTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]string) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = *env.NewString(mVal) + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) var res error switch v := ps.Res.(type) { case env.String: @@ -15414,11 +16363,11 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalStringTree: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalStringTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -15461,11 +16410,11 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalStringTree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -15572,11 +16521,11 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalStringTree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -15592,8 +16541,9 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -15629,11 +16579,11 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalStringTree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -15648,11 +16598,11 @@ func ctxTo_binding_ExternalStringTree(ps *env.ProgramState, v env.RyeCtx) (bindi default: return nil, errors.New("context to binding.ExternalStringTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalStringTree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalStringTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -15682,15 +16632,19 @@ type iface_binding_ExternalURI struct { func (self *iface_binding_ExternalURI) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalURI) Get() (fyne.URI, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalURI) Set(arg0 fyne.URI) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalURI) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalURI) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -15960,6 +16914,7 @@ type iface_binding_ExternalURIList struct { fn_Get func(self env.RyeCtx) ([]fyne.URI, error) fn_GetValue func(self env.RyeCtx, arg0 int) (fyne.URI, error) fn_Prepend func(self env.RyeCtx, arg0 fyne.URI) error + fn_Remove func(self env.RyeCtx, arg0 fyne.URI) error fn_Set func(self env.RyeCtx, arg0 []fyne.URI) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 fyne.URI) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -15971,33 +16926,47 @@ type iface_binding_ExternalURIList struct { func (self *iface_binding_ExternalURIList) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalURIList) Append(arg0 fyne.URI) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_ExternalURIList) Get() ([]fyne.URI, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalURIList) GetValue(arg0 int) (fyne.URI, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalURIList) Prepend(arg0 fyne.URI) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_ExternalURIList) Remove(arg0 fyne.URI) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalURIList) Set(arg0 []fyne.URI) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalURIList) SetValue(arg0 int, arg1 fyne.URI) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalURIList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalURIList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalURIList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalURIList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -16148,10 +17117,11 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: res0 = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.RyeCtx: var err error - res0[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -16163,7 +17133,7 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - res0[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -16183,7 +17153,7 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. ) return res0, res1 } - res0[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -16401,11 +17371,57 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURIList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalURIList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalURIList: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalURIList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 fyne.URI) error { + var farg0Val env.Object + farg0Val = ifaceToNative(ps.Idx, farg0, "Go(fyne.URI)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalURIList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalURIList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalURIList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalURIList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURIList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -16453,11 +17469,11 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURIList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalURIList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalURIList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -16500,11 +17516,11 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURIList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalURIList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURIList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -16611,11 +17627,11 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURIList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalURIList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalURIList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -16641,11 +17657,11 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURIList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalURIList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURIList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -16660,11 +17676,11 @@ func ctxTo_binding_ExternalURIList(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURIList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalURIList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURIList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -16689,6 +17705,7 @@ type iface_binding_ExternalURITree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]fyne.URI, error) fn_GetValue func(self env.RyeCtx, arg0 string) (fyne.URI, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 fyne.URI) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]fyne.URI) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 fyne.URI) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -16700,33 +17717,47 @@ type iface_binding_ExternalURITree struct { func (self *iface_binding_ExternalURITree) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalURITree) Append(arg0 string, arg1 string, arg2 fyne.URI) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_ExternalURITree) Get() (map[string][]string, map[string]fyne.URI, error) { return self.fn_Get(self.self) } + func (self *iface_binding_ExternalURITree) GetValue(arg0 string) (fyne.URI, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_ExternalURITree) Prepend(arg0 string, arg1 string, arg2 fyne.URI) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_ExternalURITree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_ExternalURITree) Set(arg0 map[string][]string, arg1 map[string]fyne.URI) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_ExternalURITree) SetValue(arg0 string, arg1 fyne.URI) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalURITree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalURITree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_ExternalURITree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalURITree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -16906,8 +17937,9 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -16949,8 +17981,9 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -17337,11 +18370,57 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURITree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalURITree: expected context to have function Set") + return nil, errors.New("context to binding.ExternalURITree: expected context to have function Remove") } switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalURITree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalURITree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalURITree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalURITree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalURITree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalURITree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -17406,11 +18485,11 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURITree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalURITree: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalURITree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -17453,11 +18532,11 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURITree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalURITree: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURITree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -17564,11 +18643,11 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURITree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["child-i-ds"] + ctxObj9, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.ExternalURITree: expected context to have function ChildIDs") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURITree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -17584,8 +18663,9 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -17621,11 +18701,11 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURITree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalURITree: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURITree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -17640,11 +18720,11 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. default: return nil, errors.New("context to binding.ExternalURITree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalURITree: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalURITree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -17665,8 +18745,8 @@ func ctxTo_binding_ExternalURITree(ps *env.ProgramState, v env.RyeCtx) (binding. type iface_binding_ExternalUntyped struct { self env.RyeCtx fn_Reload func(self env.RyeCtx) error - fn_Get func(self env.RyeCtx) (interface{}, error) - fn_Set func(self env.RyeCtx, arg0 interface{}) error + fn_Get func(self env.RyeCtx) (any, error) + fn_Set func(self env.RyeCtx, arg0 any) error fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) fn_RemoveListener func(self env.RyeCtx, arg0 binding.DataListener) } @@ -17674,15 +18754,19 @@ type iface_binding_ExternalUntyped struct { func (self *iface_binding_ExternalUntyped) Reload() error { return self.fn_Reload(self.self) } -func (self *iface_binding_ExternalUntyped) Get() (interface{}, error) { + +func (self *iface_binding_ExternalUntyped) Get() (any, error) { return self.fn_Get(self.self) } -func (self *iface_binding_ExternalUntyped) Set(arg0 interface{}) error { + +func (self *iface_binding_ExternalUntyped) Set(arg0 any) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_ExternalUntyped) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalUntyped) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -17758,11 +18842,11 @@ func ctxTo_binding_ExternalUntyped(ps *env.ProgramState, v env.RyeCtx) (binding. if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalUntyped: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Get = func(ctx env.RyeCtx) (interface{}, error) { + impl.fn_Get = func(ctx env.RyeCtx) (any, error) { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -17785,12 +18869,12 @@ func ctxTo_binding_ExternalUntyped(ps *env.ProgramState, v env.RyeCtx) (binding. } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalUntyped: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalUntyped: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -17844,9 +18928,9 @@ func ctxTo_binding_ExternalUntyped(ps *env.ProgramState, v env.RyeCtx) (binding. if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntyped: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 interface{}) error { + impl.fn_Set = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -17925,12 +19009,13 @@ func ctxTo_binding_ExternalUntyped(ps *env.ProgramState, v env.RyeCtx) (binding. type iface_binding_ExternalUntypedList struct { self env.RyeCtx fn_Reload func(self env.RyeCtx) error - fn_Append func(self env.RyeCtx, arg0 interface{}) error - fn_Get func(self env.RyeCtx) ([]interface{}, error) - fn_GetValue func(self env.RyeCtx, arg0 int) (interface{}, error) - fn_Prepend func(self env.RyeCtx, arg0 interface{}) error - fn_Set func(self env.RyeCtx, arg0 []interface{}) error - fn_SetValue func(self env.RyeCtx, arg0 int, arg1 interface{}) error + fn_Append func(self env.RyeCtx, arg0 any) error + fn_Get func(self env.RyeCtx) ([]any, error) + fn_GetValue func(self env.RyeCtx, arg0 int) (any, error) + fn_Prepend func(self env.RyeCtx, arg0 any) error + fn_Remove func(self env.RyeCtx, arg0 any) error + fn_Set func(self env.RyeCtx, arg0 []any) error + fn_SetValue func(self env.RyeCtx, arg0 int, arg1 any) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) fn_Length func(self env.RyeCtx) int fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) @@ -17940,33 +19025,47 @@ type iface_binding_ExternalUntypedList struct { func (self *iface_binding_ExternalUntypedList) Reload() error { return self.fn_Reload(self.self) } -func (self *iface_binding_ExternalUntypedList) Append(arg0 interface{}) error { + +func (self *iface_binding_ExternalUntypedList) Append(arg0 any) error { return self.fn_Append(self.self, arg0) } -func (self *iface_binding_ExternalUntypedList) Get() ([]interface{}, error) { + +func (self *iface_binding_ExternalUntypedList) Get() ([]any, error) { return self.fn_Get(self.self) } -func (self *iface_binding_ExternalUntypedList) GetValue(arg0 int) (interface{}, error) { + +func (self *iface_binding_ExternalUntypedList) GetValue(arg0 int) (any, error) { return self.fn_GetValue(self.self, arg0) } -func (self *iface_binding_ExternalUntypedList) Prepend(arg0 interface{}) error { + +func (self *iface_binding_ExternalUntypedList) Prepend(arg0 any) error { return self.fn_Prepend(self.self, arg0) } -func (self *iface_binding_ExternalUntypedList) Set(arg0 []interface{}) error { + +func (self *iface_binding_ExternalUntypedList) Remove(arg0 any) error { + return self.fn_Remove(self.self, arg0) +} + +func (self *iface_binding_ExternalUntypedList) Set(arg0 []any) error { return self.fn_Set(self.self, arg0) } -func (self *iface_binding_ExternalUntypedList) SetValue(arg0 int, arg1 interface{}) error { + +func (self *iface_binding_ExternalUntypedList) SetValue(arg0 int, arg1 any) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalUntypedList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalUntypedList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_ExternalUntypedList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalUntypedList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -18042,9 +19141,9 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedList: context fn Append: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Append = func(ctx env.RyeCtx, farg0 interface{}) error { + impl.fn_Append = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -18088,11 +19187,11 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalUntypedList: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Get = func(ctx env.RyeCtx) ([]interface{}, error) { + impl.fn_Get = func(ctx env.RyeCtx) ([]any, error) { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx) - var res0 []interface{} + var res0 []any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -18115,16 +19214,17 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind } switch v := res.Series.S[0].(type) { case env.Block: - res0 = make([]interface{}, len(v.Series.S)) + res0 = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - res0[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalUntypedList: arg 0: callback result: "+"block item: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalUntypedList: arg 0: callback result: "+"block item: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -18199,13 +19299,13 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedList: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_GetValue = func(ctx env.RyeCtx, farg0 int) (interface{}, error) { + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 int) (any, error) { var farg0Val env.Object farg0Val = *env.NewInteger(int64(farg0)) actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -18228,12 +19328,12 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalUntypedList: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalUntypedList: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -18287,9 +19387,9 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedList: context fn Prepend: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Prepend = func(ctx env.RyeCtx, farg0 interface{}) error { + impl.fn_Prepend = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -18324,24 +19424,70 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind default: return nil, errors.New("context to binding.ExternalUntypedList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set"] + ctxObj5, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function Set") + return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function Remove") } switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { - return nil, errors.New("context to binding.ExternalUntypedList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + return nil, errors.New("context to binding.ExternalUntypedList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 []interface{}) error { + impl.fn_Remove = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - { - items := make([]env.Object, len(farg0)) - for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(interface{})") - } - farg0Val = *env.NewBlock(*env.NewTSeries(items)) - } + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function Set") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 []any) error { + var farg0Val env.Object + { + items := make([]env.Object, len(farg0)) + for i, it := range farg0 { + items[i] = *env.NewNative(ps.Idx, it, "Go(any)") + } + farg0Val = *env.NewBlock(*env.NewTSeries(items)) + } actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -18376,19 +19522,19 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind default: return nil, errors.New("context to binding.ExternalUntypedList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["set-value"] + ctxObj7, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function SetValue") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalUntypedList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 int, farg1 interface{}) error { + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 int, farg1 any) error { var farg0Val, farg1Val env.Object farg0Val = *env.NewInteger(int64(farg0)) - farg1Val = *env.NewNative(ps.Idx, farg1, "Go(interface{})") + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) @@ -18423,11 +19569,11 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind default: return nil, errors.New("context to binding.ExternalUntypedList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["get-item"] + ctxObj8, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function GetItem") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -18534,11 +19680,11 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind default: return nil, errors.New("context to binding.ExternalUntypedList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["length"] + ctxObj9, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function Length") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalUntypedList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -18564,11 +19710,11 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind default: return nil, errors.New("context to binding.ExternalUntypedList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["add-listener"] + ctxObj10, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function AddListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -18583,11 +19729,11 @@ func ctxTo_binding_ExternalUntypedList(ps *env.ProgramState, v env.RyeCtx) (bind default: return nil, errors.New("context to binding.ExternalUntypedList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj10, ok := wordToObj["remove-listener"] + ctxObj11, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.ExternalUntypedList: expected context to have function RemoveListener") } - switch fn := ctxObj10.(type) { + switch fn := ctxObj11.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -18609,10 +19755,10 @@ type iface_binding_ExternalUntypedMap struct { self env.RyeCtx fn_Reload func(self env.RyeCtx) error fn_Delete func(self env.RyeCtx, arg0 string) - fn_Get func(self env.RyeCtx) (map[string]interface{}, error) - fn_GetValue func(self env.RyeCtx, arg0 string) (interface{}, error) - fn_Set func(self env.RyeCtx, arg0 map[string]interface{}) error - fn_SetValue func(self env.RyeCtx, arg0 string, arg1 interface{}) error + fn_Get func(self env.RyeCtx) (map[string]any, error) + fn_GetValue func(self env.RyeCtx, arg0 string) (any, error) + fn_Set func(self env.RyeCtx, arg0 map[string]any) error + fn_SetValue func(self env.RyeCtx, arg0 string, arg1 any) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) fn_Keys func(self env.RyeCtx) []string fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) @@ -18622,30 +19768,39 @@ type iface_binding_ExternalUntypedMap struct { func (self *iface_binding_ExternalUntypedMap) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_ExternalUntypedMap) Delete(arg0 string) { self.fn_Delete(self.self, arg0) } -func (self *iface_binding_ExternalUntypedMap) Get() (map[string]interface{}, error) { + +func (self *iface_binding_ExternalUntypedMap) Get() (map[string]any, error) { return self.fn_Get(self.self) } -func (self *iface_binding_ExternalUntypedMap) GetValue(arg0 string) (interface{}, error) { + +func (self *iface_binding_ExternalUntypedMap) GetValue(arg0 string) (any, error) { return self.fn_GetValue(self.self, arg0) } -func (self *iface_binding_ExternalUntypedMap) Set(arg0 map[string]interface{}) error { + +func (self *iface_binding_ExternalUntypedMap) Set(arg0 map[string]any) error { return self.fn_Set(self.self, arg0) } -func (self *iface_binding_ExternalUntypedMap) SetValue(arg0 string, arg1 interface{}) error { + +func (self *iface_binding_ExternalUntypedMap) SetValue(arg0 string, arg1 any) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_ExternalUntypedMap) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_ExternalUntypedMap) Keys() []string { return self.fn_Keys(self.self) } + func (self *iface_binding_ExternalUntypedMap) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_ExternalUntypedMap) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -18740,11 +19895,11 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi if fn.Argsn != 0 { return nil, errors.New("context to binding.ExternalUntypedMap: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Get = func(ctx env.RyeCtx) (map[string]interface{}, error) { + impl.fn_Get = func(ctx env.RyeCtx) (map[string]any, error) { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx) - var res0 map[string]interface{} + var res0 map[string]any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -18776,7 +19931,7 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi ) return res0, res1 } - res0 = make(map[string]interface{}, len(v.Series.S)/2) + res0 = make(map[string]any, len(v.Series.S)/2) for i := 0; i < len(v.Series.S); i += 2 { var mapK string if vc, ok := v.Series.S[i+0].(env.String); ok { @@ -18790,15 +19945,15 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi ) return res0, res1 } - var mapV interface{} + var mapV any switch v := v.Series.S[i+1].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalUntypedMap: arg 0: callback result: "+"map value: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalUntypedMap: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -18816,18 +19971,18 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi res0[mapK] = mapV } case env.Dict: - res0 = make(map[string]interface{}, len(v.Data)) + res0 = make(map[string]any, len(v.Data)) for dictK, dictV := range v.Data { mapK := dictK - var mapV interface{} + var mapV any switch v := dictV.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalUntypedMap: arg 0: callback result: "+"map value: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalUntypedMap: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -18903,13 +20058,13 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedMap: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (interface{}, error) { + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (any, error) { var farg0Val env.Object farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -18932,12 +20087,12 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.ExternalUntypedMap: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.ExternalUntypedMap: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -18991,13 +20146,13 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi if fn.Argsn != 1 { return nil, errors.New("context to binding.ExternalUntypedMap: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string]interface{}) error { + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string]any) error { var farg0Val env.Object { data := make(map[string]any, len(farg0)) for mKey, mVal := range farg0 { var dVal env.Object - dVal = *env.NewNative(ps.Idx, mVal, "Go(interface{})") + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") data[mKey] = dVal } farg0Val = *env.NewDict(data) @@ -19045,10 +20200,10 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi if fn.Argsn != 2 { return nil, errors.New("context to binding.ExternalUntypedMap: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 interface{}) error { + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 any) error { var farg0Val, farg1Val env.Object farg0Val = *env.NewString(farg0) - farg1Val = *env.NewNative(ps.Idx, farg1, "Go(interface{})") + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) @@ -19212,8 +20367,9 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -19290,6 +20446,981 @@ func ctxTo_binding_ExternalUntypedMap(ps *env.ProgramState, v env.RyeCtx) (bindi return impl, nil } +type iface_binding_ExternalUntypedTree struct { + self env.RyeCtx + fn_Reload func(self env.RyeCtx) error + fn_Append func(self env.RyeCtx, arg0 string, arg1 string, arg2 any) error + fn_Get func(self env.RyeCtx) (map[string][]string, map[string]any, error) + fn_GetValue func(self env.RyeCtx, arg0 string) (any, error) + fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 any) error + fn_Remove func(self env.RyeCtx, arg0 string) error + fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]any) error + fn_SetValue func(self env.RyeCtx, arg0 string, arg1 any) error + fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) + fn_ChildIDs func(self env.RyeCtx, arg0 string) []string + fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) + fn_RemoveListener func(self env.RyeCtx, arg0 binding.DataListener) +} + +func (self *iface_binding_ExternalUntypedTree) Reload() error { + return self.fn_Reload(self.self) +} + +func (self *iface_binding_ExternalUntypedTree) Append(arg0 string, arg1 string, arg2 any) error { + return self.fn_Append(self.self, arg0, arg1, arg2) +} + +func (self *iface_binding_ExternalUntypedTree) Get() (map[string][]string, map[string]any, error) { + return self.fn_Get(self.self) +} + +func (self *iface_binding_ExternalUntypedTree) GetValue(arg0 string) (any, error) { + return self.fn_GetValue(self.self, arg0) +} + +func (self *iface_binding_ExternalUntypedTree) Prepend(arg0 string, arg1 string, arg2 any) error { + return self.fn_Prepend(self.self, arg0, arg1, arg2) +} + +func (self *iface_binding_ExternalUntypedTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + +func (self *iface_binding_ExternalUntypedTree) Set(arg0 map[string][]string, arg1 map[string]any) error { + return self.fn_Set(self.self, arg0, arg1) +} + +func (self *iface_binding_ExternalUntypedTree) SetValue(arg0 string, arg1 any) error { + return self.fn_SetValue(self.self, arg0, arg1) +} + +func (self *iface_binding_ExternalUntypedTree) GetItem(arg0 string) (binding.DataItem, error) { + return self.fn_GetItem(self.self, arg0) +} + +func (self *iface_binding_ExternalUntypedTree) ChildIDs(arg0 string) []string { + return self.fn_ChildIDs(self.self, arg0) +} + +func (self *iface_binding_ExternalUntypedTree) AddListener(arg0 binding.DataListener) { + self.fn_AddListener(self.self, arg0) +} + +func (self *iface_binding_ExternalUntypedTree) RemoveListener(arg0 binding.DataListener) { + self.fn_RemoveListener(self.self, arg0) +} + +func ctxTo_binding_ExternalUntypedTree(ps *env.ProgramState, v env.RyeCtx) (binding.ExternalUntypedTree, error) { + words := v.GetWords(*ps.Idx).Series.S + wordToObj := make(map[string]env.Object, len(words)) + for _, word := range words { + name := word.(env.String).Value + idx, ok := ps.Idx.GetIndex(name) + if !ok { + panic("expected valid word") + } + obj, ok := v.Get(idx) + if !ok { + panic("expected valid index") + } + wordToObj[name] = obj + } + impl := &iface_binding_ExternalUntypedTree{ + self: v, + } + ctxObj0, ok := wordToObj["reload"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function Reload") + } + switch fn := ctxObj0.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Reload: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Reload = func(ctx env.RyeCtx) error { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Reload: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj1, ok := wordToObj["append"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function Append") + } + switch fn := ctxObj1.(type) { + case env.Function: + if fn.Argsn != 3 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Append: " + "expected 3 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Append = func(ctx env.RyeCtx, farg0 string, farg1 string, farg2 any) error { + var farg0Val, farg1Val, farg2Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewString(farg1) + farg2Val = *env.NewNative(ps.Idx, farg2, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val, farg2Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Append: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj2, ok := wordToObj["get"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function Get") + } + switch fn := ctxObj2.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Get = func(ctx env.RyeCtx) (map[string][]string, map[string]any, error) { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res0 map[string][]string + var res1 map[string]any + var res2 error + res, ok := ps.Res.(env.Block) + if !ok { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block for multiple return values, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + if len(res.Series.S) != 3 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block with 3 return values, but got "+strconv.Itoa(len(res.Series.S))+" return values", + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + switch v := res.Series.S[0].(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block to have length of multiple of 2, but got block with length "+strconv.Itoa(len(v.Series.S)), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0 = make(map[string][]string, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map key: "+"expected string, but got "+objectDebugString(ps.Idx, v.Series.S[i+0]), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + var mapV []string + switch v := v.Series.S[i+1].(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"block item: "+"expected string, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + mapV = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0[mapK] = mapV + } + case env.Dict: + res0 = make(map[string][]string, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV []string + switch v := dictV.(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"block item: "+"expected string, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + mapV = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block, dict or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + switch v := res.Series.S[1].(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block to have length of multiple of 2, but got block with length "+strconv.Itoa(len(v.Series.S)), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1 = make(map[string]any, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map key: "+"expected string, but got "+objectDebugString(ps.Idx, v.Series.S[i+0]), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + var mapV any + switch v := v.Series.S[i+1].(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1[mapK] = mapV + } + case env.Dict: + res1 = make(map[string]any, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV any + switch v := dictV.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"map value: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block, dict or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + switch v := res.Series.S[2].(type) { + case env.String: + res2 = errors.New(v.Value) + case env.Error: + res2 = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res2 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + return res0, res1, res2 + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Get: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj3, ok := wordToObj["get-value"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function GetValue") + } + switch fn := ctxObj3.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (any, error) { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res0 any + var res1 error + res, ok := ps.Res.(env.Block) + if !ok { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block for multiple return values, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + if len(res.Series.S) != 2 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block with 2 return values, but got "+strconv.Itoa(len(res.Series.S))+" return values", + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[0].(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + res0 = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[1].(type) { + case env.String: + res1 = errors.New(v.Value) + case env.Error: + res1 = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + res1 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + return res0, res1 + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn GetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj4, ok := wordToObj["prepend"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function Prepend") + } + switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 3 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Prepend: " + "expected 3 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Prepend = func(ctx env.RyeCtx, farg0 string, farg1 string, farg2 any) error { + var farg0Val, farg1Val, farg2Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewString(farg1) + farg2Val = *env.NewNative(ps.Idx, farg2, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val, farg2Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["remove"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function Remove") + } + switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function Set") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]any) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj7, ok := wordToObj["set-value"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function SetValue") + } + switch fn := ctxObj7.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 any) error { + var farg0Val, farg1Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj8, ok := wordToObj["get-item"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function GetItem") + } + switch fn := ctxObj8.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_GetItem = func(ctx env.RyeCtx, farg0 string) (binding.DataItem, error) { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res0 binding.DataItem + var res1 error + res, ok := ps.Res.(env.Block) + if !ok { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block for multiple return values, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + if len(res.Series.S) != 2 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block with 2 return values, but got "+strconv.Itoa(len(res.Series.S))+" return values", + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[0].(type) { + case env.RyeCtx: + var err error + res0, err = ctxTo_binding_DataItem(ps, v) + if err != nil { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+err.Error(), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + case env.Native: + if vc, ok := v.Value.(binding.DataItem); ok { + res0 = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected native of type binding.DataItem, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + res0 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[1].(type) { + case env.String: + res1 = errors.New(v.Value) + case env.Error: + res1 = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + res1 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + return res0, res1 + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj9, ok := wordToObj["child-i-ds"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function ChildIDs") + } + switch fn := ctxObj9.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_ChildIDs = func(ctx env.RyeCtx, farg0 string) []string { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res []string + switch v := ps.Res.(type) { + case env.Block: + res = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &res[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"block item: "+"expected string, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.ExternalUntypedTree: arg 0: callback result: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj10, ok := wordToObj["add-listener"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function AddListener") + } + switch fn := ctxObj10.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_AddListener = func(ctx env.RyeCtx, farg0 binding.DataListener) { + var farg0Val env.Object + farg0Val = ifaceToNative(ps.Idx, farg0, "Go(binding.DataListener)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj11, ok := wordToObj["remove-listener"] + if !ok { + return nil, errors.New("context to binding.ExternalUntypedTree: expected context to have function RemoveListener") + } + switch fn := ctxObj11.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.ExternalUntypedTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_RemoveListener = func(ctx env.RyeCtx, farg0 binding.DataListener) { + var farg0Val env.Object + farg0Val = ifaceToNative(ps.Idx, farg0, "Go(binding.DataListener)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + } + default: + return nil, errors.New("context to binding.ExternalUntypedTree: context fn RemoveListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + return impl, nil +} + type iface_binding_Float struct { self env.RyeCtx fn_Get func(self env.RyeCtx) (float64, error) @@ -19301,12 +21432,15 @@ type iface_binding_Float struct { func (self *iface_binding_Float) Get() (float64, error) { return self.fn_Get(self.self) } + func (self *iface_binding_Float) Set(arg0 float64) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_Float) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Float) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -19497,6 +21631,7 @@ type iface_binding_FloatList struct { fn_Get func(self env.RyeCtx) ([]float64, error) fn_GetValue func(self env.RyeCtx, arg0 int) (float64, error) fn_Prepend func(self env.RyeCtx, arg0 float64) error + fn_Remove func(self env.RyeCtx, arg0 float64) error fn_Set func(self env.RyeCtx, arg0 []float64) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 float64) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -19508,30 +21643,43 @@ type iface_binding_FloatList struct { func (self *iface_binding_FloatList) Append(arg0 float64) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_FloatList) Get() ([]float64, error) { return self.fn_Get(self.self) } + func (self *iface_binding_FloatList) GetValue(arg0 int) (float64, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_FloatList) Prepend(arg0 float64) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_FloatList) Remove(arg0 float64) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_FloatList) Set(arg0 []float64) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_FloatList) SetValue(arg0 int, arg1 float64) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_FloatList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_FloatList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_FloatList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_FloatList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -19638,8 +21786,9 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL case env.Block: res0 = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.Decimal); ok { - res0[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -19823,11 +21972,57 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL default: return nil, errors.New("context to binding.FloatList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.FloatList: expected context to have function Set") + return nil, errors.New("context to binding.FloatList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.FloatList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 float64) error { + var farg0Val env.Object + farg0Val = *env.NewDecimal(float64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.FloatList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.FloatList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.FloatList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.FloatList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -19875,11 +22070,11 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL default: return nil, errors.New("context to binding.FloatList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.FloatList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.FloatList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -19922,11 +22117,11 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL default: return nil, errors.New("context to binding.FloatList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.FloatList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20033,11 +22228,11 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL default: return nil, errors.New("context to binding.FloatList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.FloatList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.FloatList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20063,11 +22258,11 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL default: return nil, errors.New("context to binding.FloatList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.FloatList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20082,11 +22277,11 @@ func ctxTo_binding_FloatList(ps *env.ProgramState, v env.RyeCtx) (binding.FloatL default: return nil, errors.New("context to binding.FloatList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.FloatList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20110,6 +22305,7 @@ type iface_binding_FloatTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]float64, error) fn_GetValue func(self env.RyeCtx, arg0 string) (float64, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 float64) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]float64) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 float64) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -20121,30 +22317,43 @@ type iface_binding_FloatTree struct { func (self *iface_binding_FloatTree) Append(arg0 string, arg1 string, arg2 float64) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_FloatTree) Get() (map[string][]string, map[string]float64, error) { return self.fn_Get(self.self) } + func (self *iface_binding_FloatTree) GetValue(arg0 string) (float64, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_FloatTree) Prepend(arg0 string, arg1 string, arg2 float64) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_FloatTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_FloatTree) Set(arg0 map[string][]string, arg1 map[string]float64) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_FloatTree) SetValue(arg0 string, arg1 float64) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_FloatTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_FloatTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_FloatTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_FloatTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -20280,8 +22489,9 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -20323,8 +22533,9 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -20609,11 +22820,57 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT default: return nil, errors.New("context to binding.FloatTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.FloatTree: expected context to have function Set") + return nil, errors.New("context to binding.FloatTree: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.FloatTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.FloatTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.FloatTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.FloatTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.FloatTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.FloatTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20678,11 +22935,11 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT default: return nil, errors.New("context to binding.FloatTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.FloatTree: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.FloatTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20725,11 +22982,11 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT default: return nil, errors.New("context to binding.FloatTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.FloatTree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20836,11 +23093,11 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT default: return nil, errors.New("context to binding.FloatTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.FloatTree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20856,8 +23113,9 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -20893,11 +23151,11 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT default: return nil, errors.New("context to binding.FloatTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.FloatTree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20912,11 +23170,11 @@ func ctxTo_binding_FloatTree(ps *env.ProgramState, v env.RyeCtx) (binding.FloatT default: return nil, errors.New("context to binding.FloatTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.FloatTree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.FloatTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -20945,12 +23203,15 @@ type iface_binding_Int struct { func (self *iface_binding_Int) Get() (int, error) { return self.fn_Get(self.self) } + func (self *iface_binding_Int) Set(arg0 int) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_Int) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Int) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -21141,6 +23402,7 @@ type iface_binding_IntList struct { fn_Get func(self env.RyeCtx) ([]int, error) fn_GetValue func(self env.RyeCtx, arg0 int) (int, error) fn_Prepend func(self env.RyeCtx, arg0 int) error + fn_Remove func(self env.RyeCtx, arg0 int) error fn_Set func(self env.RyeCtx, arg0 []int) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 int) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -21152,30 +23414,43 @@ type iface_binding_IntList struct { func (self *iface_binding_IntList) Append(arg0 int) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_IntList) Get() ([]int, error) { return self.fn_Get(self.self) } + func (self *iface_binding_IntList) GetValue(arg0 int) (int, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_IntList) Prepend(arg0 int) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_IntList) Remove(arg0 int) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_IntList) Set(arg0 []int) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_IntList) SetValue(arg0 int, arg1 int) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_IntList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_IntList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_IntList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_IntList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -21282,8 +23557,9 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, case env.Block: res0 = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.Integer); ok { - res0[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -21467,11 +23743,57 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, default: return nil, errors.New("context to binding.IntList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.IntList: expected context to have function Set") + return nil, errors.New("context to binding.IntList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.IntList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 int) error { + var farg0Val env.Object + farg0Val = *env.NewInteger(int64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.IntList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.IntList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.IntList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.IntList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -21519,11 +23841,11 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, default: return nil, errors.New("context to binding.IntList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.IntList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.IntList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -21566,11 +23888,11 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, default: return nil, errors.New("context to binding.IntList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.IntList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -21677,11 +23999,11 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, default: return nil, errors.New("context to binding.IntList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.IntList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.IntList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -21707,11 +24029,11 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, default: return nil, errors.New("context to binding.IntList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.IntList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -21726,11 +24048,11 @@ func ctxTo_binding_IntList(ps *env.ProgramState, v env.RyeCtx) (binding.IntList, default: return nil, errors.New("context to binding.IntList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.IntList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -21754,6 +24076,7 @@ type iface_binding_IntTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]int, error) fn_GetValue func(self env.RyeCtx, arg0 string) (int, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 int) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]int) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 int) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -21765,30 +24088,43 @@ type iface_binding_IntTree struct { func (self *iface_binding_IntTree) Append(arg0 string, arg1 string, arg2 int) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_IntTree) Get() (map[string][]string, map[string]int, error) { return self.fn_Get(self.self) } + func (self *iface_binding_IntTree) GetValue(arg0 string) (int, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_IntTree) Prepend(arg0 string, arg1 string, arg2 int) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_IntTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_IntTree) Set(arg0 map[string][]string, arg1 map[string]int) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_IntTree) SetValue(arg0 string, arg1 int) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_IntTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_IntTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_IntTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_IntTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -21924,8 +24260,9 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -21967,8 +24304,9 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -22253,11 +24591,57 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, default: return nil, errors.New("context to binding.IntTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.IntTree: expected context to have function Set") + return nil, errors.New("context to binding.IntTree: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.IntTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.IntTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.IntTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.IntTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.IntTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.IntTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -22322,11 +24706,11 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, default: return nil, errors.New("context to binding.IntTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.IntTree: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.IntTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -22369,11 +24753,11 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, default: return nil, errors.New("context to binding.IntTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.IntTree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -22480,11 +24864,11 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, default: return nil, errors.New("context to binding.IntTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.IntTree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -22500,8 +24884,9 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -22537,11 +24922,11 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, default: return nil, errors.New("context to binding.IntTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.IntTree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -22556,11 +24941,11 @@ func ctxTo_binding_IntTree(ps *env.ProgramState, v env.RyeCtx) (binding.IntTree, default: return nil, errors.New("context to binding.IntTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.IntTree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.IntTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -22589,12 +24974,15 @@ type iface_binding_Rune struct { func (self *iface_binding_Rune) Get() (rune, error) { return self.fn_Get(self.self) } + func (self *iface_binding_Rune) Set(arg0 rune) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_Rune) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Rune) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -22796,6 +25184,7 @@ type iface_binding_RuneList struct { fn_Get func(self env.RyeCtx) ([]rune, error) fn_GetValue func(self env.RyeCtx, arg0 int) (rune, error) fn_Prepend func(self env.RyeCtx, arg0 rune) error + fn_Remove func(self env.RyeCtx, arg0 rune) error fn_Set func(self env.RyeCtx, arg0 []rune) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 rune) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -22807,30 +25196,43 @@ type iface_binding_RuneList struct { func (self *iface_binding_RuneList) Append(arg0 rune) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_RuneList) Get() ([]rune, error) { return self.fn_Get(self.self) } + func (self *iface_binding_RuneList) GetValue(arg0 int) (rune, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_RuneList) Prepend(arg0 rune) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_RuneList) Remove(arg0 rune) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_RuneList) Set(arg0 []rune) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_RuneList) SetValue(arg0 int, arg1 rune) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_RuneList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_RuneList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_RuneList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_RuneList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -22937,10 +25339,11 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis case env.Block: res0 = make([]rune, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(rune); ok { - res0[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -23144,24 +25547,18 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis default: return nil, errors.New("context to binding.RuneList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.RuneList: expected context to have function Set") + return nil, errors.New("context to binding.RuneList: expected context to have function Remove") } switch fn := ctxObj4.(type) { case env.Function: if fn.Argsn != 1 { - return nil, errors.New("context to binding.RuneList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + return nil, errors.New("context to binding.RuneList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 []rune) error { + impl.fn_Remove = func(ctx env.RyeCtx, farg0 rune) error { var farg0Val env.Object - { - items := make([]env.Object, len(farg0)) - for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(rune)") - } - farg0Val = *env.NewBlock(*env.NewTSeries(items)) - } + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(rune)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -23194,24 +25591,76 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis return res } default: - return nil, errors.New("context to binding.RuneList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + return nil, errors.New("context to binding.RuneList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj5, ok := wordToObj["set"] if !ok { - return nil, errors.New("context to binding.RuneList: expected context to have function SetValue") + return nil, errors.New("context to binding.RuneList: expected context to have function Set") } switch fn := ctxObj5.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.RuneList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.RuneList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 int, farg1 rune) error { - var farg0Val, farg1Val env.Object - farg0Val = *env.NewInteger(int64(farg0)) - farg1Val = *env.NewNative(ps.Idx, farg1, "Go(rune)") + impl.fn_Set = func(ctx env.RyeCtx, farg0 []rune) error { + var farg0Val env.Object + { + items := make([]env.Object, len(farg0)) + for i, it := range farg0 { + items[i] = *env.NewNative(ps.Idx, it, "Go(rune)") + } + farg0Val = *env.NewBlock(*env.NewTSeries(items)) + } actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.RuneList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.RuneList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.RuneList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set-value"] + if !ok { + return nil, errors.New("context to binding.RuneList: expected context to have function SetValue") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.RuneList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 int, farg1 rune) error { + var farg0Val, farg1Val env.Object + farg0Val = *env.NewInteger(int64(farg0)) + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(rune)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) var res error switch v := ps.Res.(type) { case env.String: @@ -23243,11 +25692,11 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis default: return nil, errors.New("context to binding.RuneList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.RuneList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -23354,11 +25803,11 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis default: return nil, errors.New("context to binding.RuneList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.RuneList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.RuneList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -23384,11 +25833,11 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis default: return nil, errors.New("context to binding.RuneList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.RuneList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -23403,11 +25852,11 @@ func ctxTo_binding_RuneList(ps *env.ProgramState, v env.RyeCtx) (binding.RuneLis default: return nil, errors.New("context to binding.RuneList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.RuneList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -23431,6 +25880,7 @@ type iface_binding_RuneTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]rune, error) fn_GetValue func(self env.RyeCtx, arg0 string) (rune, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 rune) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]rune) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 rune) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -23442,30 +25892,43 @@ type iface_binding_RuneTree struct { func (self *iface_binding_RuneTree) Append(arg0 string, arg1 string, arg2 rune) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_RuneTree) Get() (map[string][]string, map[string]rune, error) { return self.fn_Get(self.self) } + func (self *iface_binding_RuneTree) GetValue(arg0 string) (rune, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_RuneTree) Prepend(arg0 string, arg1 string, arg2 rune) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_RuneTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_RuneTree) Set(arg0 map[string][]string, arg1 map[string]rune) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_RuneTree) SetValue(arg0 string, arg1 rune) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_RuneTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_RuneTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_RuneTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_RuneTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -23601,8 +26064,9 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -23644,8 +26108,9 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -23963,11 +26428,57 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre default: return nil, errors.New("context to binding.RuneTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.RuneTree: expected context to have function Set") + return nil, errors.New("context to binding.RuneTree: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.RuneTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.RuneTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.RuneTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.RuneTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.RuneTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.RuneTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24032,11 +26543,11 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre default: return nil, errors.New("context to binding.RuneTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.RuneTree: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.RuneTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24079,11 +26590,11 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre default: return nil, errors.New("context to binding.RuneTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.RuneTree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24190,11 +26701,11 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre default: return nil, errors.New("context to binding.RuneTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.RuneTree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24210,8 +26721,9 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -24247,11 +26759,11 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre default: return nil, errors.New("context to binding.RuneTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.RuneTree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24266,11 +26778,11 @@ func ctxTo_binding_RuneTree(ps *env.ProgramState, v env.RyeCtx) (binding.RuneTre default: return nil, errors.New("context to binding.RuneTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.RuneTree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.RuneTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24299,12 +26811,15 @@ type iface_binding_String struct { func (self *iface_binding_String) Get() (string, error) { return self.fn_Get(self.self) } + func (self *iface_binding_String) Set(arg0 string) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_String) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_String) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -24495,6 +27010,7 @@ type iface_binding_StringList struct { fn_Get func(self env.RyeCtx) ([]string, error) fn_GetValue func(self env.RyeCtx, arg0 int) (string, error) fn_Prepend func(self env.RyeCtx, arg0 string) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 []string) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 string) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -24506,30 +27022,43 @@ type iface_binding_StringList struct { func (self *iface_binding_StringList) Append(arg0 string) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_StringList) Get() ([]string, error) { return self.fn_Get(self.self) } + func (self *iface_binding_StringList) GetValue(arg0 int) (string, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_StringList) Prepend(arg0 string) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_StringList) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_StringList) Set(arg0 []string) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_StringList) SetValue(arg0 int, arg1 string) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_StringList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_StringList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_StringList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_StringList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -24636,8 +27165,9 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin case env.Block: res0 = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] if vc, ok := it.(env.String); ok { - res0[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -24821,11 +27351,57 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.StringList: expected context to have function Set") + return nil, errors.New("context to binding.StringList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.StringList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.StringList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.StringList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.StringList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.StringList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24873,11 +27449,11 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.StringList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.StringList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -24920,11 +27496,11 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.StringList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25031,11 +27607,11 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.StringList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.StringList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25061,11 +27637,11 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.StringList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25080,11 +27656,11 @@ func ctxTo_binding_StringList(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.StringList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25108,6 +27684,7 @@ type iface_binding_StringTree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]string, error) fn_GetValue func(self env.RyeCtx, arg0 string) (string, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 string) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]string) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 string) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -25119,30 +27696,43 @@ type iface_binding_StringTree struct { func (self *iface_binding_StringTree) Append(arg0 string, arg1 string, arg2 string) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_StringTree) Get() (map[string][]string, map[string]string, error) { return self.fn_Get(self.self) } + func (self *iface_binding_StringTree) GetValue(arg0 string) (string, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_StringTree) Prepend(arg0 string, arg1 string, arg2 string) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_StringTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_StringTree) Set(arg0 map[string][]string, arg1 map[string]string) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_StringTree) SetValue(arg0 string, arg1 string) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_StringTree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_StringTree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_StringTree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_StringTree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -25278,8 +27868,9 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -25321,8 +27912,9 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -25607,44 +28199,90 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.StringTree: expected context to have function Set") + return nil, errors.New("context to binding.StringTree: expected context to have function Remove") } switch fn := ctxObj4.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.StringTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.StringTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]string) error { - var farg0Val, farg1Val env.Object - { - data := make(map[string]any, len(farg0)) - for mKey, mVal := range farg0 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewString(it) - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg0Val = *env.NewDict(data) - } - { - data := make(map[string]any, len(farg1)) - for mKey, mVal := range farg1 { - var dVal env.Object - dVal = *env.NewString(mVal) - data[mKey] = dVal - } - farg1Val = *env.NewDict(data) - } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.StringTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.StringTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.StringTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.StringTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.StringTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]string) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = *env.NewString(mVal) + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) var res error switch v := ps.Res.(type) { case env.String: @@ -25676,11 +28314,11 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.StringTree: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.StringTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25723,11 +28361,11 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.StringTree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25834,11 +28472,11 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.StringTree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25854,8 +28492,9 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -25891,11 +28530,11 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.StringTree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25910,11 +28549,11 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin default: return nil, errors.New("context to binding.StringTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.StringTree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.StringTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -25934,8 +28573,8 @@ func ctxTo_binding_StringTree(ps *env.ProgramState, v env.RyeCtx) (binding.Strin type iface_binding_Struct struct { self env.RyeCtx - fn_GetValue func(self env.RyeCtx, arg0 string) (interface{}, error) - fn_SetValue func(self env.RyeCtx, arg0 string, arg1 interface{}) error + fn_GetValue func(self env.RyeCtx, arg0 string) (any, error) + fn_SetValue func(self env.RyeCtx, arg0 string, arg1 any) error fn_Reload func(self env.RyeCtx) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) fn_Keys func(self env.RyeCtx) []string @@ -25943,24 +28582,30 @@ type iface_binding_Struct struct { fn_RemoveListener func(self env.RyeCtx, arg0 binding.DataListener) } -func (self *iface_binding_Struct) GetValue(arg0 string) (interface{}, error) { +func (self *iface_binding_Struct) GetValue(arg0 string) (any, error) { return self.fn_GetValue(self.self, arg0) } -func (self *iface_binding_Struct) SetValue(arg0 string, arg1 interface{}) error { + +func (self *iface_binding_Struct) SetValue(arg0 string, arg1 any) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_Struct) Reload() error { return self.fn_Reload(self.self) } + func (self *iface_binding_Struct) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_Struct) Keys() []string { return self.fn_Keys(self.self) } + func (self *iface_binding_Struct) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Struct) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -25992,13 +28637,13 @@ func ctxTo_binding_Struct(ps *env.ProgramState, v env.RyeCtx) (binding.Struct, e if fn.Argsn != 1 { return nil, errors.New("context to binding.Struct: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (interface{}, error) { + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (any, error) { var farg0Val env.Object farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -26021,12 +28666,12 @@ func ctxTo_binding_Struct(ps *env.ProgramState, v env.RyeCtx) (binding.Struct, e } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.Struct: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.Struct: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -26080,10 +28725,10 @@ func ctxTo_binding_Struct(ps *env.ProgramState, v env.RyeCtx) (binding.Struct, e if fn.Argsn != 2 { return nil, errors.New("context to binding.Struct: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 interface{}) error { + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 any) error { var farg0Val, farg1Val env.Object farg0Val = *env.NewString(farg0) - farg1Val = *env.NewNative(ps.Idx, farg1, "Go(interface{})") + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) @@ -26291,8 +28936,9 @@ func ctxTo_binding_Struct(ps *env.ProgramState, v env.RyeCtx) (binding.Struct, e case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -26380,12 +29026,15 @@ type iface_binding_URI struct { func (self *iface_binding_URI) Get() (fyne.URI, error) { return self.fn_Get(self.self) } + func (self *iface_binding_URI) Set(arg0 fyne.URI) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_URI) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_URI) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -26610,6 +29259,7 @@ type iface_binding_URIList struct { fn_Get func(self env.RyeCtx) ([]fyne.URI, error) fn_GetValue func(self env.RyeCtx, arg0 int) (fyne.URI, error) fn_Prepend func(self env.RyeCtx, arg0 fyne.URI) error + fn_Remove func(self env.RyeCtx, arg0 fyne.URI) error fn_Set func(self env.RyeCtx, arg0 []fyne.URI) error fn_SetValue func(self env.RyeCtx, arg0 int, arg1 fyne.URI) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) @@ -26621,30 +29271,43 @@ type iface_binding_URIList struct { func (self *iface_binding_URIList) Append(arg0 fyne.URI) error { return self.fn_Append(self.self, arg0) } + func (self *iface_binding_URIList) Get() ([]fyne.URI, error) { return self.fn_Get(self.self) } + func (self *iface_binding_URIList) GetValue(arg0 int) (fyne.URI, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_URIList) Prepend(arg0 fyne.URI) error { return self.fn_Prepend(self.self, arg0) } + +func (self *iface_binding_URIList) Remove(arg0 fyne.URI) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_URIList) Set(arg0 []fyne.URI) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_URIList) SetValue(arg0 int, arg1 fyne.URI) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_URIList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_URIList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_URIList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_URIList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -26751,10 +29414,11 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, case env.Block: res0 = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.RyeCtx: var err error - res0[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -26766,7 +29430,7 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - res0[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -26786,7 +29450,7 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, ) return res0, res1 } - res0[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -27004,11 +29668,57 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, default: return nil, errors.New("context to binding.URIList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.URIList: expected context to have function Set") + return nil, errors.New("context to binding.URIList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.URIList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 fyne.URI) error { + var farg0Val env.Object + farg0Val = ifaceToNative(ps.Idx, farg0, "Go(fyne.URI)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.URIList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.URIList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.URIList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.URIList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URIList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -27056,11 +29766,11 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, default: return nil, errors.New("context to binding.URIList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.URIList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.URIList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -27103,11 +29813,11 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, default: return nil, errors.New("context to binding.URIList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.URIList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URIList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -27214,11 +29924,11 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, default: return nil, errors.New("context to binding.URIList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.URIList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.URIList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -27244,11 +29954,11 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, default: return nil, errors.New("context to binding.URIList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.URIList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URIList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -27263,11 +29973,11 @@ func ctxTo_binding_URIList(ps *env.ProgramState, v env.RyeCtx) (binding.URIList, default: return nil, errors.New("context to binding.URIList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.URIList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URIList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -27291,6 +30001,7 @@ type iface_binding_URITree struct { fn_Get func(self env.RyeCtx) (map[string][]string, map[string]fyne.URI, error) fn_GetValue func(self env.RyeCtx, arg0 string) (fyne.URI, error) fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 fyne.URI) error + fn_Remove func(self env.RyeCtx, arg0 string) error fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]fyne.URI) error fn_SetValue func(self env.RyeCtx, arg0 string, arg1 fyne.URI) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) @@ -27302,30 +30013,43 @@ type iface_binding_URITree struct { func (self *iface_binding_URITree) Append(arg0 string, arg1 string, arg2 fyne.URI) error { return self.fn_Append(self.self, arg0, arg1, arg2) } + func (self *iface_binding_URITree) Get() (map[string][]string, map[string]fyne.URI, error) { return self.fn_Get(self.self) } + func (self *iface_binding_URITree) GetValue(arg0 string) (fyne.URI, error) { return self.fn_GetValue(self.self, arg0) } + func (self *iface_binding_URITree) Prepend(arg0 string, arg1 string, arg2 fyne.URI) error { return self.fn_Prepend(self.self, arg0, arg1, arg2) } + +func (self *iface_binding_URITree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + func (self *iface_binding_URITree) Set(arg0 map[string][]string, arg1 map[string]fyne.URI) error { return self.fn_Set(self.self, arg0, arg1) } + func (self *iface_binding_URITree) SetValue(arg0 string, arg1 fyne.URI) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_URITree) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_URITree) ChildIDs(arg0 string) []string { return self.fn_ChildIDs(self.self, arg0) } + func (self *iface_binding_URITree) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_URITree) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -27461,8 +30185,9 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -27504,8 +30229,9 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -27892,44 +30618,21 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, default: return nil, errors.New("context to binding.URITree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.URITree: expected context to have function Set") + return nil, errors.New("context to binding.URITree: expected context to have function Remove") } switch fn := ctxObj4.(type) { case env.Function: - if fn.Argsn != 2 { - return nil, errors.New("context to binding.URITree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 1 { + return nil, errors.New("context to binding.URITree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]fyne.URI) error { - var farg0Val, farg1Val env.Object - { - data := make(map[string]any, len(farg0)) - for mKey, mVal := range farg0 { - var dVal env.Object - { - items := make([]env.Object, len(mVal)) - for i, it := range mVal { - items[i] = *env.NewString(it) - } - dVal = *env.NewBlock(*env.NewTSeries(items)) - } - data[mKey] = dVal - } - farg0Val = *env.NewDict(data) - } - { - data := make(map[string]any, len(farg1)) - for mKey, mVal := range farg1 { - var dVal env.Object - dVal = ifaceToNative(ps.Idx, mVal, "Go(fyne.URI)") - data[mKey] = dVal - } - farg1Val = *env.NewDict(data) - } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) var res error switch v := ps.Res.(type) { case env.String: @@ -27959,21 +30662,90 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, return res } default: - return nil, errors.New("context to binding.URITree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + return nil, errors.New("context to binding.URITree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj5, ok := wordToObj["set"] if !ok { - return nil, errors.New("context to binding.URITree: expected context to have function SetValue") + return nil, errors.New("context to binding.URITree: expected context to have function Set") } switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 2 { - return nil, errors.New("context to binding.URITree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + return nil, errors.New("context to binding.URITree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 fyne.URI) error { + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]fyne.URI) error { var farg0Val, farg1Val env.Object - farg0Val = *env.NewString(farg0) - farg1Val = ifaceToNative(ps.Idx, farg1, "Go(fyne.URI)") + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = ifaceToNative(ps.Idx, mVal, "Go(fyne.URI)") + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.URITree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.URITree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.URITree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set-value"] + if !ok { + return nil, errors.New("context to binding.URITree: expected context to have function SetValue") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.URITree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 fyne.URI) error { + var farg0Val, farg1Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = ifaceToNative(ps.Idx, farg1, "Go(fyne.URI)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) @@ -28008,11 +30780,11 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, default: return nil, errors.New("context to binding.URITree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.URITree: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URITree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -28119,11 +30891,11 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, default: return nil, errors.New("context to binding.URITree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["child-i-ds"] + ctxObj8, ok := wordToObj["child-i-ds"] if !ok { return nil, errors.New("context to binding.URITree: expected context to have function ChildIDs") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URITree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -28139,8 +30911,9 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -28176,11 +30949,11 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, default: return nil, errors.New("context to binding.URITree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.URITree: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URITree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -28195,11 +30968,11 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, default: return nil, errors.New("context to binding.URITree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.URITree: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.URITree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -28219,21 +30992,24 @@ func ctxTo_binding_URITree(ps *env.ProgramState, v env.RyeCtx) (binding.URITree, type iface_binding_Untyped struct { self env.RyeCtx - fn_Get func(self env.RyeCtx) (interface{}, error) - fn_Set func(self env.RyeCtx, arg0 interface{}) error + fn_Get func(self env.RyeCtx) (any, error) + fn_Set func(self env.RyeCtx, arg0 any) error fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) fn_RemoveListener func(self env.RyeCtx, arg0 binding.DataListener) } -func (self *iface_binding_Untyped) Get() (interface{}, error) { +func (self *iface_binding_Untyped) Get() (any, error) { return self.fn_Get(self.self) } -func (self *iface_binding_Untyped) Set(arg0 interface{}) error { + +func (self *iface_binding_Untyped) Set(arg0 any) error { return self.fn_Set(self.self, arg0) } + func (self *iface_binding_Untyped) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_Untyped) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -28265,11 +31041,11 @@ func ctxTo_binding_Untyped(ps *env.ProgramState, v env.RyeCtx) (binding.Untyped, if fn.Argsn != 0 { return nil, errors.New("context to binding.Untyped: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Get = func(ctx env.RyeCtx) (interface{}, error) { + impl.fn_Get = func(ctx env.RyeCtx) (any, error) { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -28292,12 +31068,12 @@ func ctxTo_binding_Untyped(ps *env.ProgramState, v env.RyeCtx) (binding.Untyped, } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.Untyped: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.Untyped: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -28351,9 +31127,9 @@ func ctxTo_binding_Untyped(ps *env.ProgramState, v env.RyeCtx) (binding.Untyped, if fn.Argsn != 1 { return nil, errors.New("context to binding.Untyped: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 interface{}) error { + impl.fn_Set = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -28431,45 +31207,59 @@ func ctxTo_binding_Untyped(ps *env.ProgramState, v env.RyeCtx) (binding.Untyped, type iface_binding_UntypedList struct { self env.RyeCtx - fn_Append func(self env.RyeCtx, arg0 interface{}) error - fn_Get func(self env.RyeCtx) ([]interface{}, error) - fn_GetValue func(self env.RyeCtx, arg0 int) (interface{}, error) - fn_Prepend func(self env.RyeCtx, arg0 interface{}) error - fn_Set func(self env.RyeCtx, arg0 []interface{}) error - fn_SetValue func(self env.RyeCtx, arg0 int, arg1 interface{}) error + fn_Append func(self env.RyeCtx, arg0 any) error + fn_Get func(self env.RyeCtx) ([]any, error) + fn_GetValue func(self env.RyeCtx, arg0 int) (any, error) + fn_Prepend func(self env.RyeCtx, arg0 any) error + fn_Remove func(self env.RyeCtx, arg0 any) error + fn_Set func(self env.RyeCtx, arg0 []any) error + fn_SetValue func(self env.RyeCtx, arg0 int, arg1 any) error fn_GetItem func(self env.RyeCtx, arg0 int) (binding.DataItem, error) fn_Length func(self env.RyeCtx) int fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) fn_RemoveListener func(self env.RyeCtx, arg0 binding.DataListener) } -func (self *iface_binding_UntypedList) Append(arg0 interface{}) error { +func (self *iface_binding_UntypedList) Append(arg0 any) error { return self.fn_Append(self.self, arg0) } -func (self *iface_binding_UntypedList) Get() ([]interface{}, error) { + +func (self *iface_binding_UntypedList) Get() ([]any, error) { return self.fn_Get(self.self) } -func (self *iface_binding_UntypedList) GetValue(arg0 int) (interface{}, error) { + +func (self *iface_binding_UntypedList) GetValue(arg0 int) (any, error) { return self.fn_GetValue(self.self, arg0) } -func (self *iface_binding_UntypedList) Prepend(arg0 interface{}) error { + +func (self *iface_binding_UntypedList) Prepend(arg0 any) error { return self.fn_Prepend(self.self, arg0) } -func (self *iface_binding_UntypedList) Set(arg0 []interface{}) error { + +func (self *iface_binding_UntypedList) Remove(arg0 any) error { + return self.fn_Remove(self.self, arg0) +} + +func (self *iface_binding_UntypedList) Set(arg0 []any) error { return self.fn_Set(self.self, arg0) } -func (self *iface_binding_UntypedList) SetValue(arg0 int, arg1 interface{}) error { + +func (self *iface_binding_UntypedList) SetValue(arg0 int, arg1 any) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_UntypedList) GetItem(arg0 int) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_UntypedList) Length() int { return self.fn_Length(self.self) } + func (self *iface_binding_UntypedList) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_UntypedList) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -28501,9 +31291,9 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn Append: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Append = func(ctx env.RyeCtx, farg0 interface{}) error { + impl.fn_Append = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -28547,11 +31337,11 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty if fn.Argsn != 0 { return nil, errors.New("context to binding.UntypedList: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Get = func(ctx env.RyeCtx) ([]interface{}, error) { + impl.fn_Get = func(ctx env.RyeCtx) ([]any, error) { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx) - var res0 []interface{} + var res0 []any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -28574,16 +31364,17 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty } switch v := res.Series.S[0].(type) { case env.Block: - res0 = make([]interface{}, len(v.Series.S)) + res0 = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - res0[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.UntypedList: arg 0: callback result: "+"block item: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.UntypedList: arg 0: callback result: "+"block item: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -28658,13 +31449,13 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_GetValue = func(ctx env.RyeCtx, farg0 int) (interface{}, error) { + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 int) (any, error) { var farg0Val env.Object farg0Val = *env.NewInteger(int64(farg0)) actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -28687,12 +31478,12 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.UntypedList: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.UntypedList: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -28746,9 +31537,9 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn Prepend: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Prepend = func(ctx env.RyeCtx, farg0 interface{}) error { + impl.fn_Prepend = func(ctx env.RyeCtx, farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) @@ -28783,21 +31574,67 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty default: return nil, errors.New("context to binding.UntypedList: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj4, ok := wordToObj["set"] + ctxObj4, ok := wordToObj["remove"] if !ok { - return nil, errors.New("context to binding.UntypedList: expected context to have function Set") + return nil, errors.New("context to binding.UntypedList: expected context to have function Remove") } switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedList: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 any) error { + var farg0Val env.Object + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedList: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedList: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedList: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.UntypedList: expected context to have function Set") + } + switch fn := ctxObj5.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 []interface{}) error { + impl.fn_Set = func(ctx env.RyeCtx, farg0 []any) error { var farg0Val env.Object { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(interface{})") + items[i] = *env.NewNative(ps.Idx, it, "Go(any)") } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -28835,19 +31672,19 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty default: return nil, errors.New("context to binding.UntypedList: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj5, ok := wordToObj["set-value"] + ctxObj6, ok := wordToObj["set-value"] if !ok { return nil, errors.New("context to binding.UntypedList: expected context to have function SetValue") } - switch fn := ctxObj5.(type) { + switch fn := ctxObj6.(type) { case env.Function: if fn.Argsn != 2 { return nil, errors.New("context to binding.UntypedList: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 int, farg1 interface{}) error { + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 int, farg1 any) error { var farg0Val, farg1Val env.Object farg0Val = *env.NewInteger(int64(farg0)) - farg1Val = *env.NewNative(ps.Idx, farg1, "Go(interface{})") + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) @@ -28882,11 +31719,11 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty default: return nil, errors.New("context to binding.UntypedList: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj6, ok := wordToObj["get-item"] + ctxObj7, ok := wordToObj["get-item"] if !ok { return nil, errors.New("context to binding.UntypedList: expected context to have function GetItem") } - switch fn := ctxObj6.(type) { + switch fn := ctxObj7.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -28993,11 +31830,11 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty default: return nil, errors.New("context to binding.UntypedList: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj7, ok := wordToObj["length"] + ctxObj8, ok := wordToObj["length"] if !ok { return nil, errors.New("context to binding.UntypedList: expected context to have function Length") } - switch fn := ctxObj7.(type) { + switch fn := ctxObj8.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to binding.UntypedList: context fn Length: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -29023,11 +31860,11 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty default: return nil, errors.New("context to binding.UntypedList: context fn Length: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj8, ok := wordToObj["add-listener"] + ctxObj9, ok := wordToObj["add-listener"] if !ok { return nil, errors.New("context to binding.UntypedList: expected context to have function AddListener") } - switch fn := ctxObj8.(type) { + switch fn := ctxObj9.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -29042,11 +31879,11 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty default: return nil, errors.New("context to binding.UntypedList: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj9, ok := wordToObj["remove-listener"] + ctxObj10, ok := wordToObj["remove-listener"] if !ok { return nil, errors.New("context to binding.UntypedList: expected context to have function RemoveListener") } - switch fn := ctxObj9.(type) { + switch fn := ctxObj10.(type) { case env.Function: if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedList: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -29067,10 +31904,10 @@ func ctxTo_binding_UntypedList(ps *env.ProgramState, v env.RyeCtx) (binding.Unty type iface_binding_UntypedMap struct { self env.RyeCtx fn_Delete func(self env.RyeCtx, arg0 string) - fn_Get func(self env.RyeCtx) (map[string]interface{}, error) - fn_GetValue func(self env.RyeCtx, arg0 string) (interface{}, error) - fn_Set func(self env.RyeCtx, arg0 map[string]interface{}) error - fn_SetValue func(self env.RyeCtx, arg0 string, arg1 interface{}) error + fn_Get func(self env.RyeCtx) (map[string]any, error) + fn_GetValue func(self env.RyeCtx, arg0 string) (any, error) + fn_Set func(self env.RyeCtx, arg0 map[string]any) error + fn_SetValue func(self env.RyeCtx, arg0 string, arg1 any) error fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) fn_Keys func(self env.RyeCtx) []string fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) @@ -29080,27 +31917,35 @@ type iface_binding_UntypedMap struct { func (self *iface_binding_UntypedMap) Delete(arg0 string) { self.fn_Delete(self.self, arg0) } -func (self *iface_binding_UntypedMap) Get() (map[string]interface{}, error) { + +func (self *iface_binding_UntypedMap) Get() (map[string]any, error) { return self.fn_Get(self.self) } -func (self *iface_binding_UntypedMap) GetValue(arg0 string) (interface{}, error) { + +func (self *iface_binding_UntypedMap) GetValue(arg0 string) (any, error) { return self.fn_GetValue(self.self, arg0) } -func (self *iface_binding_UntypedMap) Set(arg0 map[string]interface{}) error { + +func (self *iface_binding_UntypedMap) Set(arg0 map[string]any) error { return self.fn_Set(self.self, arg0) } -func (self *iface_binding_UntypedMap) SetValue(arg0 string, arg1 interface{}) error { + +func (self *iface_binding_UntypedMap) SetValue(arg0 string, arg1 any) error { return self.fn_SetValue(self.self, arg0, arg1) } + func (self *iface_binding_UntypedMap) GetItem(arg0 string) (binding.DataItem, error) { return self.fn_GetItem(self.self, arg0) } + func (self *iface_binding_UntypedMap) Keys() []string { return self.fn_Keys(self.self) } + func (self *iface_binding_UntypedMap) AddListener(arg0 binding.DataListener) { self.fn_AddListener(self.self, arg0) } + func (self *iface_binding_UntypedMap) RemoveListener(arg0 binding.DataListener) { self.fn_RemoveListener(self.self, arg0) } @@ -29151,11 +31996,11 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp if fn.Argsn != 0 { return nil, errors.New("context to binding.UntypedMap: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Get = func(ctx env.RyeCtx) (map[string]interface{}, error) { + impl.fn_Get = func(ctx env.RyeCtx) (map[string]any, error) { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx) - var res0 map[string]interface{} + var res0 map[string]any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -29187,7 +32032,7 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp ) return res0, res1 } - res0 = make(map[string]interface{}, len(v.Series.S)/2) + res0 = make(map[string]any, len(v.Series.S)/2) for i := 0; i < len(v.Series.S); i += 2 { var mapK string if vc, ok := v.Series.S[i+0].(env.String); ok { @@ -29201,15 +32046,15 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp ) return res0, res1 } - var mapV interface{} + var mapV any switch v := v.Series.S[i+1].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.UntypedMap: arg 0: callback result: "+"map value: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.UntypedMap: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -29227,18 +32072,18 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp res0[mapK] = mapV } case env.Dict: - res0 = make(map[string]interface{}, len(v.Data)) + res0 = make(map[string]any, len(v.Data)) for dictK, dictV := range v.Data { mapK := dictK - var mapV interface{} + var mapV any switch v := dictV.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.UntypedMap: arg 0: callback result: "+"map value: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.UntypedMap: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -29314,13 +32159,13 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedMap: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (interface{}, error) { + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (any, error) { var farg0Val env.Object farg0Val = *env.NewString(farg0) actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) - var res0 interface{} + var res0 any var res1 error res, ok := ps.Res.(env.Block) if !ok { @@ -29343,12 +32188,12 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp } switch v := res.Series.S[0].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { res0 = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to binding.UntypedMap: arg 0: callback result: "+"expected native of type interface{}, but got "+objectDebugString(ps.Idx, v), + "context to binding.UntypedMap: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -29402,13 +32247,13 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp if fn.Argsn != 1 { return nil, errors.New("context to binding.UntypedMap: context fn Set: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string]interface{}) error { + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string]any) error { var farg0Val env.Object { data := make(map[string]any, len(farg0)) for mKey, mVal := range farg0 { var dVal env.Object - dVal = *env.NewNative(ps.Idx, mVal, "Go(interface{})") + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") data[mKey] = dVal } farg0Val = *env.NewDict(data) @@ -29456,10 +32301,10 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp if fn.Argsn != 2 { return nil, errors.New("context to binding.UntypedMap: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 interface{}) error { + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 any) error { var farg0Val, farg1Val env.Object farg0Val = *env.NewString(farg0) - farg1Val = *env.NewNative(ps.Idx, farg1, "Go(interface{})") + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) @@ -29623,8 +32468,9 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -29701,6 +32547,932 @@ func ctxTo_binding_UntypedMap(ps *env.ProgramState, v env.RyeCtx) (binding.Untyp return impl, nil } +type iface_binding_UntypedTree struct { + self env.RyeCtx + fn_Append func(self env.RyeCtx, arg0 string, arg1 string, arg2 any) error + fn_Get func(self env.RyeCtx) (map[string][]string, map[string]any, error) + fn_GetValue func(self env.RyeCtx, arg0 string) (any, error) + fn_Prepend func(self env.RyeCtx, arg0 string, arg1 string, arg2 any) error + fn_Remove func(self env.RyeCtx, arg0 string) error + fn_Set func(self env.RyeCtx, arg0 map[string][]string, arg1 map[string]any) error + fn_SetValue func(self env.RyeCtx, arg0 string, arg1 any) error + fn_GetItem func(self env.RyeCtx, arg0 string) (binding.DataItem, error) + fn_ChildIDs func(self env.RyeCtx, arg0 string) []string + fn_AddListener func(self env.RyeCtx, arg0 binding.DataListener) + fn_RemoveListener func(self env.RyeCtx, arg0 binding.DataListener) +} + +func (self *iface_binding_UntypedTree) Append(arg0 string, arg1 string, arg2 any) error { + return self.fn_Append(self.self, arg0, arg1, arg2) +} + +func (self *iface_binding_UntypedTree) Get() (map[string][]string, map[string]any, error) { + return self.fn_Get(self.self) +} + +func (self *iface_binding_UntypedTree) GetValue(arg0 string) (any, error) { + return self.fn_GetValue(self.self, arg0) +} + +func (self *iface_binding_UntypedTree) Prepend(arg0 string, arg1 string, arg2 any) error { + return self.fn_Prepend(self.self, arg0, arg1, arg2) +} + +func (self *iface_binding_UntypedTree) Remove(arg0 string) error { + return self.fn_Remove(self.self, arg0) +} + +func (self *iface_binding_UntypedTree) Set(arg0 map[string][]string, arg1 map[string]any) error { + return self.fn_Set(self.self, arg0, arg1) +} + +func (self *iface_binding_UntypedTree) SetValue(arg0 string, arg1 any) error { + return self.fn_SetValue(self.self, arg0, arg1) +} + +func (self *iface_binding_UntypedTree) GetItem(arg0 string) (binding.DataItem, error) { + return self.fn_GetItem(self.self, arg0) +} + +func (self *iface_binding_UntypedTree) ChildIDs(arg0 string) []string { + return self.fn_ChildIDs(self.self, arg0) +} + +func (self *iface_binding_UntypedTree) AddListener(arg0 binding.DataListener) { + self.fn_AddListener(self.self, arg0) +} + +func (self *iface_binding_UntypedTree) RemoveListener(arg0 binding.DataListener) { + self.fn_RemoveListener(self.self, arg0) +} + +func ctxTo_binding_UntypedTree(ps *env.ProgramState, v env.RyeCtx) (binding.UntypedTree, error) { + words := v.GetWords(*ps.Idx).Series.S + wordToObj := make(map[string]env.Object, len(words)) + for _, word := range words { + name := word.(env.String).Value + idx, ok := ps.Idx.GetIndex(name) + if !ok { + panic("expected valid word") + } + obj, ok := v.Get(idx) + if !ok { + panic("expected valid index") + } + wordToObj[name] = obj + } + impl := &iface_binding_UntypedTree{ + self: v, + } + ctxObj0, ok := wordToObj["append"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function Append") + } + switch fn := ctxObj0.(type) { + case env.Function: + if fn.Argsn != 3 { + return nil, errors.New("context to binding.UntypedTree: context fn Append: " + "expected 3 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Append = func(ctx env.RyeCtx, farg0 string, farg1 string, farg2 any) error { + var farg0Val, farg1Val, farg2Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewString(farg1) + farg2Val = *env.NewNative(ps.Idx, farg2, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val, farg2Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn Append: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj1, ok := wordToObj["get"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function Get") + } + switch fn := ctxObj1.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to binding.UntypedTree: context fn Get: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Get = func(ctx env.RyeCtx) (map[string][]string, map[string]any, error) { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res0 map[string][]string + var res1 map[string]any + var res2 error + res, ok := ps.Res.(env.Block) + if !ok { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block for multiple return values, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + if len(res.Series.S) != 3 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block with 3 return values, but got "+strconv.Itoa(len(res.Series.S))+" return values", + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + switch v := res.Series.S[0].(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block to have length of multiple of 2, but got block with length "+strconv.Itoa(len(v.Series.S)), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0 = make(map[string][]string, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map key: "+"expected string, but got "+objectDebugString(ps.Idx, v.Series.S[i+0]), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + var mapV []string + switch v := v.Series.S[i+1].(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"block item: "+"expected string, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + mapV = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0[mapK] = mapV + } + case env.Dict: + res0 = make(map[string][]string, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV []string + switch v := dictV.(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"block item: "+"expected string, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + mapV = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res0 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block, dict or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + switch v := res.Series.S[1].(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block to have length of multiple of 2, but got block with length "+strconv.Itoa(len(v.Series.S)), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1 = make(map[string]any, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map key: "+"expected string, but got "+objectDebugString(ps.Idx, v.Series.S[i+0]), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + var mapV any + switch v := v.Series.S[i+1].(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1[mapK] = mapV + } + case env.Dict: + res1 = make(map[string]any, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV any + switch v := dictV.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"map value: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res1 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block, dict or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + switch v := res.Series.S[2].(type) { + case env.String: + res2 = errors.New(v.Value) + case env.Error: + res2 = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + res2 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1, res2 + } + return res0, res1, res2 + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn Get: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj2, ok := wordToObj["get-value"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function GetValue") + } + switch fn := ctxObj2.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedTree: context fn GetValue: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_GetValue = func(ctx env.RyeCtx, farg0 string) (any, error) { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res0 any + var res1 error + res, ok := ps.Res.(env.Block) + if !ok { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block for multiple return values, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + if len(res.Series.S) != 2 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block with 2 return values, but got "+strconv.Itoa(len(res.Series.S))+" return values", + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[0].(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + res0 = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected native of type any, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[1].(type) { + case env.String: + res1 = errors.New(v.Value) + case env.Error: + res1 = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + res1 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + return res0, res1 + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn GetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj3, ok := wordToObj["prepend"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function Prepend") + } + switch fn := ctxObj3.(type) { + case env.Function: + if fn.Argsn != 3 { + return nil, errors.New("context to binding.UntypedTree: context fn Prepend: " + "expected 3 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Prepend = func(ctx env.RyeCtx, farg0 string, farg1 string, farg2 any) error { + var farg0Val, farg1Val, farg2Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewString(farg1) + farg2Val = *env.NewNative(ps.Idx, farg2, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val, farg2Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn Prepend: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj4, ok := wordToObj["remove"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function Remove") + } + switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedTree: context fn Remove: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Remove = func(ctx env.RyeCtx, farg0 string) error { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn Remove: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["set"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function Set") + } + switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.UntypedTree: context fn Set: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Set = func(ctx env.RyeCtx, farg0 map[string][]string, farg1 map[string]any) error { + var farg0Val, farg1Val env.Object + { + data := make(map[string]any, len(farg0)) + for mKey, mVal := range farg0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + farg0Val = *env.NewDict(data) + } + { + data := make(map[string]any, len(farg1)) + for mKey, mVal := range farg1 { + var dVal env.Object + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") + data[mKey] = dVal + } + farg1Val = *env.NewDict(data) + } + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn Set: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["set-value"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function SetValue") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 2 { + return nil, errors.New("context to binding.UntypedTree: context fn SetValue: " + "expected 2 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_SetValue = func(ctx env.RyeCtx, farg0 string, farg1 any) error { + var farg0Val, farg1Val env.Object + farg0Val = *env.NewString(farg0) + farg1Val = *env.NewNative(ps.Idx, farg1, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val) + var res error + switch v := ps.Res.(type) { + case env.String: + res = errors.New(v.Value) + case env.Error: + res = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn SetValue: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj7, ok := wordToObj["get-item"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function GetItem") + } + switch fn := ctxObj7.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedTree: context fn GetItem: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_GetItem = func(ctx env.RyeCtx, farg0 string) (binding.DataItem, error) { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res0 binding.DataItem + var res1 error + res, ok := ps.Res.(env.Block) + if !ok { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block for multiple return values, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + if len(res.Series.S) != 2 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block with 2 return values, but got "+strconv.Itoa(len(res.Series.S))+" return values", + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[0].(type) { + case env.RyeCtx: + var err error + res0, err = ctxTo_binding_DataItem(ps, v) + if err != nil { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+err.Error(), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + case env.Native: + if vc, ok := v.Value.(binding.DataItem); ok { + res0 = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected native of type binding.DataItem, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + res0 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + switch v := res.Series.S[1].(type) { + case env.String: + res1 = errors.New(v.Value) + case env.Error: + res1 = errors.New(v.Print(*ps.Idx)) + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + res1 = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected error, string or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res0, res1 + } + return res0, res1 + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn GetItem: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj8, ok := wordToObj["child-i-ds"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function ChildIDs") + } + switch fn := ctxObj8.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedTree: context fn ChildIDs: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_ChildIDs = func(ctx env.RyeCtx, farg0 string) []string { + var farg0Val env.Object + farg0Val = *env.NewString(farg0) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + var res []string + switch v := ps.Res.(type) { + case env.Block: + res = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &res[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"block item: "+"expected string, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to binding.UntypedTree: arg 0: callback result: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn ChildIDs: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj9, ok := wordToObj["add-listener"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function AddListener") + } + switch fn := ctxObj9.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedTree: context fn AddListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_AddListener = func(ctx env.RyeCtx, farg0 binding.DataListener) { + var farg0Val env.Object + farg0Val = ifaceToNative(ps.Idx, farg0, "Go(binding.DataListener)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn AddListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj10, ok := wordToObj["remove-listener"] + if !ok { + return nil, errors.New("context to binding.UntypedTree: expected context to have function RemoveListener") + } + switch fn := ctxObj10.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to binding.UntypedTree: context fn RemoveListener: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_RemoveListener = func(ctx env.RyeCtx, farg0 binding.DataListener) { + var farg0Val env.Object + farg0Val = ifaceToNative(ps.Idx, farg0, "Go(binding.DataListener)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + } + default: + return nil, errors.New("context to binding.UntypedTree: context fn RemoveListener: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + return impl, nil +} + type iface_desktop_App struct { self env.RyeCtx fn_SetSystemTrayMenu func(self env.RyeCtx, arg0 *fyne.Menu) @@ -29710,6 +33482,7 @@ type iface_desktop_App struct { func (self *iface_desktop_App) SetSystemTrayMenu(arg0 *fyne.Menu) { self.fn_SetSystemTrayMenu(self.self, arg0) } + func (self *iface_desktop_App) SetSystemTrayIcon(arg0 fyne.Resource) { self.fn_SetSystemTrayIcon(self.self, arg0) } @@ -29784,12 +33557,15 @@ type iface_desktop_Canvas struct { func (self *iface_desktop_Canvas) OnKeyDown() func(*fyne.KeyEvent) { return self.fn_OnKeyDown(self.self) } + func (self *iface_desktop_Canvas) SetOnKeyDown(arg0 func(*fyne.KeyEvent)) { self.fn_SetOnKeyDown(self.self, arg0) } + func (self *iface_desktop_Canvas) OnKeyUp() func(*fyne.KeyEvent) { return self.fn_OnKeyUp(self.self) } + func (self *iface_desktop_Canvas) SetOnKeyUp(arg0 func(*fyne.KeyEvent)) { self.fn_SetOnKeyUp(self.self, arg0) } @@ -30228,6 +34004,7 @@ type iface_desktop_Driver struct { func (self *iface_desktop_Driver) CreateSplashWindow() fyne.Window { return self.fn_CreateSplashWindow(self.self) } + func (self *iface_desktop_Driver) CurrentKeyModifiers() fyne.KeyModifier { return self.fn_CurrentKeyModifiers(self.self) } @@ -30371,9 +34148,11 @@ type iface_desktop_Hoverable struct { func (self *iface_desktop_Hoverable) MouseIn(arg0 *desktop.MouseEvent) { self.fn_MouseIn(self.self, arg0) } + func (self *iface_desktop_Hoverable) MouseMoved(arg0 *desktop.MouseEvent) { self.fn_MouseMoved(self.self, arg0) } + func (self *iface_desktop_Hoverable) MouseOut() { self.fn_MouseOut(self.self) } @@ -30467,18 +34246,23 @@ type iface_desktop_Keyable struct { func (self *iface_desktop_Keyable) KeyDown(arg0 *fyne.KeyEvent) { self.fn_KeyDown(self.self, arg0) } + func (self *iface_desktop_Keyable) KeyUp(arg0 *fyne.KeyEvent) { self.fn_KeyUp(self.self, arg0) } + func (self *iface_desktop_Keyable) FocusGained() { self.fn_FocusGained(self.self) } + func (self *iface_desktop_Keyable) FocusLost() { self.fn_FocusLost(self.self) } + func (self *iface_desktop_Keyable) TypedRune(arg0 rune) { self.fn_TypedRune(self.self, arg0) } + func (self *iface_desktop_Keyable) TypedKey(arg0 *fyne.KeyEvent) { self.fn_TypedKey(self.self, arg0) } @@ -30623,6 +34407,7 @@ type iface_desktop_Mouseable struct { func (self *iface_desktop_Mouseable) MouseDown(arg0 *desktop.MouseEvent) { self.fn_MouseDown(self.self, arg0) } + func (self *iface_desktop_Mouseable) MouseUp(arg0 *desktop.MouseEvent) { self.fn_MouseUp(self.self, arg0) } @@ -30700,21 +34485,27 @@ type iface_dialog_Dialog struct { func (self *iface_dialog_Dialog) Show() { self.fn_Show(self.self) } + func (self *iface_dialog_Dialog) Hide() { self.fn_Hide(self.self) } + func (self *iface_dialog_Dialog) SetDismissText(arg0 string) { self.fn_SetDismissText(self.self, arg0) } + func (self *iface_dialog_Dialog) SetOnClosed(arg0 func()) { self.fn_SetOnClosed(self.self, arg0) } + func (self *iface_dialog_Dialog) Refresh() { self.fn_Refresh(self.self) } + func (self *iface_dialog_Dialog) Resize(arg0 fyne.Size) { self.fn_Resize(self.self, arg0) } + func (self *iface_dialog_Dialog) MinSize() fyne.Size { return self.fn_MinSize(self.self) } @@ -30915,48 +34706,63 @@ type iface_fyne_App struct { func (self *iface_fyne_App) NewWindow(arg0 string) fyne.Window { return self.fn_NewWindow(self.self, arg0) } + func (self *iface_fyne_App) OpenURL(arg0 *url.URL) error { return self.fn_OpenURL(self.self, arg0) } + func (self *iface_fyne_App) Icon() fyne.Resource { return self.fn_Icon(self.self) } + func (self *iface_fyne_App) SetIcon(arg0 fyne.Resource) { self.fn_SetIcon(self.self, arg0) } + func (self *iface_fyne_App) Run() { self.fn_Run(self.self) } + func (self *iface_fyne_App) Quit() { self.fn_Quit(self.self) } + func (self *iface_fyne_App) Driver() fyne.Driver { return self.fn_Driver(self.self) } + func (self *iface_fyne_App) UniqueID() string { return self.fn_UniqueID(self.self) } + func (self *iface_fyne_App) SendNotification(arg0 *fyne.Notification) { self.fn_SendNotification(self.self, arg0) } + func (self *iface_fyne_App) Settings() fyne.Settings { return self.fn_Settings(self.self) } + func (self *iface_fyne_App) Preferences() fyne.Preferences { return self.fn_Preferences(self.self) } + func (self *iface_fyne_App) Storage() fyne.Storage { return self.fn_Storage(self.self) } + func (self *iface_fyne_App) Lifecycle() fyne.Lifecycle { return self.fn_Lifecycle(self.self) } + func (self *iface_fyne_App) Metadata() fyne.AppMetadata { return self.fn_Metadata(self.self) } + func (self *iface_fyne_App) CloudProvider() fyne.CloudProvider { return self.fn_CloudProvider(self.self) } + func (self *iface_fyne_App) SetCloudProvider(arg0 fyne.CloudProvider) { self.fn_SetCloudProvider(self.self, arg0) } @@ -31731,60 +35537,79 @@ type iface_fyne_Canvas struct { func (self *iface_fyne_Canvas) Content() fyne.CanvasObject { return self.fn_Content(self.self) } + func (self *iface_fyne_Canvas) SetContent(arg0 fyne.CanvasObject) { self.fn_SetContent(self.self, arg0) } + func (self *iface_fyne_Canvas) Refresh(arg0 fyne.CanvasObject) { self.fn_Refresh(self.self, arg0) } + func (self *iface_fyne_Canvas) Focus(arg0 fyne.Focusable) { self.fn_Focus(self.self, arg0) } + func (self *iface_fyne_Canvas) FocusNext() { self.fn_FocusNext(self.self) } + func (self *iface_fyne_Canvas) FocusPrevious() { self.fn_FocusPrevious(self.self) } + func (self *iface_fyne_Canvas) Unfocus() { self.fn_Unfocus(self.self) } + func (self *iface_fyne_Canvas) Focused() fyne.Focusable { return self.fn_Focused(self.self) } + func (self *iface_fyne_Canvas) Size() fyne.Size { return self.fn_Size(self.self) } + func (self *iface_fyne_Canvas) Scale() float32 { return self.fn_Scale(self.self) } + func (self *iface_fyne_Canvas) Overlays() fyne.OverlayStack { return self.fn_Overlays(self.self) } + func (self *iface_fyne_Canvas) OnTypedRune() func(rune) { return self.fn_OnTypedRune(self.self) } + func (self *iface_fyne_Canvas) SetOnTypedRune(arg0 func(rune)) { self.fn_SetOnTypedRune(self.self, arg0) } + func (self *iface_fyne_Canvas) OnTypedKey() func(*fyne.KeyEvent) { return self.fn_OnTypedKey(self.self) } + func (self *iface_fyne_Canvas) SetOnTypedKey(arg0 func(*fyne.KeyEvent)) { self.fn_SetOnTypedKey(self.self, arg0) } + func (self *iface_fyne_Canvas) AddShortcut(arg0 fyne.Shortcut, arg1 func(fyne.Shortcut)) { self.fn_AddShortcut(self.self, arg0, arg1) } + func (self *iface_fyne_Canvas) RemoveShortcut(arg0 fyne.Shortcut) { self.fn_RemoveShortcut(self.self, arg0) } + func (self *iface_fyne_Canvas) Capture() image.Image { return self.fn_Capture(self.self) } + func (self *iface_fyne_Canvas) PixelCoordinateForPosition(arg0 fyne.Position) (int, int) { return self.fn_PixelCoordinateForPosition(self.self, arg0) } + func (self *iface_fyne_Canvas) InteractiveArea() (fyne.Position, fyne.Size) { return self.fn_InteractiveArea(self.self) } @@ -32642,27 +36467,35 @@ type iface_fyne_CanvasObject struct { func (self *iface_fyne_CanvasObject) MinSize() fyne.Size { return self.fn_MinSize(self.self) } + func (self *iface_fyne_CanvasObject) Move(arg0 fyne.Position) { self.fn_Move(self.self, arg0) } + func (self *iface_fyne_CanvasObject) Position() fyne.Position { return self.fn_Position(self.self) } + func (self *iface_fyne_CanvasObject) Resize(arg0 fyne.Size) { self.fn_Resize(self.self, arg0) } + func (self *iface_fyne_CanvasObject) Size() fyne.Size { return self.fn_Size(self.self) } + func (self *iface_fyne_CanvasObject) Hide() { self.fn_Hide(self.self) } + func (self *iface_fyne_CanvasObject) Visible() bool { return self.fn_Visible(self.self) } + func (self *iface_fyne_CanvasObject) Show() { self.fn_Show(self.self) } + func (self *iface_fyne_CanvasObject) Refresh() { self.fn_Refresh(self.self) } @@ -32939,6 +36772,7 @@ type iface_fyne_Clipboard struct { func (self *iface_fyne_Clipboard) Content() string { return self.fn_Content(self.self) } + func (self *iface_fyne_Clipboard) SetContent(arg0 string) { self.fn_SetContent(self.self, arg0) } @@ -33025,15 +36859,19 @@ type iface_fyne_CloudProvider struct { func (self *iface_fyne_CloudProvider) ProviderDescription() string { return self.fn_ProviderDescription(self.self) } + func (self *iface_fyne_CloudProvider) ProviderIcon() fyne.Resource { return self.fn_ProviderIcon(self.self) } + func (self *iface_fyne_CloudProvider) ProviderName() string { return self.fn_ProviderName(self.self) } + func (self *iface_fyne_CloudProvider) Cleanup(arg0 fyne.App) { self.fn_Cleanup(self.self, arg0) } + func (self *iface_fyne_CloudProvider) Setup(arg0 fyne.App) error { return self.fn_Setup(self.self, arg0) } @@ -33447,24 +37285,33 @@ type iface_fyne_Device struct { fn_IsBrowser func(self env.RyeCtx) bool fn_HasKeyboard func(self env.RyeCtx) bool fn_SystemScaleForWindow func(self env.RyeCtx, arg0 fyne.Window) float32 + fn_Locale func(self env.RyeCtx) fyne.Locale } func (self *iface_fyne_Device) Orientation() fyne.DeviceOrientation { return self.fn_Orientation(self.self) } + func (self *iface_fyne_Device) IsMobile() bool { return self.fn_IsMobile(self.self) } + func (self *iface_fyne_Device) IsBrowser() bool { return self.fn_IsBrowser(self.self) } + func (self *iface_fyne_Device) HasKeyboard() bool { return self.fn_HasKeyboard(self.self) } + func (self *iface_fyne_Device) SystemScaleForWindow(arg0 fyne.Window) float32 { return self.fn_SystemScaleForWindow(self.self, arg0) } +func (self *iface_fyne_Device) Locale() fyne.Locale { + return self.fn_Locale(self.self) +} + func ctxTo_fyne_Device(ps *env.ProgramState, v env.RyeCtx) (fyne.Device, error) { words := v.GetWords(*ps.Idx).Series.S wordToObj := make(map[string]env.Object, len(words)) @@ -33649,6 +37496,50 @@ func ctxTo_fyne_Device(ps *env.ProgramState, v env.RyeCtx) (fyne.Device, error) default: return nil, errors.New("context to fyne.Device: context fn SystemScaleForWindow: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } + ctxObj5, ok := wordToObj["locale"] + if !ok { + return nil, errors.New("context to fyne.Device: expected context to have function Locale") + } + switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.Device: context fn Locale: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Locale = func(ctx env.RyeCtx) fyne.Locale { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res fyne.Locale + { + nat, natOk := ps.Res.(env.Native) + var natValOk bool + var natVal fyne.Locale + if natOk { + natVal, natValOk = nat.Value.(fyne.Locale) + } + if natValOk { + res = natVal + } else { + var u string + if vc, ok := ps.Res.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.Device: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = fyne.Locale(u) + } + } + return res + } + default: + return nil, errors.New("context to fyne.Device: context fn Locale: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } return impl, nil } @@ -33662,9 +37553,11 @@ type iface_fyne_Disableable struct { func (self *iface_fyne_Disableable) Enable() { self.fn_Enable(self.self) } + func (self *iface_fyne_Disableable) Disable() { self.fn_Disable(self.self) } + func (self *iface_fyne_Disableable) Disabled() bool { return self.fn_Disabled(self.self) } @@ -33812,6 +37705,7 @@ type iface_fyne_Draggable struct { func (self *iface_fyne_Draggable) Dragged(arg0 *fyne.DragEvent) { self.fn_Dragged(self.self, arg0) } + func (self *iface_fyne_Draggable) DragEnd() { self.fn_DragEnd(self.self) } @@ -33877,7 +37771,7 @@ type iface_fyne_Driver struct { self env.RyeCtx fn_CreateWindow func(self env.RyeCtx, arg0 string) fyne.Window fn_AllWindows func(self env.RyeCtx) []fyne.Window - fn_RenderedTextSize func(self env.RyeCtx, arg0 string, arg1 float32, arg2 fyne.TextStyle) (fyne.Size, float32) + fn_RenderedTextSize func(self env.RyeCtx, arg0 string, arg1 float32, arg2 fyne.TextStyle, arg3 fyne.Resource) (fyne.Size, float32) fn_CanvasForObject func(self env.RyeCtx, arg0 fyne.CanvasObject) fyne.Canvas fn_AbsolutePositionForObject func(self env.RyeCtx, arg0 fyne.CanvasObject) fyne.Position fn_Device func(self env.RyeCtx) fyne.Device @@ -33885,39 +37779,58 @@ type iface_fyne_Driver struct { fn_Quit func(self env.RyeCtx) fn_StartAnimation func(self env.RyeCtx, arg0 *fyne.Animation) fn_StopAnimation func(self env.RyeCtx, arg0 *fyne.Animation) + fn_DoubleTapDelay func(self env.RyeCtx) time.Duration + fn_SetDisableScreenBlanking func(self env.RyeCtx, arg0 bool) } func (self *iface_fyne_Driver) CreateWindow(arg0 string) fyne.Window { return self.fn_CreateWindow(self.self, arg0) } + func (self *iface_fyne_Driver) AllWindows() []fyne.Window { return self.fn_AllWindows(self.self) } -func (self *iface_fyne_Driver) RenderedTextSize(arg0 string, arg1 float32, arg2 fyne.TextStyle) (fyne.Size, float32) { - return self.fn_RenderedTextSize(self.self, arg0, arg1, arg2) + +func (self *iface_fyne_Driver) RenderedTextSize(arg0 string, arg1 float32, arg2 fyne.TextStyle, arg3 fyne.Resource) (fyne.Size, float32) { + return self.fn_RenderedTextSize(self.self, arg0, arg1, arg2, arg3) } + func (self *iface_fyne_Driver) CanvasForObject(arg0 fyne.CanvasObject) fyne.Canvas { return self.fn_CanvasForObject(self.self, arg0) } + func (self *iface_fyne_Driver) AbsolutePositionForObject(arg0 fyne.CanvasObject) fyne.Position { return self.fn_AbsolutePositionForObject(self.self, arg0) } + func (self *iface_fyne_Driver) Device() fyne.Device { return self.fn_Device(self.self) } + func (self *iface_fyne_Driver) Run() { self.fn_Run(self.self) } + func (self *iface_fyne_Driver) Quit() { self.fn_Quit(self.self) } + func (self *iface_fyne_Driver) StartAnimation(arg0 *fyne.Animation) { self.fn_StartAnimation(self.self, arg0) } + func (self *iface_fyne_Driver) StopAnimation(arg0 *fyne.Animation) { self.fn_StopAnimation(self.self, arg0) } +func (self *iface_fyne_Driver) DoubleTapDelay() time.Duration { + return self.fn_DoubleTapDelay(self.self) +} + +func (self *iface_fyne_Driver) SetDisableScreenBlanking(arg0 bool) { + self.fn_SetDisableScreenBlanking(self.self, arg0) +} + func ctxTo_fyne_Driver(ps *env.ProgramState, v env.RyeCtx) (fyne.Driver, error) { words := v.GetWords(*ps.Idx).Series.S wordToObj := make(map[string]env.Object, len(words)) @@ -34020,10 +37933,11 @@ func ctxTo_fyne_Driver(ps *env.ProgramState, v env.RyeCtx) (fyne.Driver, error) case env.Block: res = make([]fyne.Window, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] switch v := it.(type) { case env.RyeCtx: var err error - res[i], err = ctxTo_fyne_Window(ps, v) + (*iv), err = ctxTo_fyne_Window(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -34035,7 +37949,7 @@ func ctxTo_fyne_Driver(ps *env.ProgramState, v env.RyeCtx) (fyne.Driver, error) } case env.Native: if vc, ok := v.Value.(fyne.Window); ok { - res[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -34055,7 +37969,7 @@ func ctxTo_fyne_Driver(ps *env.ProgramState, v env.RyeCtx) (fyne.Driver, error) ) return res } - res[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -34097,17 +38011,18 @@ func ctxTo_fyne_Driver(ps *env.ProgramState, v env.RyeCtx) (fyne.Driver, error) } switch fn := ctxObj2.(type) { case env.Function: - if fn.Argsn != 3 { - return nil, errors.New("context to fyne.Driver: context fn RenderedTextSize: " + "expected 3 function arguments, but got " + strconv.Itoa(fn.Argsn)) + if fn.Argsn != 4 { + return nil, errors.New("context to fyne.Driver: context fn RenderedTextSize: " + "expected 4 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - impl.fn_RenderedTextSize = func(ctx env.RyeCtx, farg0 string, farg1 float32, farg2 fyne.TextStyle) (fyne.Size, float32) { - var farg0Val, farg1Val, farg2Val env.Object + impl.fn_RenderedTextSize = func(ctx env.RyeCtx, farg0 string, farg1 float32, farg2 fyne.TextStyle, farg3 fyne.Resource) (fyne.Size, float32) { + var farg0Val, farg1Val, farg2Val, farg3Val env.Object farg0Val = *env.NewString(farg0) farg1Val = *env.NewDecimal(float64(farg1)) farg2Val = *env.NewNative(ps.Idx, &farg2, "Go(*fyne.TextStyle)") + farg3Val = ifaceToNative(ps.Idx, farg3, "Go(fyne.Resource)") actualFn := fn _ = actualFn - evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val, farg2Val) + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val, farg1Val, farg2Val, farg3Val) var res0 fyne.Size var res1 float32 res, ok := ps.Res.(env.Block) @@ -34412,6 +38327,66 @@ func ctxTo_fyne_Driver(ps *env.ProgramState, v env.RyeCtx) (fyne.Driver, error) default: return nil, errors.New("context to fyne.Driver: context fn StopAnimation: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } + ctxObj10, ok := wordToObj["double-tap-delay"] + if !ok { + return nil, errors.New("context to fyne.Driver: expected context to have function DoubleTapDelay") + } + switch fn := ctxObj10.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.Driver: context fn DoubleTapDelay: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_DoubleTapDelay = func(ctx env.RyeCtx) time.Duration { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res time.Duration + switch v := ps.Res.(type) { + case env.Native: + if vc, ok := v.Value.(time.Duration); ok { + res = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.Driver: arg 0: callback result: "+"expected native of type time.Duration, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.Driver: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.Driver: context fn DoubleTapDelay: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj11, ok := wordToObj["set-disable-screen-blanking"] + if !ok { + return nil, errors.New("context to fyne.Driver: expected context to have function SetDisableScreenBlanking") + } + switch fn := ctxObj11.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to fyne.Driver: context fn SetDisableScreenBlanking: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_SetDisableScreenBlanking = func(ctx env.RyeCtx, farg0 bool) { + var farg0Val env.Object + farg0Val = *env.NewInteger(boolToInt64(farg0)) + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + } + default: + return nil, errors.New("context to fyne.Driver: context fn SetDisableScreenBlanking: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } return impl, nil } @@ -34426,12 +38401,15 @@ type iface_fyne_Focusable struct { func (self *iface_fyne_Focusable) FocusGained() { self.fn_FocusGained(self.self) } + func (self *iface_fyne_Focusable) FocusLost() { self.fn_FocusLost(self.self) } + func (self *iface_fyne_Focusable) TypedRune(arg0 rune) { self.fn_TypedRune(self.self, arg0) } + func (self *iface_fyne_Focusable) TypedKey(arg0 *fyne.KeyEvent) { self.fn_TypedKey(self.self, arg0) } @@ -34539,9 +38517,11 @@ type iface_fyne_KeyboardShortcut struct { func (self *iface_fyne_KeyboardShortcut) Key() fyne.KeyName { return self.fn_Key(self.self) } + func (self *iface_fyne_KeyboardShortcut) Mod() fyne.KeyModifier { return self.fn_Mod(self.self) } + func (self *iface_fyne_KeyboardShortcut) ShortcutName() string { return self.fn_ShortcutName(self.self) } @@ -34694,6 +38674,7 @@ type iface_fyne_Layout struct { func (self *iface_fyne_Layout) Layout(arg0 []fyne.CanvasObject, arg1 fyne.Size) { self.fn_Layout(self.self, arg0, arg1) } + func (self *iface_fyne_Layout) MinSize(arg0 []fyne.CanvasObject) fyne.Size { return self.fn_MinSize(self.self, arg0) } @@ -34822,63 +38803,83 @@ type iface_fyne_LegacyTheme struct { func (self *iface_fyne_LegacyTheme) BackgroundColor() color.Color { return self.fn_BackgroundColor(self.self) } + func (self *iface_fyne_LegacyTheme) ButtonColor() color.Color { return self.fn_ButtonColor(self.self) } + func (self *iface_fyne_LegacyTheme) DisabledButtonColor() color.Color { return self.fn_DisabledButtonColor(self.self) } + func (self *iface_fyne_LegacyTheme) TextColor() color.Color { return self.fn_TextColor(self.self) } + func (self *iface_fyne_LegacyTheme) DisabledTextColor() color.Color { return self.fn_DisabledTextColor(self.self) } + func (self *iface_fyne_LegacyTheme) PlaceHolderColor() color.Color { return self.fn_PlaceHolderColor(self.self) } + func (self *iface_fyne_LegacyTheme) PrimaryColor() color.Color { return self.fn_PrimaryColor(self.self) } + func (self *iface_fyne_LegacyTheme) HoverColor() color.Color { return self.fn_HoverColor(self.self) } + func (self *iface_fyne_LegacyTheme) FocusColor() color.Color { return self.fn_FocusColor(self.self) } + func (self *iface_fyne_LegacyTheme) ScrollBarColor() color.Color { return self.fn_ScrollBarColor(self.self) } + func (self *iface_fyne_LegacyTheme) ShadowColor() color.Color { return self.fn_ShadowColor(self.self) } + func (self *iface_fyne_LegacyTheme) TextSize() int { return self.fn_TextSize(self.self) } + func (self *iface_fyne_LegacyTheme) TextFont() fyne.Resource { return self.fn_TextFont(self.self) } + func (self *iface_fyne_LegacyTheme) TextBoldFont() fyne.Resource { return self.fn_TextBoldFont(self.self) } + func (self *iface_fyne_LegacyTheme) TextItalicFont() fyne.Resource { return self.fn_TextItalicFont(self.self) } + func (self *iface_fyne_LegacyTheme) TextBoldItalicFont() fyne.Resource { return self.fn_TextBoldItalicFont(self.self) } + func (self *iface_fyne_LegacyTheme) TextMonospaceFont() fyne.Resource { return self.fn_TextMonospaceFont(self.self) } + func (self *iface_fyne_LegacyTheme) Padding() int { return self.fn_Padding(self.self) } + func (self *iface_fyne_LegacyTheme) IconInlineSize() int { return self.fn_IconInlineSize(self.self) } + func (self *iface_fyne_LegacyTheme) ScrollBarSize() int { return self.fn_ScrollBarSize(self.self) } + func (self *iface_fyne_LegacyTheme) ScrollBarSmallSize() int { return self.fn_ScrollBarSmallSize(self.self) } @@ -35836,12 +39837,15 @@ type iface_fyne_Lifecycle struct { func (self *iface_fyne_Lifecycle) SetOnEnteredForeground(arg0 func()) { self.fn_SetOnEnteredForeground(self.self, arg0) } + func (self *iface_fyne_Lifecycle) SetOnExitedForeground(arg0 func()) { self.fn_SetOnExitedForeground(self.self, arg0) } + func (self *iface_fyne_Lifecycle) SetOnStarted(arg0 func()) { self.fn_SetOnStarted(self.self, arg0) } + func (self *iface_fyne_Lifecycle) SetOnStopped(arg0 func()) { self.fn_SetOnStopped(self.self, arg0) } @@ -35972,30 +39976,39 @@ type iface_fyne_ListableURI struct { func (self *iface_fyne_ListableURI) List() ([]fyne.URI, error) { return self.fn_List(self.self) } + func (self *iface_fyne_ListableURI) Extension() string { return self.fn_Extension(self.self) } + func (self *iface_fyne_ListableURI) Name() string { return self.fn_Name(self.self) } + func (self *iface_fyne_ListableURI) MimeType() string { return self.fn_MimeType(self.self) } + func (self *iface_fyne_ListableURI) Scheme() string { return self.fn_Scheme(self.self) } + func (self *iface_fyne_ListableURI) Authority() string { return self.fn_Authority(self.self) } + func (self *iface_fyne_ListableURI) Path() string { return self.fn_Path(self.self) } + func (self *iface_fyne_ListableURI) Query() string { return self.fn_Query(self.self) } + func (self *iface_fyne_ListableURI) Fragment() string { return self.fn_Fragment(self.self) } + func (self *iface_fyne_ListableURI) String() string { return self.fn_String(self.self) } @@ -36056,10 +40069,11 @@ func ctxTo_fyne_ListableURI(ps *env.ProgramState, v env.RyeCtx) (fyne.ListableUR case env.Block: res0 = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.RyeCtx: var err error - res0[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36071,7 +40085,7 @@ func ctxTo_fyne_ListableURI(ps *env.ProgramState, v env.RyeCtx) (fyne.ListableUR } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - res0[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36091,7 +40105,7 @@ func ctxTo_fyne_ListableURI(ps *env.ProgramState, v env.RyeCtx) (fyne.ListableUR ) return res0, res1 } - res0[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36436,12 +40450,15 @@ type iface_fyne_OverlayStack struct { func (self *iface_fyne_OverlayStack) Add(arg0 fyne.CanvasObject) { self.fn_Add(self.self, arg0) } + func (self *iface_fyne_OverlayStack) List() []fyne.CanvasObject { return self.fn_List(self.self) } + func (self *iface_fyne_OverlayStack) Remove(arg0 fyne.CanvasObject) { self.fn_Remove(self.self, arg0) } + func (self *iface_fyne_OverlayStack) Top() fyne.CanvasObject { return self.fn_Top(self.self) } @@ -36501,10 +40518,11 @@ func ctxTo_fyne_OverlayStack(ps *env.ProgramState, v env.RyeCtx) (fyne.OverlaySt case env.Block: res = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] switch v := it.(type) { case env.RyeCtx: var err error - res[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36516,7 +40534,7 @@ func ctxTo_fyne_OverlayStack(ps *env.ProgramState, v env.RyeCtx) (fyne.OverlaySt } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - res[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36536,7 +40554,7 @@ func ctxTo_fyne_OverlayStack(ps *env.ProgramState, v env.RyeCtx) (fyne.OverlaySt ) return res } - res[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36692,81 +40710,107 @@ type iface_fyne_Preferences struct { func (self *iface_fyne_Preferences) Bool(arg0 string) bool { return self.fn_Bool(self.self, arg0) } + func (self *iface_fyne_Preferences) BoolWithFallback(arg0 string, arg1 bool) bool { return self.fn_BoolWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetBool(arg0 string, arg1 bool) { self.fn_SetBool(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) BoolList(arg0 string) []bool { return self.fn_BoolList(self.self, arg0) } + func (self *iface_fyne_Preferences) BoolListWithFallback(arg0 string, arg1 []bool) []bool { return self.fn_BoolListWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetBoolList(arg0 string, arg1 []bool) { self.fn_SetBoolList(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) Float(arg0 string) float64 { return self.fn_Float(self.self, arg0) } + func (self *iface_fyne_Preferences) FloatWithFallback(arg0 string, arg1 float64) float64 { return self.fn_FloatWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetFloat(arg0 string, arg1 float64) { self.fn_SetFloat(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) FloatList(arg0 string) []float64 { return self.fn_FloatList(self.self, arg0) } + func (self *iface_fyne_Preferences) FloatListWithFallback(arg0 string, arg1 []float64) []float64 { return self.fn_FloatListWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetFloatList(arg0 string, arg1 []float64) { self.fn_SetFloatList(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) Int(arg0 string) int { return self.fn_Int(self.self, arg0) } + func (self *iface_fyne_Preferences) IntWithFallback(arg0 string, arg1 int) int { return self.fn_IntWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetInt(arg0 string, arg1 int) { self.fn_SetInt(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) IntList(arg0 string) []int { return self.fn_IntList(self.self, arg0) } + func (self *iface_fyne_Preferences) IntListWithFallback(arg0 string, arg1 []int) []int { return self.fn_IntListWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetIntList(arg0 string, arg1 []int) { self.fn_SetIntList(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) String(arg0 string) string { return self.fn_String(self.self, arg0) } + func (self *iface_fyne_Preferences) StringWithFallback(arg0 string, arg1 string) string { return self.fn_StringWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetString(arg0 string, arg1 string) { self.fn_SetString(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) StringList(arg0 string) []string { return self.fn_StringList(self.self, arg0) } + func (self *iface_fyne_Preferences) StringListWithFallback(arg0 string, arg1 []string) []string { return self.fn_StringListWithFallback(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) SetStringList(arg0 string, arg1 []string) { self.fn_SetStringList(self.self, arg0, arg1) } + func (self *iface_fyne_Preferences) RemoveValue(arg0 string) { self.fn_RemoveValue(self.self, arg0) } + func (self *iface_fyne_Preferences) AddChangeListener(arg0 func()) { self.fn_AddChangeListener(self.self, arg0) } + func (self *iface_fyne_Preferences) ChangeListeners() []func() { return self.fn_ChangeListeners(self.self) } @@ -36894,8 +40938,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.Integer); ok { - res[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -36958,8 +41003,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.Integer); ok { - res[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37126,8 +41172,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.Decimal); ok { - res[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37190,8 +41237,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.Decimal); ok { - res[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37358,8 +41406,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.Integer); ok { - res[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37422,8 +41471,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.Integer); ok { - res[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37590,8 +41640,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37654,8 +41705,9 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37776,6 +41828,7 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference case env.Block: res = make([]func(), len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] switch fn := it.(type) { case env.Function: if fn.Argsn != 0 { @@ -37787,7 +41840,7 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference ) return res } - res[i] = func() { + (*iv) = func() { actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, ps.Ctx) @@ -37802,7 +41855,7 @@ func ctxTo_fyne_Preferences(ps *env.ProgramState, v env.RyeCtx) (fyne.Preference ) return res } - res[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -37850,6 +41903,7 @@ type iface_fyne_Resource struct { func (self *iface_fyne_Resource) Name() string { return self.fn_Name(self.self) } + func (self *iface_fyne_Resource) Content() []byte { return self.fn_Content(self.self) } @@ -37920,23 +41974,13 @@ func ctxTo_fyne_Resource(ps *env.ProgramState, v env.RyeCtx) (fyne.Resource, err case env.Block: res = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - res[i] = vc - } else { - ps.FailureFlag = true - fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to fyne.Resource: arg 0: callback result: "+"block item: "+"expected native of type byte, but got "+objectDebugString(ps.Idx, v), - actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), - actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), - ) - return res - } - default: + iv := &res[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", - "context to fyne.Resource: arg 0: callback result: "+"block item: "+"expected native, but got "+objectDebugString(ps.Idx, v), + "context to fyne.Resource: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), ) @@ -38084,24 +42128,31 @@ type iface_fyne_Settings struct { func (self *iface_fyne_Settings) Theme() fyne.Theme { return self.fn_Theme(self.self) } + func (self *iface_fyne_Settings) SetTheme(arg0 fyne.Theme) { self.fn_SetTheme(self.self, arg0) } + func (self *iface_fyne_Settings) ThemeVariant() fyne.ThemeVariant { return self.fn_ThemeVariant(self.self) } + func (self *iface_fyne_Settings) Scale() float32 { return self.fn_Scale(self.self) } + func (self *iface_fyne_Settings) PrimaryColor() string { return self.fn_PrimaryColor(self.self) } + func (self *iface_fyne_Settings) AddChangeListener(arg0 chan fyne.Settings) { self.fn_AddChangeListener(self.self, arg0) } + func (self *iface_fyne_Settings) BuildType() fyne.BuildType { return self.fn_BuildType(self.self) } + func (self *iface_fyne_Settings) ShowAnimations() bool { return self.fn_ShowAnimations(self.self) } @@ -38529,18 +42580,23 @@ type iface_fyne_Storage struct { func (self *iface_fyne_Storage) RootURI() fyne.URI { return self.fn_RootURI(self.self) } + func (self *iface_fyne_Storage) Create(arg0 string) (fyne.URIWriteCloser, error) { return self.fn_Create(self.self, arg0) } + func (self *iface_fyne_Storage) Open(arg0 string) (fyne.URIReadCloser, error) { return self.fn_Open(self.self, arg0) } + func (self *iface_fyne_Storage) Save(arg0 string) (fyne.URIWriteCloser, error) { return self.fn_Save(self.self, arg0) } + func (self *iface_fyne_Storage) Remove(arg0 string) error { return self.fn_Remove(self.self, arg0) } + func (self *iface_fyne_Storage) List() []string { return self.fn_List(self.self) } @@ -39024,8 +43080,9 @@ func ctxTo_fyne_Storage(ps *env.ProgramState, v env.RyeCtx) (fyne.Storage, error case env.Block: res = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] if vc, ok := it.(env.String); ok { - res[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -39184,12 +43241,15 @@ type iface_fyne_Theme struct { func (self *iface_fyne_Theme) Color(arg0 fyne.ThemeColorName, arg1 fyne.ThemeVariant) color.Color { return self.fn_Color(self.self, arg0, arg1) } + func (self *iface_fyne_Theme) Font(arg0 fyne.TextStyle) fyne.Resource { return self.fn_Font(self.self, arg0) } + func (self *iface_fyne_Theme) Icon(arg0 fyne.ThemeIconName) fyne.Resource { return self.fn_Icon(self.self, arg0) } + func (self *iface_fyne_Theme) Size(arg0 fyne.ThemeSizeName) float32 { return self.fn_Size(self.self, arg0) } @@ -39423,6 +43483,176 @@ func ctxTo_fyne_Theme(ps *env.ProgramState, v env.RyeCtx) (fyne.Theme, error) { return impl, nil } +type iface_fyne_ThemedResource struct { + self env.RyeCtx + fn_ThemeColorName func(self env.RyeCtx) fyne.ThemeColorName + fn_Name func(self env.RyeCtx) string + fn_Content func(self env.RyeCtx) []byte +} + +func (self *iface_fyne_ThemedResource) ThemeColorName() fyne.ThemeColorName { + return self.fn_ThemeColorName(self.self) +} + +func (self *iface_fyne_ThemedResource) Name() string { + return self.fn_Name(self.self) +} + +func (self *iface_fyne_ThemedResource) Content() []byte { + return self.fn_Content(self.self) +} + +func ctxTo_fyne_ThemedResource(ps *env.ProgramState, v env.RyeCtx) (fyne.ThemedResource, error) { + words := v.GetWords(*ps.Idx).Series.S + wordToObj := make(map[string]env.Object, len(words)) + for _, word := range words { + name := word.(env.String).Value + idx, ok := ps.Idx.GetIndex(name) + if !ok { + panic("expected valid word") + } + obj, ok := v.Get(idx) + if !ok { + panic("expected valid index") + } + wordToObj[name] = obj + } + impl := &iface_fyne_ThemedResource{ + self: v, + } + ctxObj0, ok := wordToObj["theme-color-name"] + if !ok { + return nil, errors.New("context to fyne.ThemedResource: expected context to have function ThemeColorName") + } + switch fn := ctxObj0.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.ThemedResource: context fn ThemeColorName: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_ThemeColorName = func(ctx env.RyeCtx) fyne.ThemeColorName { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res fyne.ThemeColorName + { + nat, natOk := ps.Res.(env.Native) + var natValOk bool + var natVal fyne.ThemeColorName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeColorName) + } + if natValOk { + res = natVal + } else { + var u string + if vc, ok := ps.Res.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.ThemedResource: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = fyne.ThemeColorName(u) + } + } + return res + } + default: + return nil, errors.New("context to fyne.ThemedResource: context fn ThemeColorName: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj1, ok := wordToObj["name"] + if !ok { + return nil, errors.New("context to fyne.ThemedResource: expected context to have function Name") + } + switch fn := ctxObj1.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.ThemedResource: context fn Name: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Name = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.ThemedResource: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.ThemedResource: context fn Name: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj2, ok := wordToObj["content"] + if !ok { + return nil, errors.New("context to fyne.ThemedResource: expected context to have function Content") + } + switch fn := ctxObj2.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.ThemedResource: context fn Content: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Content = func(ctx env.RyeCtx) []byte { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res []byte + switch v := ps.Res.(type) { + case env.Block: + res = make([]byte, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &res[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.ThemedResource: arg 0: callback result: "+"block item: "+"expected integer, but got "+objectDebugString(ps.Idx, it), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.ThemedResource: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.ThemedResource: arg 0: callback result: "+"expected block or nil, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.ThemedResource: context fn Content: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + return impl, nil +} + type iface_fyne_URI struct { self env.RyeCtx fn_Extension func(self env.RyeCtx) string @@ -39439,27 +43669,35 @@ type iface_fyne_URI struct { func (self *iface_fyne_URI) Extension() string { return self.fn_Extension(self.self) } + func (self *iface_fyne_URI) Name() string { return self.fn_Name(self.self) } + func (self *iface_fyne_URI) MimeType() string { return self.fn_MimeType(self.self) } + func (self *iface_fyne_URI) Scheme() string { return self.fn_Scheme(self.self) } + func (self *iface_fyne_URI) Authority() string { return self.fn_Authority(self.self) } + func (self *iface_fyne_URI) Path() string { return self.fn_Path(self.self) } + func (self *iface_fyne_URI) Query() string { return self.fn_Query(self.self) } + func (self *iface_fyne_URI) Fragment() string { return self.fn_Fragment(self.self) } + func (self *iface_fyne_URI) String() string { return self.fn_String(self.self) } @@ -39765,9 +44003,11 @@ type iface_fyne_URIReadCloser struct { func (self *iface_fyne_URIReadCloser) URI() fyne.URI { return self.fn_URI(self.self) } + func (self *iface_fyne_URIReadCloser) Read(arg0 []byte) (int, error) { return self.fn_Read(self.self, arg0) } + func (self *iface_fyne_URIReadCloser) Close() error { return self.fn_Close(self.self) } @@ -39868,7 +44108,7 @@ func ctxTo_fyne_URIReadCloser(ps *env.ProgramState, v env.RyeCtx) (fyne.URIReadC { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -39984,6 +44224,415 @@ func ctxTo_fyne_URIReadCloser(ps *env.ProgramState, v env.RyeCtx) (fyne.URIReadC return impl, nil } +type iface_fyne_URIWithIcon struct { + self env.RyeCtx + fn_Icon func(self env.RyeCtx) fyne.Resource + fn_Extension func(self env.RyeCtx) string + fn_Name func(self env.RyeCtx) string + fn_MimeType func(self env.RyeCtx) string + fn_Scheme func(self env.RyeCtx) string + fn_Authority func(self env.RyeCtx) string + fn_Path func(self env.RyeCtx) string + fn_Query func(self env.RyeCtx) string + fn_Fragment func(self env.RyeCtx) string + fn_String func(self env.RyeCtx) string +} + +func (self *iface_fyne_URIWithIcon) Icon() fyne.Resource { + return self.fn_Icon(self.self) +} + +func (self *iface_fyne_URIWithIcon) Extension() string { + return self.fn_Extension(self.self) +} + +func (self *iface_fyne_URIWithIcon) Name() string { + return self.fn_Name(self.self) +} + +func (self *iface_fyne_URIWithIcon) MimeType() string { + return self.fn_MimeType(self.self) +} + +func (self *iface_fyne_URIWithIcon) Scheme() string { + return self.fn_Scheme(self.self) +} + +func (self *iface_fyne_URIWithIcon) Authority() string { + return self.fn_Authority(self.self) +} + +func (self *iface_fyne_URIWithIcon) Path() string { + return self.fn_Path(self.self) +} + +func (self *iface_fyne_URIWithIcon) Query() string { + return self.fn_Query(self.self) +} + +func (self *iface_fyne_URIWithIcon) Fragment() string { + return self.fn_Fragment(self.self) +} + +func (self *iface_fyne_URIWithIcon) String() string { + return self.fn_String(self.self) +} + +func ctxTo_fyne_URIWithIcon(ps *env.ProgramState, v env.RyeCtx) (fyne.URIWithIcon, error) { + words := v.GetWords(*ps.Idx).Series.S + wordToObj := make(map[string]env.Object, len(words)) + for _, word := range words { + name := word.(env.String).Value + idx, ok := ps.Idx.GetIndex(name) + if !ok { + panic("expected valid word") + } + obj, ok := v.Get(idx) + if !ok { + panic("expected valid index") + } + wordToObj[name] = obj + } + impl := &iface_fyne_URIWithIcon{ + self: v, + } + ctxObj0, ok := wordToObj["icon"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Icon") + } + switch fn := ctxObj0.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Icon: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Icon = func(ctx env.RyeCtx) fyne.Resource { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res fyne.Resource + switch v := ps.Res.(type) { + case env.RyeCtx: + var err error + res, err = ctxTo_fyne_Resource(ps, v) + if err != nil { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+err.Error(), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + case env.Native: + if vc, ok := v.Value.(fyne.Resource); ok { + res = vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected native of type fyne.Resource, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected integer to be 0 or nil, but got "+strconv.FormatInt(v.Value, 10), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + res = nil + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Icon: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj1, ok := wordToObj["extension"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Extension") + } + switch fn := ctxObj1.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Extension: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Extension = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Extension: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj2, ok := wordToObj["name"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Name") + } + switch fn := ctxObj2.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Name: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Name = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Name: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj3, ok := wordToObj["mime-type"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function MimeType") + } + switch fn := ctxObj3.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn MimeType: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_MimeType = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn MimeType: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj4, ok := wordToObj["scheme"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Scheme") + } + switch fn := ctxObj4.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Scheme: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Scheme = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Scheme: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj5, ok := wordToObj["authority"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Authority") + } + switch fn := ctxObj5.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Authority: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Authority = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Authority: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj6, ok := wordToObj["path"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Path") + } + switch fn := ctxObj6.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Path: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Path = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Path: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj7, ok := wordToObj["query"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Query") + } + switch fn := ctxObj7.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Query: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Query = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Query: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj8, ok := wordToObj["fragment"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function Fragment") + } + switch fn := ctxObj8.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn Fragment: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Fragment = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn Fragment: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj9, ok := wordToObj["string"] + if !ok { + return nil, errors.New("context to fyne.URIWithIcon: expected context to have function String") + } + switch fn := ctxObj9.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to fyne.URIWithIcon: context fn String: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_String = func(ctx env.RyeCtx) string { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res string + if vc, ok := ps.Res.(env.String); ok { + res = string(vc.Value) + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to fyne.URIWithIcon: arg 0: callback result: "+"expected string, but got "+objectDebugString(ps.Idx, ps.Res), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to fyne.URIWithIcon: context fn String: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + return impl, nil +} + type iface_fyne_URIWriteCloser struct { self env.RyeCtx fn_URI func(self env.RyeCtx) fyne.URI @@ -39994,9 +44643,11 @@ type iface_fyne_URIWriteCloser struct { func (self *iface_fyne_URIWriteCloser) URI() fyne.URI { return self.fn_URI(self.self) } + func (self *iface_fyne_URIWriteCloser) Write(arg0 []byte) (int, error) { return self.fn_Write(self.self, arg0) } + func (self *iface_fyne_URIWriteCloser) Close() error { return self.fn_Close(self.self) } @@ -40097,7 +44748,7 @@ func ctxTo_fyne_URIWriteCloser(ps *env.ProgramState, v env.RyeCtx) (fyne.URIWrit { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -40222,6 +44873,7 @@ type iface_fyne_Validatable struct { func (self *iface_fyne_Validatable) Validate() error { return self.fn_Validate(self.self) } + func (self *iface_fyne_Validatable) SetOnValidationChanged(arg0 func(error)) { self.fn_SetOnValidationChanged(self.self, arg0) } @@ -40338,6 +44990,7 @@ type iface_fyne_Vector2 struct { func (self *iface_fyne_Vector2) Components() (float32, float32) { return self.fn_Components(self.self) } + func (self *iface_fyne_Vector2) IsZero() bool { return self.fn_IsZero(self.self) } @@ -40471,30 +45124,39 @@ type iface_fyne_Widget struct { func (self *iface_fyne_Widget) CreateRenderer() fyne.WidgetRenderer { return self.fn_CreateRenderer(self.self) } + func (self *iface_fyne_Widget) MinSize() fyne.Size { return self.fn_MinSize(self.self) } + func (self *iface_fyne_Widget) Move(arg0 fyne.Position) { self.fn_Move(self.self, arg0) } + func (self *iface_fyne_Widget) Position() fyne.Position { return self.fn_Position(self.self) } + func (self *iface_fyne_Widget) Resize(arg0 fyne.Size) { self.fn_Resize(self.self, arg0) } + func (self *iface_fyne_Widget) Size() fyne.Size { return self.fn_Size(self.self) } + func (self *iface_fyne_Widget) Hide() { self.fn_Hide(self.self) } + func (self *iface_fyne_Widget) Visible() bool { return self.fn_Visible(self.self) } + func (self *iface_fyne_Widget) Show() { self.fn_Show(self.self) } + func (self *iface_fyne_Widget) Refresh() { self.fn_Refresh(self.self) } @@ -40838,15 +45500,19 @@ type iface_fyne_WidgetRenderer struct { func (self *iface_fyne_WidgetRenderer) Destroy() { self.fn_Destroy(self.self) } + func (self *iface_fyne_WidgetRenderer) Layout(arg0 fyne.Size) { self.fn_Layout(self.self, arg0) } + func (self *iface_fyne_WidgetRenderer) MinSize() fyne.Size { return self.fn_MinSize(self.self) } + func (self *iface_fyne_WidgetRenderer) Objects() []fyne.CanvasObject { return self.fn_Objects(self.self) } + func (self *iface_fyne_WidgetRenderer) Refresh() { self.fn_Refresh(self.self) } @@ -40964,10 +45630,11 @@ func ctxTo_fyne_WidgetRenderer(ps *env.ProgramState, v env.RyeCtx) (fyne.WidgetR case env.Block: res = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] switch v := it.(type) { case env.RyeCtx: var err error - res[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -40979,7 +45646,7 @@ func ctxTo_fyne_WidgetRenderer(ps *env.ProgramState, v env.RyeCtx) (fyne.WidgetR } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - res[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -40999,7 +45666,7 @@ func ctxTo_fyne_WidgetRenderer(ps *env.ProgramState, v env.RyeCtx) (fyne.WidgetR ) return res } - res[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -41089,81 +45756,107 @@ type iface_fyne_Window struct { func (self *iface_fyne_Window) Title() string { return self.fn_Title(self.self) } + func (self *iface_fyne_Window) SetTitle(arg0 string) { self.fn_SetTitle(self.self, arg0) } + func (self *iface_fyne_Window) FullScreen() bool { return self.fn_FullScreen(self.self) } + func (self *iface_fyne_Window) SetFullScreen(arg0 bool) { self.fn_SetFullScreen(self.self, arg0) } + func (self *iface_fyne_Window) Resize(arg0 fyne.Size) { self.fn_Resize(self.self, arg0) } + func (self *iface_fyne_Window) RequestFocus() { self.fn_RequestFocus(self.self) } + func (self *iface_fyne_Window) FixedSize() bool { return self.fn_FixedSize(self.self) } + func (self *iface_fyne_Window) SetFixedSize(arg0 bool) { self.fn_SetFixedSize(self.self, arg0) } + func (self *iface_fyne_Window) CenterOnScreen() { self.fn_CenterOnScreen(self.self) } + func (self *iface_fyne_Window) Padded() bool { return self.fn_Padded(self.self) } + func (self *iface_fyne_Window) SetPadded(arg0 bool) { self.fn_SetPadded(self.self, arg0) } + func (self *iface_fyne_Window) Icon() fyne.Resource { return self.fn_Icon(self.self) } + func (self *iface_fyne_Window) SetIcon(arg0 fyne.Resource) { self.fn_SetIcon(self.self, arg0) } + func (self *iface_fyne_Window) SetMaster() { self.fn_SetMaster(self.self) } + func (self *iface_fyne_Window) MainMenu() *fyne.MainMenu { return self.fn_MainMenu(self.self) } + func (self *iface_fyne_Window) SetMainMenu(arg0 *fyne.MainMenu) { self.fn_SetMainMenu(self.self, arg0) } + func (self *iface_fyne_Window) SetOnClosed(arg0 func()) { self.fn_SetOnClosed(self.self, arg0) } + func (self *iface_fyne_Window) SetCloseIntercept(arg0 func()) { self.fn_SetCloseIntercept(self.self, arg0) } + func (self *iface_fyne_Window) SetOnDropped(arg0 func(fyne.Position, []fyne.URI)) { self.fn_SetOnDropped(self.self, arg0) } + func (self *iface_fyne_Window) Show() { self.fn_Show(self.self) } + func (self *iface_fyne_Window) Hide() { self.fn_Hide(self.self) } + func (self *iface_fyne_Window) Close() { self.fn_Close(self.self) } + func (self *iface_fyne_Window) ShowAndRun() { self.fn_ShowAndRun(self.self) } + func (self *iface_fyne_Window) Content() fyne.CanvasObject { return self.fn_Content(self.self) } + func (self *iface_fyne_Window) SetContent(arg0 fyne.CanvasObject) { self.fn_SetContent(self.self, arg0) } + func (self *iface_fyne_Window) Canvas() fyne.Canvas { return self.fn_Canvas(self.self) } + func (self *iface_fyne_Window) Clipboard() fyne.Clipboard { return self.fn_Clipboard(self.self) } @@ -41680,17 +46373,18 @@ func ctxTo_fyne_Window(ps *env.ProgramState, v env.RyeCtx) (fyne.Window, error) case env.Block: arg1Val = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("context to fyne.Window: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("context to fyne.Window: arg 2: " + "block item: " + "expected native of type fyne.URI, but got " + objectDebugString(ps.Idx, v)) @@ -41700,7 +46394,7 @@ func ctxTo_fyne_Window(ps *env.ProgramState, v env.RyeCtx) (fyne.Window, error) ps.FailureFlag = true return env.NewError("context to fyne.Window: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("context to fyne.Window: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -42008,6 +46702,71 @@ func ctxTo_fyne_Window(ps *env.ProgramState, v env.RyeCtx) (fyne.Window, error) return impl, nil } +type iface_fyne_driver_NativeWindow struct { + self env.RyeCtx + fn_RunNative func(self env.RyeCtx, arg0 func(any)) +} + +func (self *iface_fyne_driver_NativeWindow) RunNative(arg0 func(any)) { + self.fn_RunNative(self.self, arg0) +} + +func ctxTo_fyne_driver_NativeWindow(ps *env.ProgramState, v env.RyeCtx) (fyne_driver.NativeWindow, error) { + words := v.GetWords(*ps.Idx).Series.S + wordToObj := make(map[string]env.Object, len(words)) + for _, word := range words { + name := word.(env.String).Value + idx, ok := ps.Idx.GetIndex(name) + if !ok { + panic("expected valid word") + } + obj, ok := v.Get(idx) + if !ok { + panic("expected valid index") + } + wordToObj[name] = obj + } + impl := &iface_fyne_driver_NativeWindow{ + self: v, + } + ctxObj0, ok := wordToObj["run-native"] + if !ok { + return nil, errors.New("context to fyne_driver.NativeWindow: expected context to have function RunNative") + } + switch fn := ctxObj0.(type) { + case env.Function: + if fn.Argsn != 1 { + return nil, errors.New("context to fyne_driver.NativeWindow: context fn RunNative: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_RunNative = func(ctx env.RyeCtx, farg0 func(any)) { + var farg0Val env.Object + farg0Val = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val any + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("context to fyne_driver.NativeWindow: arg 1: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("context to fyne_driver.NativeWindow: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + farg0(arg0Val) + return nil + }, 1, false, false, "Returned func") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx, farg0Val) + } + default: + return nil, errors.New("context to fyne_driver.NativeWindow: context fn RunNative: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + return impl, nil +} + type iface_io_Reader struct { self env.RyeCtx fn_Read func(self env.RyeCtx, arg0 []byte) (int, error) @@ -42049,7 +46808,7 @@ func ctxTo_io_Reader(ps *env.ProgramState, v env.RyeCtx) (io.Reader, error) { { items := make([]env.Object, len(farg0)) for i, it := range farg0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } farg0Val = *env.NewBlock(*env.NewTSeries(items)) } @@ -42130,6 +46889,7 @@ type iface_layout_SpacerObject struct { func (self *iface_layout_SpacerObject) ExpandVertical() bool { return self.fn_ExpandVertical(self.self) } + func (self *iface_layout_SpacerObject) ExpandHorizontal() bool { return self.fn_ExpandHorizontal(self.self) } @@ -42225,9 +46985,11 @@ type iface_mobile_Device struct { func (self *iface_mobile_Device) ShowVirtualKeyboard() { self.fn_ShowVirtualKeyboard(self.self) } + func (self *iface_mobile_Device) ShowVirtualKeyboardType(arg0 mobile.KeyboardType) { self.fn_ShowVirtualKeyboardType(self.self, arg0) } + func (self *iface_mobile_Device) HideVirtualKeyboard() { self.fn_HideVirtualKeyboard(self.self) } @@ -42365,15 +47127,19 @@ type iface_mobile_Keyboardable struct { func (self *iface_mobile_Keyboardable) Keyboard() mobile.KeyboardType { return self.fn_Keyboard(self.self) } + func (self *iface_mobile_Keyboardable) FocusGained() { self.fn_FocusGained(self.self) } + func (self *iface_mobile_Keyboardable) FocusLost() { self.fn_FocusLost(self.self) } + func (self *iface_mobile_Keyboardable) TypedRune(arg0 rune) { self.fn_TypedRune(self.self, arg0) } + func (self *iface_mobile_Keyboardable) TypedKey(arg0 *fyne.KeyEvent) { self.fn_TypedKey(self.self, arg0) } @@ -42525,9 +47291,11 @@ type iface_mobile_Touchable struct { func (self *iface_mobile_Touchable) TouchDown(arg0 *mobile.TouchEvent) { self.fn_TouchDown(self.self, arg0) } + func (self *iface_mobile_Touchable) TouchUp(arg0 *mobile.TouchEvent) { self.fn_TouchUp(self.self, arg0) } + func (self *iface_mobile_Touchable) TouchCancel(arg0 *mobile.TouchEvent) { self.fn_TouchCancel(self.self, arg0) } @@ -42622,15 +47390,19 @@ type iface_repository_CopyableRepository struct { func (self *iface_repository_CopyableRepository) Copy(arg0 fyne.URI, arg1 fyne.URI) error { return self.fn_Copy(self.self, arg0, arg1) } + func (self *iface_repository_CopyableRepository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_CopyableRepository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_CopyableRepository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_CopyableRepository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -42999,15 +47771,19 @@ type iface_repository_CustomURIRepository struct { func (self *iface_repository_CustomURIRepository) ParseURI(arg0 string) (fyne.URI, error) { return self.fn_ParseURI(self.self, arg0) } + func (self *iface_repository_CustomURIRepository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_CustomURIRepository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_CustomURIRepository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_CustomURIRepository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -43441,18 +48217,23 @@ type iface_repository_HierarchicalRepository struct { func (self *iface_repository_HierarchicalRepository) Parent(arg0 fyne.URI) (fyne.URI, error) { return self.fn_Parent(self.self, arg0) } + func (self *iface_repository_HierarchicalRepository) Child(arg0 fyne.URI, arg1 string) (fyne.URI, error) { return self.fn_Child(self.self, arg0, arg1) } + func (self *iface_repository_HierarchicalRepository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_HierarchicalRepository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_HierarchicalRepository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_HierarchicalRepository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -43999,21 +48780,27 @@ type iface_repository_ListableRepository struct { func (self *iface_repository_ListableRepository) CanList(arg0 fyne.URI) (bool, error) { return self.fn_CanList(self.self, arg0) } + func (self *iface_repository_ListableRepository) List(arg0 fyne.URI) ([]fyne.URI, error) { return self.fn_List(self.self, arg0) } + func (self *iface_repository_ListableRepository) CreateListable(arg0 fyne.URI) error { return self.fn_CreateListable(self.self, arg0) } + func (self *iface_repository_ListableRepository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_ListableRepository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_ListableRepository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_ListableRepository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -44153,10 +48940,11 @@ func ctxTo_repository_ListableRepository(ps *env.ProgramState, v env.RyeCtx) (re case env.Block: res0 = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res0[i] switch v := it.(type) { case env.RyeCtx: var err error - res0[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -44168,7 +48956,7 @@ func ctxTo_repository_ListableRepository(ps *env.ProgramState, v env.RyeCtx) (re } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - res0[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -44188,7 +48976,7 @@ func ctxTo_repository_ListableRepository(ps *env.ProgramState, v env.RyeCtx) (re ) return res0, res1 } - res0[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -44594,15 +49382,19 @@ type iface_repository_MovableRepository struct { func (self *iface_repository_MovableRepository) Move(arg0 fyne.URI, arg1 fyne.URI) error { return self.fn_Move(self.self, arg0, arg1) } + func (self *iface_repository_MovableRepository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_MovableRepository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_MovableRepository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_MovableRepository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -44970,12 +49762,15 @@ type iface_repository_Repository struct { func (self *iface_repository_Repository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_Repository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_Repository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_Repository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -45299,21 +50094,27 @@ type iface_repository_WritableRepository struct { func (self *iface_repository_WritableRepository) Writer(arg0 fyne.URI) (fyne.URIWriteCloser, error) { return self.fn_Writer(self.self, arg0) } + func (self *iface_repository_WritableRepository) CanWrite(arg0 fyne.URI) (bool, error) { return self.fn_CanWrite(self.self, arg0) } + func (self *iface_repository_WritableRepository) Delete(arg0 fyne.URI) error { return self.fn_Delete(self.self, arg0) } + func (self *iface_repository_WritableRepository) Exists(arg0 fyne.URI) (bool, error) { return self.fn_Exists(self.self, arg0) } + func (self *iface_repository_WritableRepository) Reader(arg0 fyne.URI) (fyne.URIReadCloser, error) { return self.fn_Reader(self.self, arg0) } + func (self *iface_repository_WritableRepository) CanRead(arg0 fyne.URI) (bool, error) { return self.fn_CanRead(self.self, arg0) } + func (self *iface_repository_WritableRepository) Destroy(arg0 string) { self.fn_Destroy(self.self, arg0) } @@ -46023,72 +50824,95 @@ type iface_test_WindowlessCanvas struct { func (self *iface_test_WindowlessCanvas) Padded() bool { return self.fn_Padded(self.self) } + func (self *iface_test_WindowlessCanvas) Resize(arg0 fyne.Size) { self.fn_Resize(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) SetPadded(arg0 bool) { self.fn_SetPadded(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) SetScale(arg0 float32) { self.fn_SetScale(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) Content() fyne.CanvasObject { return self.fn_Content(self.self) } + func (self *iface_test_WindowlessCanvas) SetContent(arg0 fyne.CanvasObject) { self.fn_SetContent(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) Refresh(arg0 fyne.CanvasObject) { self.fn_Refresh(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) Focus(arg0 fyne.Focusable) { self.fn_Focus(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) FocusNext() { self.fn_FocusNext(self.self) } + func (self *iface_test_WindowlessCanvas) FocusPrevious() { self.fn_FocusPrevious(self.self) } + func (self *iface_test_WindowlessCanvas) Unfocus() { self.fn_Unfocus(self.self) } + func (self *iface_test_WindowlessCanvas) Focused() fyne.Focusable { return self.fn_Focused(self.self) } + func (self *iface_test_WindowlessCanvas) Size() fyne.Size { return self.fn_Size(self.self) } + func (self *iface_test_WindowlessCanvas) Scale() float32 { return self.fn_Scale(self.self) } + func (self *iface_test_WindowlessCanvas) Overlays() fyne.OverlayStack { return self.fn_Overlays(self.self) } + func (self *iface_test_WindowlessCanvas) OnTypedRune() func(rune) { return self.fn_OnTypedRune(self.self) } + func (self *iface_test_WindowlessCanvas) SetOnTypedRune(arg0 func(rune)) { self.fn_SetOnTypedRune(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) OnTypedKey() func(*fyne.KeyEvent) { return self.fn_OnTypedKey(self.self) } + func (self *iface_test_WindowlessCanvas) SetOnTypedKey(arg0 func(*fyne.KeyEvent)) { self.fn_SetOnTypedKey(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) AddShortcut(arg0 fyne.Shortcut, arg1 func(fyne.Shortcut)) { self.fn_AddShortcut(self.self, arg0, arg1) } + func (self *iface_test_WindowlessCanvas) RemoveShortcut(arg0 fyne.Shortcut) { self.fn_RemoveShortcut(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) Capture() image.Image { return self.fn_Capture(self.self) } + func (self *iface_test_WindowlessCanvas) PixelCoordinateForPosition(arg0 fyne.Position) (int, int) { return self.fn_PixelCoordinateForPosition(self.self, arg0) } + func (self *iface_test_WindowlessCanvas) InteractiveArea() (fyne.Position, fyne.Size) { return self.fn_InteractiveArea(self.self) } @@ -47062,10 +51886,11 @@ func ctxTo_widget_RichTextBlock(ps *env.ProgramState, v env.RyeCtx) (widget.Rich case env.Block: res = make([]widget.RichTextSegment, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] switch v := it.(type) { case env.RyeCtx: var err error - res[i], err = ctxTo_widget_RichTextSegment(ps, v) + (*iv), err = ctxTo_widget_RichTextSegment(ps, v) if err != nil { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -47077,7 +51902,7 @@ func ctxTo_widget_RichTextBlock(ps *env.ProgramState, v env.RyeCtx) (widget.Rich } case env.Native: if vc, ok := v.Value.(widget.RichTextSegment); ok { - res[i] = vc + (*iv) = vc } else { ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -47097,7 +51922,7 @@ func ctxTo_widget_RichTextBlock(ps *env.ProgramState, v env.RyeCtx) (widget.Rich ) return res } - res[i] = nil + (*iv) = nil default: ps.FailureFlag = true fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", @@ -47150,21 +51975,27 @@ type iface_widget_RichTextSegment struct { func (self *iface_widget_RichTextSegment) Inline() bool { return self.fn_Inline(self.self) } + func (self *iface_widget_RichTextSegment) Textual() string { return self.fn_Textual(self.self) } + func (self *iface_widget_RichTextSegment) Update(arg0 fyne.CanvasObject) { self.fn_Update(self.self, arg0) } + func (self *iface_widget_RichTextSegment) Visual() fyne.CanvasObject { return self.fn_Visual(self.self) } + func (self *iface_widget_RichTextSegment) Select(arg0 fyne.Position, arg1 fyne.Position) { self.fn_Select(self.self, arg0, arg1) } + func (self *iface_widget_RichTextSegment) SelectedText() string { return self.fn_SelectedText(self.self) } + func (self *iface_widget_RichTextSegment) Unselect() { self.fn_Unselect(self.self) } @@ -47402,13 +52233,19 @@ func ctxTo_widget_RichTextSegment(ps *env.ProgramState, v env.RyeCtx) (widget.Ri type iface_widget_TextGridStyle struct { self env.RyeCtx + fn_Style func(self env.RyeCtx) fyne.TextStyle fn_TextColor func(self env.RyeCtx) color.Color fn_BackgroundColor func(self env.RyeCtx) color.Color } +func (self *iface_widget_TextGridStyle) Style() fyne.TextStyle { + return self.fn_Style(self.self) +} + func (self *iface_widget_TextGridStyle) TextColor() color.Color { return self.fn_TextColor(self.self) } + func (self *iface_widget_TextGridStyle) BackgroundColor() color.Color { return self.fn_BackgroundColor(self.self) } @@ -47431,11 +52268,52 @@ func ctxTo_widget_TextGridStyle(ps *env.ProgramState, v env.RyeCtx) (widget.Text impl := &iface_widget_TextGridStyle{ self: v, } - ctxObj0, ok := wordToObj["text-color"] + ctxObj0, ok := wordToObj["style"] if !ok { - return nil, errors.New("context to widget.TextGridStyle: expected context to have function TextColor") + return nil, errors.New("context to widget.TextGridStyle: expected context to have function Style") } switch fn := ctxObj0.(type) { + case env.Function: + if fn.Argsn != 0 { + return nil, errors.New("context to widget.TextGridStyle: context fn Style: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + impl.fn_Style = func(ctx env.RyeCtx) fyne.TextStyle { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, &ctx) + var res fyne.TextStyle + switch v := ps.Res.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.TextStyle); ok { + res = *vc + } else { + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to widget.TextGridStyle: arg 0: callback result: "+"expected native of type *fyne.TextStyle, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + default: + ps.FailureFlag = true + fmt.Printf("\033[31mError: \033[1m%v\033[m\n\033[31mFrom function \033[1m%v { %v }\033[m\n", + "context to widget.TextGridStyle: arg 0: callback result: "+"expected native, but got "+objectDebugString(ps.Idx, v), + actualFn.Spec.Series.PositionAndSurroundingElements(*ps.Idx), + actualFn.Body.Series.PositionAndSurroundingElements(*ps.Idx), + ) + return res + } + return res + } + default: + return nil, errors.New("context to widget.TextGridStyle: context fn Style: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) + } + ctxObj1, ok := wordToObj["text-color"] + if !ok { + return nil, errors.New("context to widget.TextGridStyle: expected context to have function TextColor") + } + switch fn := ctxObj1.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to widget.TextGridStyle: context fn TextColor: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -47472,11 +52350,11 @@ func ctxTo_widget_TextGridStyle(ps *env.ProgramState, v env.RyeCtx) (widget.Text default: return nil, errors.New("context to widget.TextGridStyle: context fn TextColor: " + "expected function, but got " + objectDebugString(ps.Idx, fn)) } - ctxObj1, ok := wordToObj["background-color"] + ctxObj2, ok := wordToObj["background-color"] if !ok { return nil, errors.New("context to widget.TextGridStyle: expected context to have function BackgroundColor") } - switch fn := ctxObj1.(type) { + switch fn := ctxObj2.(type) { case env.Function: if fn.Argsn != 0 { return nil, errors.New("context to widget.TextGridStyle: context fn BackgroundColor: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) @@ -47611,6 +52489,10 @@ func ctxTo_widget_ToolbarItem(ps *env.ProgramState, v env.RyeCtx) (widget.Toolba } var builtinsGenerated = map[string]*env.Builtin{ + // Args: + // * cloud-config - string + // Result: + // * string "Go(*app.SettingsSchema)//cloud-config!": { Doc: "Set *app.SettingsSchema CloudConfig value", Argsn: 2, @@ -47645,6 +52527,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*app.SettingsSchema)//cloud-config?": { Doc: "Get *app.SettingsSchema CloudConfig value", Argsn: 1, @@ -47673,6 +52557,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * cloud-name - string + // Result: + // * string "Go(*app.SettingsSchema)//cloud-name!": { Doc: "Set *app.SettingsSchema CloudName value", Argsn: 2, @@ -47707,6 +52595,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*app.SettingsSchema)//cloud-name?": { Doc: "Get *app.SettingsSchema CloudName value", Argsn: 1, @@ -47735,6 +52625,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * disable-animations - bool + // Result: + // * bool "Go(*app.SettingsSchema)//disable-animations!": { Doc: "Set *app.SettingsSchema DisableAnimations value", Argsn: 2, @@ -47769,6 +52663,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*app.SettingsSchema)//disable-animations?": { Doc: "Get *app.SettingsSchema DisableAnimations value", Argsn: 1, @@ -47797,6 +52693,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * primary-color - string + // Result: + // * string "Go(*app.SettingsSchema)//primary-color!": { Doc: "Set *app.SettingsSchema PrimaryColor value", Argsn: 2, @@ -47831,6 +52731,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*app.SettingsSchema)//primary-color?": { Doc: "Get *app.SettingsSchema PrimaryColor value", Argsn: 1, @@ -47859,6 +52761,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * scale - decimal + // Result: + // * decimal "Go(*app.SettingsSchema)//scale!": { Doc: "Set *app.SettingsSchema Scale value", Argsn: 2, @@ -47893,6 +52799,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*app.SettingsSchema)//scale?": { Doc: "Get *app.SettingsSchema Scale value", Argsn: 1, @@ -47921,6 +52829,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // storage-path returns the location of the settings storage + // + // Args: + // * recv - Go(*app.SettingsSchema) + // Result: + // * string "Go(*app.SettingsSchema)//storage-path": { Doc: "(*app.SettingsSchema).StoragePath", Argsn: 1, @@ -47950,6 +52864,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * theme-name - string + // Result: + // * string "Go(*app.SettingsSchema)//theme-name!": { Doc: "Set *app.SettingsSchema ThemeName value", Argsn: 2, @@ -47984,6 +52902,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*app.SettingsSchema)//theme-name?": { Doc: "Get *app.SettingsSchema ThemeName value", Argsn: 1, @@ -48012,6 +52932,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * fill-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.Circle)//fill-color!": { Doc: "Set *canvas.Circle FillColor value", Argsn: 2, @@ -48052,6 +52976,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.Circle)//fill-color?": { Doc: "Get *canvas.Circle FillColor value", Argsn: 1, @@ -48080,6 +53006,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*canvas.Circle)//hidden!": { Doc: "Set *canvas.Circle Hidden value", Argsn: 2, @@ -48114,6 +53044,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*canvas.Circle)//hidden?": { Doc: "Get *canvas.Circle Hidden value", Argsn: 1, @@ -48142,6 +53074,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide will set this circle to not be visible + // + // Args: + // * recv - Go(*canvas.Circle) "Go(*canvas.Circle)//hide": { Doc: "(*canvas.Circle).Hide", Argsn: 1, @@ -48169,6 +53105,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size for a Circle simply returns Size{1, 1} as there is no + // explicit content + // + // Args: + // * recv - Go(*canvas.Circle) + // Result: + // * Go(fyne.Size) "Go(*canvas.Circle)//min-size": { Doc: "(*canvas.Circle).MinSize", Argsn: 1, @@ -48198,6 +53141,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the circle object to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Circle) + // * pos - Go(fyne.Position) "Go(*canvas.Circle)//move": { Doc: "(*canvas.Circle).Move", Argsn: 2, @@ -48238,6 +53186,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // position gets the current top-left position of this circle object, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Circle) + // Result: + // * Go(fyne.position) "Go(*canvas.Circle)//position": { Doc: "(*canvas.Circle).Position", Argsn: 1, @@ -48267,6 +53221,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * position-1 - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*canvas.Circle)//position-1!": { Doc: "Set *canvas.Circle Position1 value", Argsn: 2, @@ -48313,6 +53271,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*canvas.Circle)//position-1?": { Doc: "Get *canvas.Circle Position1 value", Argsn: 1, @@ -48341,6 +53301,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position-2 - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*canvas.Circle)//position-2!": { Doc: "Set *canvas.Circle Position2 value", Argsn: 2, @@ -48387,6 +53351,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*canvas.Circle)//position-2?": { Doc: "Get *canvas.Circle Position2 value", Argsn: 1, @@ -48415,6 +53381,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // refresh causes this object to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.Circle) "Go(*canvas.Circle)//refresh": { Doc: "(*canvas.Circle).Refresh", Argsn: 1, @@ -48442,6 +53412,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new bottom-right position for the circle object + // If it has a stroke width this will cause it to Refresh. + // + // Args: + // * recv - Go(*canvas.Circle) + // * size - Go(fyne.Size) "Go(*canvas.Circle)//resize": { Doc: "(*canvas.Circle).Resize", Argsn: 2, @@ -48482,6 +53458,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show will set this circle to be visible + // + // Args: + // * recv - Go(*canvas.Circle) "Go(*canvas.Circle)//show": { Doc: "(*canvas.Circle).Show", Argsn: 1, @@ -48509,6 +53489,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // size returns the current size of bounding box for this circle object + // + // Args: + // * recv - Go(*canvas.Circle) + // Result: + // * Go(fyne.size) "Go(*canvas.Circle)//size": { Doc: "(*canvas.Circle).Size", Argsn: 1, @@ -48538,6 +53524,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * stroke-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.Circle)//stroke-color!": { Doc: "Set *canvas.Circle StrokeColor value", Argsn: 2, @@ -48578,6 +53568,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.Circle)//stroke-color?": { Doc: "Get *canvas.Circle StrokeColor value", Argsn: 1, @@ -48606,6 +53598,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * stroke-width - decimal + // Result: + // * decimal "Go(*canvas.Circle)//stroke-width!": { Doc: "Set *canvas.Circle StrokeWidth value", Argsn: 2, @@ -48640,6 +53636,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Circle)//stroke-width?": { Doc: "Get *canvas.Circle StrokeWidth value", Argsn: 1, @@ -48668,6 +53666,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // visible returns true if this circle is visible, false otherwise + // + // Args: + // * recv - Go(*canvas.Circle) + // Result: + // * bool "Go(*canvas.Circle)//visible": { Doc: "(*canvas.Circle).Visible", Argsn: 1, @@ -48697,6 +53701,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // alpha is a convenience function that returns the alpha value for an image + // based on its Translucency value. The result is 1.0 - Translucency. + // + // Args: + // * recv - Go(*canvas.Image) + // Result: + // * decimal "Go(*canvas.Image)//alpha": { Doc: "(*canvas.Image).Alpha", Argsn: 1, @@ -48726,6 +53737,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // aspect will return the original content aspect after it was last refreshed. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*canvas.Image) + // Result: + // * decimal "Go(*canvas.Image)//aspect": { Doc: "(*canvas.Image).Aspect", Argsn: 1, @@ -48755,6 +53774,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * file - string + // Result: + // * string "Go(*canvas.Image)//file!": { Doc: "Set *canvas.Image File value", Argsn: 2, @@ -48789,6 +53812,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*canvas.Image)//file?": { Doc: "Get *canvas.Image File value", Argsn: 1, @@ -48817,6 +53842,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * fill-mode - integer + // Result: + // * integer "Go(*canvas.Image)//fill-mode!": { Doc: "Set *canvas.Image FillMode value", Argsn: 2, @@ -48865,6 +53894,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*canvas.Image)//fill-mode?": { Doc: "Get *canvas.Image FillMode value", Argsn: 1, @@ -48893,6 +53924,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide will set this image to not be visible + // + // Args: + // * recv - Go(*canvas.Image) "Go(*canvas.Image)//hide": { Doc: "(*canvas.Image).Hide", Argsn: 1, @@ -48920,6 +53955,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * image - Go(image.Image) + // Result: + // * Go(image.Image) "Go(*canvas.Image)//image!": { Doc: "Set *canvas.Image Image value", Argsn: 2, @@ -48960,6 +53999,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(image.Image) "Go(*canvas.Image)//image?": { Doc: "Get *canvas.Image Image value", Argsn: 1, @@ -48988,6 +54029,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the specified minimum size, if set, or {1, 1} otherwise. + // + // Args: + // * recv - Go(*canvas.Image) + // Result: + // * Go(fyne.Size) "Go(*canvas.Image)//min-size": { Doc: "(*canvas.Image).MinSize", Argsn: 1, @@ -49017,6 +54064,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the image object to a new position, relative to its parent top, left corner. + // + // Args: + // * recv - Go(*canvas.Image) + // * pos - Go(fyne.Position) "Go(*canvas.Image)//move": { Doc: "(*canvas.Image).Move", Argsn: 2, @@ -49057,6 +54109,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh causes this image to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.Image) "Go(*canvas.Image)//refresh": { Doc: "(*canvas.Image).Refresh", Argsn: 1, @@ -49084,6 +54140,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize on an image will scale the content or reposition it according to FillMode. + // It will normally cause a Refresh to ensure the pixels are recalculated. + // + // Args: + // * recv - Go(*canvas.Image) + // * s - Go(fyne.Size) "Go(*canvas.Image)//resize": { Doc: "(*canvas.Image).Resize", Argsn: 2, @@ -49124,6 +54186,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * resource - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*canvas.Image)//resource!": { Doc: "Set *canvas.Image Resource value", Argsn: 2, @@ -49177,6 +54243,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Resource) "Go(*canvas.Image)//resource?": { Doc: "Get *canvas.Image Resource value", Argsn: 1, @@ -49205,6 +54273,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * scale-mode - integer + // Result: + // * integer "Go(*canvas.Image)//scale-mode!": { Doc: "Set *canvas.Image ScaleMode value", Argsn: 2, @@ -49253,6 +54325,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*canvas.Image)//scale-mode?": { Doc: "Get *canvas.Image ScaleMode value", Argsn: 1, @@ -49281,6 +54355,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * translucency - decimal + // Result: + // * decimal "Go(*canvas.Image)//translucency!": { Doc: "Set *canvas.Image Translucency value", Argsn: 2, @@ -49315,6 +54393,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Image)//translucency?": { Doc: "Get *canvas.Image Translucency value", Argsn: 1, @@ -49343,6 +54423,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*canvas.Line)//hidden!": { Doc: "Set *canvas.Line Hidden value", Argsn: 2, @@ -49377,6 +54461,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*canvas.Line)//hidden?": { Doc: "Get *canvas.Line Hidden value", Argsn: 1, @@ -49405,6 +54491,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide will set this line to not be visible + // + // Args: + // * recv - Go(*canvas.Line) "Go(*canvas.Line)//hide": { Doc: "(*canvas.Line).Hide", Argsn: 1, @@ -49432,6 +54522,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size for a Line simply returns Size{1, 1} as there is no + // explicit content + // + // Args: + // * recv - Go(*canvas.Line) + // Result: + // * Go(fyne.Size) "Go(*canvas.Line)//min-size": { Doc: "(*canvas.Line).MinSize", Argsn: 1, @@ -49461,6 +54558,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the line object to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Line) + // * pos - Go(fyne.Position) "Go(*canvas.Line)//move": { Doc: "(*canvas.Line).Move", Argsn: 2, @@ -49501,6 +54603,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // position gets the current top-left position of this line object, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Line) + // Result: + // * Go(fyne.position) "Go(*canvas.Line)//position": { Doc: "(*canvas.Line).Position", Argsn: 1, @@ -49530,6 +54638,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * position-1 - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*canvas.Line)//position-1!": { Doc: "Set *canvas.Line Position1 value", Argsn: 2, @@ -49576,6 +54688,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*canvas.Line)//position-1?": { Doc: "Get *canvas.Line Position1 value", Argsn: 1, @@ -49604,6 +54718,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position-2 - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*canvas.Line)//position-2!": { Doc: "Set *canvas.Line Position2 value", Argsn: 2, @@ -49650,6 +54768,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*canvas.Line)//position-2?": { Doc: "Get *canvas.Line Position2 value", Argsn: 1, @@ -49678,6 +54798,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // refresh causes this line to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.Line) "Go(*canvas.Line)//refresh": { Doc: "(*canvas.Line).Refresh", Argsn: 1, @@ -49705,6 +54829,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new bottom-right position for the line object, then it will then be refreshed. + // + // Args: + // * recv - Go(*canvas.Line) + // * size - Go(fyne.Size) "Go(*canvas.Line)//resize": { Doc: "(*canvas.Line).Resize", Argsn: 2, @@ -49745,6 +54874,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show will set this line to be visible + // + // Args: + // * recv - Go(*canvas.Line) "Go(*canvas.Line)//show": { Doc: "(*canvas.Line).Show", Argsn: 1, @@ -49772,6 +54905,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // size returns the current size of bounding box for this line object + // + // Args: + // * recv - Go(*canvas.Line) + // Result: + // * Go(fyne.size) "Go(*canvas.Line)//size": { Doc: "(*canvas.Line).Size", Argsn: 1, @@ -49801,6 +54940,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * stroke-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.Line)//stroke-color!": { Doc: "Set *canvas.Line StrokeColor value", Argsn: 2, @@ -49841,6 +54984,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.Line)//stroke-color?": { Doc: "Get *canvas.Line StrokeColor value", Argsn: 1, @@ -49869,6 +55014,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * stroke-width - decimal + // Result: + // * decimal "Go(*canvas.Line)//stroke-width!": { Doc: "Set *canvas.Line StrokeWidth value", Argsn: 2, @@ -49903,6 +55052,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Line)//stroke-width?": { Doc: "Get *canvas.Line StrokeWidth value", Argsn: 1, @@ -49931,6 +55082,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // visible returns true if this line// Show will set this circle to be visible is visible, false otherwise + // + // Args: + // * recv - Go(*canvas.Line) + // Result: + // * bool "Go(*canvas.Line)//visible": { Doc: "(*canvas.Line).Visible", Argsn: 1, @@ -49960,6 +55117,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * angle - decimal + // Result: + // * decimal "Go(*canvas.LinearGradient)//angle!": { Doc: "Set *canvas.LinearGradient Angle value", Argsn: 2, @@ -49994,6 +55155,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.LinearGradient)//angle?": { Doc: "Get *canvas.LinearGradient Angle value", Argsn: 1, @@ -50022,6 +55185,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * end-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.LinearGradient)//end-color!": { Doc: "Set *canvas.LinearGradient EndColor value", Argsn: 2, @@ -50062,6 +55229,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.LinearGradient)//end-color?": { Doc: "Get *canvas.LinearGradient EndColor value", Argsn: 1, @@ -50090,6 +55259,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // generate calculates an image of the gradient with the specified width and height. + // + // Args: + // * recv - Go(*canvas.LinearGradient) + // * iw - integer + // * ih - integer + // Result: + // * Go(image.Image) "Go(*canvas.LinearGradient)//generate": { Doc: "(*canvas.LinearGradient).Generate", Argsn: 3, @@ -50133,6 +55310,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // hide will set this gradient to not be visible + // + // Args: + // * recv - Go(*canvas.LinearGradient) "Go(*canvas.LinearGradient)//hide": { Doc: "(*canvas.LinearGradient).Hide", Argsn: 1, @@ -50160,6 +55341,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // move the gradient to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.LinearGradient) + // * pos - Go(fyne.Position) "Go(*canvas.LinearGradient)//move": { Doc: "(*canvas.LinearGradient).Move", Argsn: 2, @@ -50200,6 +55386,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh causes this gradient to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.LinearGradient) "Go(*canvas.LinearGradient)//refresh": { Doc: "(*canvas.LinearGradient).Refresh", Argsn: 1, @@ -50227,6 +55417,55 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize resizes the gradient to a new size. + // + // Args: + // * recv - Go(*canvas.LinearGradient) + // * size - Go(fyne.Size) + "Go(*canvas.LinearGradient)//resize": { + Doc: "(*canvas.LinearGradient).Resize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *canvas.LinearGradient + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*canvas.LinearGradient); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.LinearGradient)//resize: arg 1: " + "expected native of type *canvas.LinearGradient, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*canvas.LinearGradient)//resize: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.LinearGradient)//resize: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Size + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.LinearGradient)//resize: arg 2: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.LinearGradient)//resize: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Resize(arg1Val) + return arg0 + }, + }, + // Args: + // * start-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.LinearGradient)//start-color!": { Doc: "Set *canvas.LinearGradient StartColor value", Argsn: 2, @@ -50267,6 +55506,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.LinearGradient)//start-color?": { Doc: "Get *canvas.LinearGradient StartColor value", Argsn: 1, @@ -50295,6 +55536,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * center-offset-x - decimal + // Result: + // * decimal "Go(*canvas.RadialGradient)//center-offset-x!": { Doc: "Set *canvas.RadialGradient CenterOffsetX value", Argsn: 2, @@ -50329,6 +55574,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.RadialGradient)//center-offset-x?": { Doc: "Get *canvas.RadialGradient CenterOffsetX value", Argsn: 1, @@ -50357,6 +55604,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * center-offset-y - decimal + // Result: + // * decimal "Go(*canvas.RadialGradient)//center-offset-y!": { Doc: "Set *canvas.RadialGradient CenterOffsetY value", Argsn: 2, @@ -50391,6 +55642,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.RadialGradient)//center-offset-y?": { Doc: "Get *canvas.RadialGradient CenterOffsetY value", Argsn: 1, @@ -50419,6 +55672,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * end-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.RadialGradient)//end-color!": { Doc: "Set *canvas.RadialGradient EndColor value", Argsn: 2, @@ -50459,6 +55716,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.RadialGradient)//end-color?": { Doc: "Get *canvas.RadialGradient EndColor value", Argsn: 1, @@ -50487,6 +55746,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // generate calculates an image of the gradient with the specified width and height. + // + // Args: + // * recv - Go(*canvas.RadialGradient) + // * iw - integer + // * ih - integer + // Result: + // * Go(image.Image) "Go(*canvas.RadialGradient)//generate": { Doc: "(*canvas.RadialGradient).Generate", Argsn: 3, @@ -50530,6 +55797,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // hide will set this gradient to not be visible + // + // Args: + // * recv - Go(*canvas.RadialGradient) "Go(*canvas.RadialGradient)//hide": { Doc: "(*canvas.RadialGradient).Hide", Argsn: 1, @@ -50557,6 +55828,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // move the gradient to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.RadialGradient) + // * pos - Go(fyne.Position) "Go(*canvas.RadialGradient)//move": { Doc: "(*canvas.RadialGradient).Move", Argsn: 2, @@ -50597,6 +55873,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh causes this gradient to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.RadialGradient) "Go(*canvas.RadialGradient)//refresh": { Doc: "(*canvas.RadialGradient).Refresh", Argsn: 1, @@ -50624,6 +55904,55 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize resizes the gradient to a new size. + // + // Args: + // * recv - Go(*canvas.RadialGradient) + // * size - Go(fyne.Size) + "Go(*canvas.RadialGradient)//resize": { + Doc: "(*canvas.RadialGradient).Resize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *canvas.RadialGradient + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*canvas.RadialGradient); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.RadialGradient)//resize: arg 1: " + "expected native of type *canvas.RadialGradient, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*canvas.RadialGradient)//resize: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.RadialGradient)//resize: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Size + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.RadialGradient)//resize: arg 2: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.RadialGradient)//resize: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Resize(arg1Val) + return arg0 + }, + }, + // Args: + // * start-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.RadialGradient)//start-color!": { Doc: "Set *canvas.RadialGradient StartColor value", Argsn: 2, @@ -50664,6 +55993,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.RadialGradient)//start-color?": { Doc: "Get *canvas.RadialGradient StartColor value", Argsn: 1, @@ -50692,6 +56023,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // alpha is a convenience function that returns the alpha value for a raster + // based on its Translucency value. The result is 1.0 - Translucency. + // + // Args: + // * recv - Go(*canvas.Raster) + // Result: + // * decimal "Go(*canvas.Raster)//alpha": { Doc: "(*canvas.Raster).Alpha", Argsn: 1, @@ -50721,6 +56059,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * generator - fn { integer integer } -> Go(image.Image) + // Result: + // * fn { integer integer } -> Go(image.Image) "Go(*canvas.Raster)//generator!": { Doc: "Set *canvas.Raster Generator value", Argsn: 2, @@ -50797,6 +56139,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer integer } -> Go(image.Image) "Go(*canvas.Raster)//generator?": { Doc: "Get *canvas.Raster Generator value", Argsn: 1, @@ -50844,6 +56188,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide will set this raster to not be visible + // + // Args: + // * recv - Go(*canvas.Raster) "Go(*canvas.Raster)//hide": { Doc: "(*canvas.Raster).Hide", Argsn: 1, @@ -50871,6 +56219,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // move the raster to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Raster) + // * pos - Go(fyne.Position) "Go(*canvas.Raster)//move": { Doc: "(*canvas.Raster).Move", Argsn: 2, @@ -50911,6 +56264,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh causes this raster to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.Raster) "Go(*canvas.Raster)//refresh": { Doc: "(*canvas.Raster).Refresh", Argsn: 1, @@ -50938,6 +56295,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize on a raster image causes the new size to be set and then calls Refresh. + // This causes the underlying data to be recalculated and a new output to be drawn. + // + // Args: + // * recv - Go(*canvas.Raster) + // * s - Go(fyne.Size) "Go(*canvas.Raster)//resize": { Doc: "(*canvas.Raster).Resize", Argsn: 2, @@ -50978,6 +56341,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * scale-mode - integer + // Result: + // * integer "Go(*canvas.Raster)//scale-mode!": { Doc: "Set *canvas.Raster ScaleMode value", Argsn: 2, @@ -51026,6 +56393,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*canvas.Raster)//scale-mode?": { Doc: "Get *canvas.Raster ScaleMode value", Argsn: 1, @@ -51054,6 +56423,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * translucency - decimal + // Result: + // * decimal "Go(*canvas.Raster)//translucency!": { Doc: "Set *canvas.Raster Translucency value", Argsn: 2, @@ -51088,6 +56461,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Raster)//translucency?": { Doc: "Get *canvas.Raster Translucency value", Argsn: 1, @@ -51116,6 +56491,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * corner-radius - decimal + // Result: + // * decimal "Go(*canvas.Rectangle)//corner-radius!": { Doc: "Set *canvas.Rectangle CornerRadius value", Argsn: 2, @@ -51150,6 +56529,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Rectangle)//corner-radius?": { Doc: "Get *canvas.Rectangle CornerRadius value", Argsn: 1, @@ -51178,6 +56559,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * fill-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.Rectangle)//fill-color!": { Doc: "Set *canvas.Rectangle FillColor value", Argsn: 2, @@ -51218,6 +56603,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.Rectangle)//fill-color?": { Doc: "Get *canvas.Rectangle FillColor value", Argsn: 1, @@ -51246,6 +56633,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide will set this rectangle to not be visible + // + // Args: + // * recv - Go(*canvas.Rectangle) "Go(*canvas.Rectangle)//hide": { Doc: "(*canvas.Rectangle).Hide", Argsn: 1, @@ -51273,6 +56664,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // move the rectangle to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Rectangle) + // * pos - Go(fyne.Position) "Go(*canvas.Rectangle)//move": { Doc: "(*canvas.Rectangle).Move", Argsn: 2, @@ -51313,6 +56709,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh causes this rectangle to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.Rectangle) "Go(*canvas.Rectangle)//refresh": { Doc: "(*canvas.Rectangle).Refresh", Argsn: 1, @@ -51340,6 +56740,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize on a rectangle updates the new size of this object. + // If it has a stroke width this will cause it to Refresh. + // + // Args: + // * recv - Go(*canvas.Rectangle) + // * s - Go(fyne.Size) "Go(*canvas.Rectangle)//resize": { Doc: "(*canvas.Rectangle).Resize", Argsn: 2, @@ -51380,6 +56786,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * stroke-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.Rectangle)//stroke-color!": { Doc: "Set *canvas.Rectangle StrokeColor value", Argsn: 2, @@ -51420,6 +56830,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.Rectangle)//stroke-color?": { Doc: "Get *canvas.Rectangle StrokeColor value", Argsn: 1, @@ -51448,6 +56860,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * stroke-width - decimal + // Result: + // * decimal "Go(*canvas.Rectangle)//stroke-width!": { Doc: "Set *canvas.Rectangle StrokeWidth value", Argsn: 2, @@ -51482,6 +56898,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Rectangle)//stroke-width?": { Doc: "Get *canvas.Rectangle StrokeWidth value", Argsn: 1, @@ -51510,6 +56928,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*canvas.Text)//alignment!": { Doc: "Set *canvas.Text Alignment value", Argsn: 2, @@ -51558,6 +56980,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*canvas.Text)//alignment?": { Doc: "Get *canvas.Text Alignment value", Argsn: 1, @@ -51586,6 +57010,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*canvas.Text)//color!": { Doc: "Set *canvas.Text Color value", Argsn: 2, @@ -51626,6 +57054,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*canvas.Text)//color?": { Doc: "Get *canvas.Text Color value", Argsn: 1, @@ -51654,6 +57084,97 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * font-source - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) + "Go(*canvas.Text)//font-source!": { + Doc: "Set *canvas.Text FontSource value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *canvas.Text + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*canvas.Text); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 1: " + "expected native of type *canvas.Text, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal fyne.Resource + switch v := arg1.(type) { + case env.RyeCtx: + var err error + newVal, err = ctxTo_fyne_Resource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Resource); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 2: " + "expected native of type fyne.Resource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.FontSource = newVal + return arg0 + }, + }, + // Result: + // * Go(fyne.Resource) + "Go(*canvas.Text)//font-source?": { + Doc: "Get *canvas.Text FontSource value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *canvas.Text + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*canvas.Text); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source?: arg 1: " + "expected native of type *canvas.Text, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*canvas.Text)//font-source?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = ifaceToNative(ps.Idx, self.FontSource, "Go(fyne.Resource)") + return resObj + }, + }, + // hide will set this text to not be visible + // + // Args: + // * recv - Go(*canvas.Text) "Go(*canvas.Text)//hide": { Doc: "(*canvas.Text).Hide", Argsn: 1, @@ -51681,6 +57202,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the minimum size of this text object based on its font size and content. + // This is normally determined by the render implementation. + // + // Args: + // * recv - Go(*canvas.Text) + // Result: + // * Go(fyne.Size) "Go(*canvas.Text)//min-size": { Doc: "(*canvas.Text).MinSize", Argsn: 1, @@ -51710,6 +57238,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the text to a new position, relative to its parent / canvas + // + // Args: + // * recv - Go(*canvas.Text) + // * pos - Go(fyne.Position) "Go(*canvas.Text)//move": { Doc: "(*canvas.Text).Move", Argsn: 2, @@ -51750,6 +57283,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh causes this text to be redrawn with its configured state. + // + // Args: + // * recv - Go(*canvas.Text) "Go(*canvas.Text)//refresh": { Doc: "(*canvas.Text).Refresh", Argsn: 1, @@ -51777,6 +57314,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize on a text updates the new size of this object, which may not result in a visual change, depending on alignment. + // + // Args: + // * recv - Go(*canvas.Text) + // * s - Go(fyne.Size) "Go(*canvas.Text)//resize": { Doc: "(*canvas.Text).Resize", Argsn: 2, @@ -51817,6 +57359,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-min-size has no effect as the smallest size this canvas object can be is based on its font size and content. + // + // Args: + // * recv - Go(*canvas.Text) + // * 1 - Go(fyne.Size) "Go(*canvas.Text)//set-min-size": { Doc: "(*canvas.Text).SetMinSize", Argsn: 2, @@ -51857,6 +57404,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text - string + // Result: + // * string "Go(*canvas.Text)//text!": { Doc: "Set *canvas.Text Text value", Argsn: 2, @@ -51891,6 +57442,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text-size - decimal + // Result: + // * decimal "Go(*canvas.Text)//text-size!": { Doc: "Set *canvas.Text TextSize value", Argsn: 2, @@ -51925,6 +57480,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*canvas.Text)//text-size?": { Doc: "Get *canvas.Text TextSize value", Argsn: 1, @@ -51953,6 +57510,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) "Go(*canvas.Text)//text-style!": { Doc: "Set *canvas.Text TextStyle value", Argsn: 2, @@ -51999,6 +57560,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.TextStyle) "Go(*canvas.Text)//text-style?": { Doc: "Get *canvas.Text TextStyle value", Argsn: 1, @@ -52027,6 +57590,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "Go(*canvas.Text)//text?": { Doc: "Get *canvas.Text Text value", Argsn: 1, @@ -52055,6 +57620,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // append adds a new TabItem to the end of the tab bar. + // + // Args: + // * recv - Go(*container.AppTabs) + // * item - Go(*container.TabItem) "Go(*container.AppTabs)//append": { Doc: "(*container.AppTabs).Append", Argsn: 2, @@ -52101,6 +57671,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*container.AppTabs)//base-widget!": { Doc: "Set *container.AppTabs BaseWidget value", Argsn: 2, @@ -52147,6 +57721,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*container.AppTabs)//base-widget?": { Doc: "Get *container.AppTabs BaseWidget value", Argsn: 1, @@ -52175,6 +57751,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*container.AppTabs)//create-renderer": { Doc: "(*container.AppTabs).CreateRenderer", Argsn: 1, @@ -52204,6 +57788,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // current-tab returns the currently selected TabItem. + // + // Deprecated: Use `AppTabs.Selected() *TabItem` instead. + // + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(*container.TabItem) "Go(*container.AppTabs)//current-tab": { Doc: "(*container.AppTabs).CurrentTab", Argsn: 1, @@ -52233,6 +57825,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // current-tab-index returns the index of the currently selected TabItem. + // + // Deprecated: Use `AppTabs.SelectedIndex() int` instead. + // + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * integer "Go(*container.AppTabs)//current-tab-index": { Doc: "(*container.AppTabs).CurrentTabIndex", Argsn: 1, @@ -52262,6 +57862,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disable-index disables the TabItem at the specified index. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.AppTabs) + // * i - integer "Go(*container.AppTabs)//disable-index": { Doc: "(*container.AppTabs).DisableIndex", Argsn: 2, @@ -52296,6 +57903,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // disable-item disables the specified TabItem. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.AppTabs) + // * item - Go(*container.TabItem) "Go(*container.AppTabs)//disable-item": { Doc: "(*container.AppTabs).DisableItem", Argsn: 2, @@ -52342,6 +57956,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable-index enables the TabItem at the specified index. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.AppTabs) + // * i - integer "Go(*container.AppTabs)//enable-index": { Doc: "(*container.AppTabs).EnableIndex", Argsn: 2, @@ -52376,6 +57997,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable-item enables the specified TabItem. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.AppTabs) + // * item - Go(*container.TabItem) "Go(*container.AppTabs)//enable-item": { Doc: "(*container.AppTabs).EnableItem", Argsn: 2, @@ -52422,6 +58050,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // extend-base-widget is used by an extending widget to make use of BaseWidget functionality. + // + // Deprecated: Support for extending containers is being removed + // + // Args: + // * recv - Go(*container.AppTabs) + // * wid - Go(fyne.Widget) "Go(*container.AppTabs)//extend-base-widget": { Doc: "(*container.AppTabs).ExtendBaseWidget", Argsn: 2, @@ -52475,6 +58110,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*container.AppTabs)//hidden!": { Doc: "Set *container.AppTabs Hidden value", Argsn: 2, @@ -52509,6 +58148,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*container.AppTabs)//hidden?": { Doc: "Get *container.AppTabs Hidden value", Argsn: 1, @@ -52537,6 +58178,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide hides the widget. + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*container.AppTabs) "Go(*container.AppTabs)//hide": { Doc: "(*container.AppTabs).Hide", Argsn: 1, @@ -52564,6 +58211,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(*container.TabItem)] + // Result: + // * block[Go(*container.TabItem)] "Go(*container.AppTabs)//items!": { Doc: "Set *container.AppTabs Items value", Argsn: 2, @@ -52592,10 +58243,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]*container.TabItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*container.TabItem); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*container.AppTabs)//items!: arg 2: " + "block item: " + "expected native of type *container.TabItem, but got " + objectDebugString(ps.Idx, v)) @@ -52605,7 +58257,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*container.AppTabs)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*container.AppTabs)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -52625,6 +58277,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(*container.TabItem)] "Go(*container.AppTabs)//items?": { Doc: "Get *container.AppTabs Items value", Argsn: 1, @@ -52659,6 +58313,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(fyne.Size) "Go(*container.AppTabs)//min-size": { Doc: "(*container.AppTabs).MinSize", Argsn: 1, @@ -52688,6 +58350,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.AppTabs) + // * pos - Go(fyne.Position) "Go(*container.AppTabs)//move": { Doc: "(*container.AppTabs).Move", Argsn: 2, @@ -52728,6 +58393,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-changed - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.AppTabs)//on-changed!": { Doc: "Set *container.AppTabs OnChanged value", Argsn: 2, @@ -52779,6 +58448,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.AppTabs)//on-changed?": { Doc: "Get *container.AppTabs OnChanged value", Argsn: 1, @@ -52829,6 +58500,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-selected - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.AppTabs)//on-selected!": { Doc: "Set *container.AppTabs OnSelected value", Argsn: 2, @@ -52880,6 +58555,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.AppTabs)//on-selected?": { Doc: "Get *container.AppTabs OnSelected value", Argsn: 1, @@ -52930,6 +58607,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-unselected - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.AppTabs)//on-unselected!": { Doc: "Set *container.AppTabs OnUnselected value", Argsn: 2, @@ -52981,6 +58662,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.AppTabs)//on-unselected?": { Doc: "Get *container.AppTabs OnUnselected value", Argsn: 1, @@ -53031,6 +58714,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(fyne.position) "Go(*container.AppTabs)//position": { Doc: "(*container.AppTabs).Position", Argsn: 1, @@ -53060,6 +58747,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.AppTabs) "Go(*container.AppTabs)//refresh": { Doc: "(*container.AppTabs).Refresh", Argsn: 1, @@ -53087,6 +58776,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove tab by value. + // + // Args: + // * recv - Go(*container.AppTabs) + // * item - Go(*container.TabItem) "Go(*container.AppTabs)//remove": { Doc: "(*container.AppTabs).Remove", Argsn: 2, @@ -53133,6 +58827,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove-index removes tab by index. + // + // Args: + // * recv - Go(*container.AppTabs) + // * index - integer "Go(*container.AppTabs)//remove-index": { Doc: "(*container.AppTabs).RemoveIndex", Argsn: 2, @@ -53167,6 +58866,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.AppTabs) + // * size - Go(fyne.Size) "Go(*container.AppTabs)//resize": { Doc: "(*container.AppTabs).Resize", Argsn: 2, @@ -53207,6 +58909,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select sets the specified TabItem to be selected and its content visible. + // + // Args: + // * recv - Go(*container.AppTabs) + // * item - Go(*container.TabItem) "Go(*container.AppTabs)//select": { Doc: "(*container.AppTabs).Select", Argsn: 2, @@ -53253,6 +58960,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select-index sets the TabItem at the specific index to be selected and its content visible. + // + // Args: + // * recv - Go(*container.AppTabs) + // * index - integer "Go(*container.AppTabs)//select-index": { Doc: "(*container.AppTabs).SelectIndex", Argsn: 2, @@ -53287,6 +58999,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select-tab sets the specified TabItem to be selected and its content visible. + // + // Deprecated: Use `AppTabs.Select(*TabItem)` instead. + // + // Args: + // * recv - Go(*container.AppTabs) + // * item - Go(*container.TabItem) "Go(*container.AppTabs)//select-tab": { Doc: "(*container.AppTabs).SelectTab", Argsn: 2, @@ -53333,6 +59052,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select-tab-index sets the TabItem at the specific index to be selected and its content visible. + // + // Deprecated: Use `AppTabs.SelectIndex(int)` instead. + // + // Args: + // * recv - Go(*container.AppTabs) + // * index - integer "Go(*container.AppTabs)//select-tab-index": { Doc: "(*container.AppTabs).SelectTabIndex", Argsn: 2, @@ -53367,6 +59093,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected returns the currently selected TabItem. + // + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(*container.TabItem) "Go(*container.AppTabs)//selected": { Doc: "(*container.AppTabs).Selected", Argsn: 1, @@ -53396,6 +59128,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // selected-index returns the index of the currently selected TabItem. + // + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * integer "Go(*container.AppTabs)//selected-index": { Doc: "(*container.AppTabs).SelectedIndex", Argsn: 1, @@ -53425,6 +59163,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // set-items sets the containers items and refreshes. + // + // Args: + // * recv - Go(*container.AppTabs) + // * items - block[Go(*container.TabItem)] "Go(*container.AppTabs)//set-items": { Doc: "(*container.AppTabs).SetItems", Argsn: 2, @@ -53453,10 +59196,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]*container.TabItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*container.TabItem); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*container.AppTabs)//set-items: arg 2: " + "block item: " + "expected native of type *container.TabItem, but got " + objectDebugString(ps.Idx, v)) @@ -53466,7 +59210,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*container.AppTabs)//set-items: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*container.AppTabs)//set-items: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -53486,6 +59230,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-tab-location sets the location of the tab bar + // + // Args: + // * recv - Go(*container.AppTabs) + // * l - integer "Go(*container.AppTabs)//set-tab-location": { Doc: "(*container.AppTabs).SetTabLocation", Argsn: 2, @@ -53534,6 +59283,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show this widget, if it was previously hidden + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*container.AppTabs) "Go(*container.AppTabs)//show": { Doc: "(*container.AppTabs).Show", Argsn: 1, @@ -53561,6 +59316,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(fyne.size) "Go(*container.AppTabs)//size": { Doc: "(*container.AppTabs).Size", Argsn: 1, @@ -53590,6 +59349,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * Go(fyne.theme) + "Go(*container.AppTabs)//theme": { + Doc: "(*container.AppTabs).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.AppTabs + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.AppTabs); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.AppTabs)//theme: arg 1: " + "expected native of type *container.AppTabs, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.AppTabs)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.AppTabs)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.AppTabs) + // Result: + // * bool "Go(*container.AppTabs)//visible": { Doc: "(*container.AppTabs).Visible", Argsn: 1, @@ -53619,6 +59415,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // append adds a new TabItem to the end of the tab bar. + // + // Args: + // * recv - Go(*container.DocTabs) + // * item - Go(*container.TabItem) "Go(*container.DocTabs)//append": { Doc: "(*container.DocTabs).Append", Argsn: 2, @@ -53665,6 +59466,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*container.DocTabs)//base-widget!": { Doc: "Set *container.DocTabs BaseWidget value", Argsn: 2, @@ -53711,6 +59516,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*container.DocTabs)//base-widget?": { Doc: "Get *container.DocTabs BaseWidget value", Argsn: 1, @@ -53739,6 +59546,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * close-intercept - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//close-intercept!": { Doc: "Set *container.DocTabs CloseIntercept value", Argsn: 2, @@ -53790,6 +59601,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//close-intercept?": { Doc: "Get *container.DocTabs CloseIntercept value", Argsn: 1, @@ -53840,6 +59653,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*container.DocTabs)//create-renderer": { Doc: "(*container.DocTabs).CreateRenderer", Argsn: 1, @@ -53869,6 +59690,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * create-tab - fn { } -> Go(*container.TabItem) + // Result: + // * fn { } -> Go(*container.TabItem) "Go(*container.DocTabs)//create-tab!": { Doc: "Set *container.DocTabs CreateTab value", Argsn: 2, @@ -53953,6 +59778,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> Go(*container.TabItem) "Go(*container.DocTabs)//create-tab?": { Doc: "Get *container.DocTabs CreateTab value", Argsn: 1, @@ -53986,6 +59813,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // disable-index disables the TabItem at the specified index. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.DocTabs) + // * i - integer "Go(*container.DocTabs)//disable-index": { Doc: "(*container.DocTabs).DisableIndex", Argsn: 2, @@ -54020,6 +59854,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // disable-item disables the specified TabItem. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.DocTabs) + // * item - Go(*container.TabItem) "Go(*container.DocTabs)//disable-item": { Doc: "(*container.DocTabs).DisableItem", Argsn: 2, @@ -54066,6 +59907,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable-index enables the TabItem at the specified index. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.DocTabs) + // * i - integer "Go(*container.DocTabs)//enable-index": { Doc: "(*container.DocTabs).EnableIndex", Argsn: 2, @@ -54100,6 +59948,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable-item enables the specified TabItem. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.DocTabs) + // * item - Go(*container.TabItem) "Go(*container.DocTabs)//enable-item": { Doc: "(*container.DocTabs).EnableItem", Argsn: 2, @@ -54146,6 +60001,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.DocTabs) + // * wid - Go(fyne.Widget) "Go(*container.DocTabs)//extend-base-widget": { Doc: "(*container.DocTabs).ExtendBaseWidget", Argsn: 2, @@ -54199,6 +60057,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*container.DocTabs)//hidden!": { Doc: "Set *container.DocTabs Hidden value", Argsn: 2, @@ -54233,6 +60095,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*container.DocTabs)//hidden?": { Doc: "Get *container.DocTabs Hidden value", Argsn: 1, @@ -54261,6 +60125,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide hides the widget. + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*container.DocTabs) "Go(*container.DocTabs)//hide": { Doc: "(*container.DocTabs).Hide", Argsn: 1, @@ -54288,6 +60158,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(*container.TabItem)] + // Result: + // * block[Go(*container.TabItem)] "Go(*container.DocTabs)//items!": { Doc: "Set *container.DocTabs Items value", Argsn: 2, @@ -54316,10 +60190,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]*container.TabItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*container.TabItem); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*container.DocTabs)//items!: arg 2: " + "block item: " + "expected native of type *container.TabItem, but got " + objectDebugString(ps.Idx, v)) @@ -54329,7 +60204,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*container.DocTabs)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*container.DocTabs)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -54349,6 +60224,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(*container.TabItem)] "Go(*container.DocTabs)//items?": { Doc: "Get *container.DocTabs Items value", Argsn: 1, @@ -54383,6 +60260,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * Go(fyne.Size) "Go(*container.DocTabs)//min-size": { Doc: "(*container.DocTabs).MinSize", Argsn: 1, @@ -54412,6 +60297,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.DocTabs) + // * pos - Go(fyne.Position) "Go(*container.DocTabs)//move": { Doc: "(*container.DocTabs).Move", Argsn: 2, @@ -54452,6 +60340,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-closed - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//on-closed!": { Doc: "Set *container.DocTabs OnClosed value", Argsn: 2, @@ -54503,6 +60395,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//on-closed?": { Doc: "Get *container.DocTabs OnClosed value", Argsn: 1, @@ -54553,6 +60447,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-selected - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//on-selected!": { Doc: "Set *container.DocTabs OnSelected value", Argsn: 2, @@ -54604,6 +60502,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//on-selected?": { Doc: "Get *container.DocTabs OnSelected value", Argsn: 1, @@ -54654,6 +60554,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-unselected - fn { Go(*container.TabItem) } + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//on-unselected!": { Doc: "Set *container.DocTabs OnUnselected value", Argsn: 2, @@ -54705,6 +60609,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(*container.TabItem) } "Go(*container.DocTabs)//on-unselected?": { Doc: "Get *container.DocTabs OnUnselected value", Argsn: 1, @@ -54755,6 +60661,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * Go(fyne.position) "Go(*container.DocTabs)//position": { Doc: "(*container.DocTabs).Position", Argsn: 1, @@ -54784,6 +60694,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.DocTabs) "Go(*container.DocTabs)//refresh": { Doc: "(*container.DocTabs).Refresh", Argsn: 1, @@ -54811,6 +60723,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove tab by value. + // + // Args: + // * recv - Go(*container.DocTabs) + // * item - Go(*container.TabItem) "Go(*container.DocTabs)//remove": { Doc: "(*container.DocTabs).Remove", Argsn: 2, @@ -54857,6 +60774,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove-index removes tab by index. + // + // Args: + // * recv - Go(*container.DocTabs) + // * index - integer "Go(*container.DocTabs)//remove-index": { Doc: "(*container.DocTabs).RemoveIndex", Argsn: 2, @@ -54891,6 +60813,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.DocTabs) + // * size - Go(fyne.Size) "Go(*container.DocTabs)//resize": { Doc: "(*container.DocTabs).Resize", Argsn: 2, @@ -54931,6 +60856,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select sets the specified TabItem to be selected and its content visible. + // + // Args: + // * recv - Go(*container.DocTabs) + // * item - Go(*container.TabItem) "Go(*container.DocTabs)//select": { Doc: "(*container.DocTabs).Select", Argsn: 2, @@ -54977,6 +60907,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select-index sets the TabItem at the specific index to be selected and its content visible. + // + // Args: + // * recv - Go(*container.DocTabs) + // * index - integer "Go(*container.DocTabs)//select-index": { Doc: "(*container.DocTabs).SelectIndex", Argsn: 2, @@ -55011,6 +60946,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected returns the currently selected TabItem. + // + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * Go(*container.TabItem) "Go(*container.DocTabs)//selected": { Doc: "(*container.DocTabs).Selected", Argsn: 1, @@ -55040,6 +60981,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // selected-index returns the index of the currently selected TabItem. + // + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * integer "Go(*container.DocTabs)//selected-index": { Doc: "(*container.DocTabs).SelectedIndex", Argsn: 1, @@ -55069,6 +61016,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // set-items sets the containers items and refreshes. + // + // Args: + // * recv - Go(*container.DocTabs) + // * items - block[Go(*container.TabItem)] "Go(*container.DocTabs)//set-items": { Doc: "(*container.DocTabs).SetItems", Argsn: 2, @@ -55097,10 +61049,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]*container.TabItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*container.TabItem); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*container.DocTabs)//set-items: arg 2: " + "block item: " + "expected native of type *container.TabItem, but got " + objectDebugString(ps.Idx, v)) @@ -55110,7 +61063,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*container.DocTabs)//set-items: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*container.DocTabs)//set-items: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -55130,6 +61083,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-tab-location sets the location of the tab bar + // + // Args: + // * recv - Go(*container.DocTabs) + // * l - integer "Go(*container.DocTabs)//set-tab-location": { Doc: "(*container.DocTabs).SetTabLocation", Argsn: 2, @@ -55178,6 +61136,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show this widget, if it was previously hidden + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*container.DocTabs) "Go(*container.DocTabs)//show": { Doc: "(*container.DocTabs).Show", Argsn: 1, @@ -55205,6 +61169,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * Go(fyne.size) "Go(*container.DocTabs)//size": { Doc: "(*container.DocTabs).Size", Argsn: 1, @@ -55234,6 +61202,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * Go(fyne.theme) + "Go(*container.DocTabs)//theme": { + Doc: "(*container.DocTabs).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.DocTabs + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.DocTabs); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.DocTabs)//theme: arg 1: " + "expected native of type *container.DocTabs, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.DocTabs)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.DocTabs)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.DocTabs) + // Result: + // * bool "Go(*container.DocTabs)//visible": { Doc: "(*container.DocTabs).Visible", Argsn: 1, @@ -55263,6 +61268,2201 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) + "Go(*container.InnerWindow)//base-widget!": { + Doc: "Set *container.InnerWindow BaseWidget value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal *widget.BaseWidget + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.BaseWidget); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget!: arg 2: " + "expected native of type *widget.BaseWidget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.BaseWidget = *newVal + return arg0 + }, + }, + // Result: + // * Go(widget.BaseWidget) + "Go(*container.InnerWindow)//base-widget?": { + Doc: "Get *container.InnerWindow BaseWidget value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//base-widget?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, &self.BaseWidget, "Go(*widget.BaseWidget)") + return resObj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + "Go(*container.InnerWindow)//close": { + Doc: "(*container.InnerWindow).Close", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Close() + return arg0 + }, + }, + // Args: + // * close-intercept - fn { } + // Result: + // * fn { } + "Go(*container.InnerWindow)//close-intercept!": { + Doc: "Set *container.InnerWindow CloseIntercept value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func() + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept!: arg 2: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func() { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.CloseIntercept = newVal + return arg0 + }, + }, + // Result: + // * fn { } + "Go(*container.InnerWindow)//close-intercept?": { + Doc: "Get *container.InnerWindow CloseIntercept value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//close-intercept?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + self.CloseIntercept() + return nil + }, 0, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // Result: + // * Go(fyne.WidgetRenderer) + "Go(*container.InnerWindow)//create-renderer": { + Doc: "(*container.InnerWindow).CreateRenderer", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//create-renderer: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//create-renderer: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//create-renderer: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.CreateRenderer() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.WidgetRenderer)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // * wid - Go(fyne.Widget) + "Go(*container.InnerWindow)//extend-base-widget": { + Doc: "(*container.InnerWindow).ExtendBaseWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//extend-base-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.ExtendBaseWidget(arg1Val) + return arg0 + }, + }, + // Args: + // * hidden - bool + // Result: + // * bool + "Go(*container.InnerWindow)//hidden!": { + Doc: "Set *container.InnerWindow Hidden value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.Hidden = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*container.InnerWindow)//hidden?": { + Doc: "Get *container.InnerWindow Hidden value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hidden?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.Hidden)) + return resObj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + "Go(*container.InnerWindow)//hide": { + Doc: "(*container.InnerWindow).Hide", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hide: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hide: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//hide: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Hide() + return arg0 + }, + }, + // Args: + // * icon - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) + "Go(*container.InnerWindow)//icon!": { + Doc: "Set *container.InnerWindow Icon value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal fyne.Resource + switch v := arg1.(type) { + case env.RyeCtx: + var err error + newVal, err = ctxTo_fyne_Resource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Resource); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 2: " + "expected native of type fyne.Resource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.Icon = newVal + return arg0 + }, + }, + // Result: + // * Go(fyne.Resource) + "Go(*container.InnerWindow)//icon?": { + Doc: "Get *container.InnerWindow Icon value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//icon?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = ifaceToNative(ps.Idx, self.Icon, "Go(fyne.Resource)") + return resObj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // Result: + // * Go(fyne.Size) + "Go(*container.InnerWindow)//min-size": { + Doc: "(*container.InnerWindow).MinSize", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//min-size: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//min-size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//min-size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.MinSize() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // * pos - Go(fyne.Position) + "Go(*container.InnerWindow)//move": { + Doc: "(*container.InnerWindow).Move", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//move: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//move: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//move: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Position + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Position); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//move: arg 2: " + "expected native of type *fyne.Position, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//move: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Move(arg1Val) + return arg0 + }, + }, + // Args: + // * on-dragged - fn { Go(*fyne.DragEvent) } + // Result: + // * fn { Go(*fyne.DragEvent) } + "Go(*container.InnerWindow)//on-dragged!": { + Doc: "Set *container.InnerWindow OnDragged value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func(*fyne.DragEvent) + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 1 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged!: arg 2: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func(farg0 *fyne.DragEvent) { + var farg0Val env.Object + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(*fyne.DragEvent)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx, farg0Val) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.OnDragged = newVal + return arg0 + }, + }, + // Result: + // * fn { Go(*fyne.DragEvent) } + "Go(*container.InnerWindow)//on-dragged?": { + Doc: "Get *container.InnerWindow OnDragged value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.DragEvent + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.DragEvent); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged?: arg 1: " + "expected native of type *fyne.DragEvent, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-dragged?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.OnDragged(arg0Val) + return nil + }, 1, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * on-maximized - fn { } + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-maximized!": { + Doc: "Set *container.InnerWindow OnMaximized value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func() + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized!: arg 2: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func() { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.OnMaximized = newVal + return arg0 + }, + }, + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-maximized?": { + Doc: "Get *container.InnerWindow OnMaximized value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-maximized?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + self.OnMaximized() + return nil + }, 0, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * on-minimized - fn { } + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-minimized!": { + Doc: "Set *container.InnerWindow OnMinimized value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func() + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized!: arg 2: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func() { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.OnMinimized = newVal + return arg0 + }, + }, + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-minimized?": { + Doc: "Get *container.InnerWindow OnMinimized value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-minimized?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + self.OnMinimized() + return nil + }, 0, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * on-resized - fn { Go(*fyne.DragEvent) } + // Result: + // * fn { Go(*fyne.DragEvent) } + "Go(*container.InnerWindow)//on-resized!": { + Doc: "Set *container.InnerWindow OnResized value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func(*fyne.DragEvent) + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 1 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized!: arg 2: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func(farg0 *fyne.DragEvent) { + var farg0Val env.Object + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(*fyne.DragEvent)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx, farg0Val) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.OnResized = newVal + return arg0 + }, + }, + // Result: + // * fn { Go(*fyne.DragEvent) } + "Go(*container.InnerWindow)//on-resized?": { + Doc: "Get *container.InnerWindow OnResized value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.DragEvent + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.DragEvent); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized?: arg 1: " + "expected native of type *fyne.DragEvent, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-resized?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.OnResized(arg0Val) + return nil + }, 1, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * on-tapped-bar - fn { } + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-tapped-bar!": { + Doc: "Set *container.InnerWindow OnTappedBar value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func() + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar!: arg 2: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func() { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.OnTappedBar = newVal + return arg0 + }, + }, + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-tapped-bar?": { + Doc: "Get *container.InnerWindow OnTappedBar value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-bar?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + self.OnTappedBar() + return nil + }, 0, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * on-tapped-icon - fn { } + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-tapped-icon!": { + Doc: "Set *container.InnerWindow OnTappedIcon value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon!: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal func() + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon!: arg 2: " + "expected 0 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + newVal = func() { + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon!: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + self.OnTappedIcon = newVal + return arg0 + }, + }, + // Result: + // * fn { } + "Go(*container.InnerWindow)//on-tapped-icon?": { + Doc: "Get *container.InnerWindow OnTappedIcon value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon?: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//on-tapped-icon?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewBuiltin(func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + self.OnTappedIcon() + return nil + }, 0, false, false, "Returned func") + return resObj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // Result: + // * Go(fyne.position) + "Go(*container.InnerWindow)//position": { + Doc: "(*container.InnerWindow).Position", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//position: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//position: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//position: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Position() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Position)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + "Go(*container.InnerWindow)//refresh": { + Doc: "(*container.InnerWindow).Refresh", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//refresh: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//refresh: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//refresh: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Refresh() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // * size - Go(fyne.Size) + "Go(*container.InnerWindow)//resize": { + Doc: "(*container.InnerWindow).Resize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//resize: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//resize: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//resize: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Size + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//resize: arg 2: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//resize: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Resize(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // * obj - Go(fyne.CanvasObject) + "Go(*container.InnerWindow)//set-content": { + Doc: "(*container.InnerWindow).SetContent", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.CanvasObject + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 2: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-content: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.SetContent(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // * pad - bool + "Go(*container.InnerWindow)//set-padded": { + Doc: "(*container.InnerWindow).SetPadded", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-padded: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-padded: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-padded: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val bool + if vc, ok := arg1.(env.Integer); ok { + arg1Val = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-padded: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + arg0Val.SetPadded(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // * title - string + "Go(*container.InnerWindow)//set-title": { + Doc: "(*container.InnerWindow).SetTitle", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-title: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-title: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-title: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//set-title: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + arg0Val.SetTitle(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + "Go(*container.InnerWindow)//show": { + Doc: "(*container.InnerWindow).Show", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//show: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//show: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//show: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Show() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // Result: + // * Go(fyne.size) + "Go(*container.InnerWindow)//size": { + Doc: "(*container.InnerWindow).Size", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//size: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Size() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // Result: + // * Go(fyne.theme) + "Go(*container.InnerWindow)//theme": { + Doc: "(*container.InnerWindow).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//theme: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.InnerWindow) + // Result: + // * bool + "Go(*container.InnerWindow)//visible": { + Doc: "(*container.InnerWindow).Visible", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.InnerWindow + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//visible: arg 1: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//visible: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.InnerWindow)//visible: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Visible() + var res0Obj env.Object + res0Obj = *env.NewInteger(boolToInt64(res0)) + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // * w - Go(*container.InnerWindow) + "Go(*container.MultipleWindows)//add": { + Doc: "(*container.MultipleWindows).Add", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//add: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//add: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//add: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val *container.InnerWindow + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//add: arg 2: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//add: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//add: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Add(arg1Val) + return arg0 + }, + }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) + "Go(*container.MultipleWindows)//base-widget!": { + Doc: "Set *container.MultipleWindows BaseWidget value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget!: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal *widget.BaseWidget + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.BaseWidget); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget!: arg 2: " + "expected native of type *widget.BaseWidget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.BaseWidget = *newVal + return arg0 + }, + }, + // Result: + // * Go(widget.BaseWidget) + "Go(*container.MultipleWindows)//base-widget?": { + Doc: "Get *container.MultipleWindows BaseWidget value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget?: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//base-widget?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, &self.BaseWidget, "Go(*widget.BaseWidget)") + return resObj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // Result: + // * Go(fyne.WidgetRenderer) + "Go(*container.MultipleWindows)//create-renderer": { + Doc: "(*container.MultipleWindows).CreateRenderer", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//create-renderer: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//create-renderer: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//create-renderer: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.CreateRenderer() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.WidgetRenderer)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // * wid - Go(fyne.Widget) + "Go(*container.MultipleWindows)//extend-base-widget": { + Doc: "(*container.MultipleWindows).ExtendBaseWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//extend-base-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.ExtendBaseWidget(arg1Val) + return arg0 + }, + }, + // Args: + // * hidden - bool + // Result: + // * bool + "Go(*container.MultipleWindows)//hidden!": { + Doc: "Set *container.MultipleWindows Hidden value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden!: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.Hidden = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*container.MultipleWindows)//hidden?": { + Doc: "Get *container.MultipleWindows Hidden value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden?: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hidden?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.Hidden)) + return resObj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + "Go(*container.MultipleWindows)//hide": { + Doc: "(*container.MultipleWindows).Hide", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hide: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hide: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//hide: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Hide() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // Result: + // * Go(fyne.Size) + "Go(*container.MultipleWindows)//min-size": { + Doc: "(*container.MultipleWindows).MinSize", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//min-size: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//min-size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//min-size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.MinSize() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // * pos - Go(fyne.Position) + "Go(*container.MultipleWindows)//move": { + Doc: "(*container.MultipleWindows).Move", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//move: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//move: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//move: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Position + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Position); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//move: arg 2: " + "expected native of type *fyne.Position, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//move: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Move(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // Result: + // * Go(fyne.position) + "Go(*container.MultipleWindows)//position": { + Doc: "(*container.MultipleWindows).Position", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//position: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//position: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//position: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Position() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Position)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + "Go(*container.MultipleWindows)//refresh": { + Doc: "(*container.MultipleWindows).Refresh", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//refresh: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//refresh: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//refresh: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Refresh() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // * size - Go(fyne.Size) + "Go(*container.MultipleWindows)//resize": { + Doc: "(*container.MultipleWindows).Resize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//resize: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//resize: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//resize: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Size + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//resize: arg 2: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//resize: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Resize(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + "Go(*container.MultipleWindows)//show": { + Doc: "(*container.MultipleWindows).Show", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//show: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//show: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//show: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Show() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // Result: + // * Go(fyne.size) + "Go(*container.MultipleWindows)//size": { + Doc: "(*container.MultipleWindows).Size", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//size: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Size() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // Result: + // * Go(fyne.theme) + "Go(*container.MultipleWindows)//theme": { + Doc: "(*container.MultipleWindows).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//theme: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.MultipleWindows) + // Result: + // * bool + "Go(*container.MultipleWindows)//visible": { + Doc: "(*container.MultipleWindows).Visible", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//visible: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//visible: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//visible: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Visible() + var res0Obj env.Object + res0Obj = *env.NewInteger(boolToInt64(res0)) + return res0Obj + }, + }, + // Args: + // * windows - block[Go(*container.InnerWindow)] + // Result: + // * block[Go(*container.InnerWindow)] + "Go(*container.MultipleWindows)//windows!": { + Doc: "Set *container.MultipleWindows Windows value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal []*container.InnerWindow + switch v := arg1.(type) { + case env.Block: + newVal = make([]*container.InnerWindow, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &newVal[i] + switch v := it.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 2: " + "block item: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + (*iv) = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows!: arg 2: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + self.Windows = newVal + return arg0 + }, + }, + // Result: + // * block[Go(*container.InnerWindow)] + "Go(*container.MultipleWindows)//windows?": { + Doc: "Get *container.MultipleWindows Windows value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.MultipleWindows + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.MultipleWindows); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows?: arg 1: " + "expected native of type *container.MultipleWindows, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.MultipleWindows)//windows?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + { + items := make([]env.Object, len(self.Windows)) + for i, it := range self.Windows { + items[i] = *env.NewNative(ps.Idx, it, "Go(*container.InnerWindow)") + } + resObj = *env.NewBlock(*env.NewTSeries(items)) + } + return resObj + }, + }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*container.Split)//base-widget!": { Doc: "Set *container.Split BaseWidget value", Argsn: 2, @@ -55309,6 +63509,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*container.Split)//base-widget?": { Doc: "Get *container.Split BaseWidget value", Argsn: 1, @@ -55337,6 +63539,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*container.Split) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*container.Split)//create-renderer": { Doc: "(*container.Split).CreateRenderer", Argsn: 1, @@ -55366,6 +63574,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // extend-base-widget is used by an extending widget to make use of BaseWidget functionality. + // + // Deprecated: Support for extending containers is being removed + // + // Args: + // * recv - Go(*container.Split) + // * wid - Go(fyne.Widget) "Go(*container.Split)//extend-base-widget": { Doc: "(*container.Split).ExtendBaseWidget", Argsn: 2, @@ -55419,6 +63634,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*container.Split)//hidden!": { Doc: "Set *container.Split Hidden value", Argsn: 2, @@ -55453,6 +63672,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*container.Split)//hidden?": { Doc: "Get *container.Split Hidden value", Argsn: 1, @@ -55481,6 +63702,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*container.Split) "Go(*container.Split)//hide": { Doc: "(*container.Split).Hide", Argsn: 1, @@ -55508,6 +63731,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * horizontal - bool + // Result: + // * bool "Go(*container.Split)//horizontal!": { Doc: "Set *container.Split Horizontal value", Argsn: 2, @@ -55542,6 +63769,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*container.Split)//horizontal?": { Doc: "Get *container.Split Horizontal value", Argsn: 1, @@ -55570,6 +63799,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * leading - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*container.Split)//leading!": { Doc: "Set *container.Split Leading value", Argsn: 2, @@ -55623,6 +63856,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*container.Split)//leading?": { Doc: "Get *container.Split Leading value", Argsn: 1, @@ -55651,6 +63886,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*container.Split) + // Result: + // * Go(fyne.Size) "Go(*container.Split)//min-size": { Doc: "(*container.Split).MinSize", Argsn: 1, @@ -55680,6 +63919,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.Split) + // * pos - Go(fyne.Position) "Go(*container.Split)//move": { Doc: "(*container.Split).Move", Argsn: 2, @@ -55720,6 +63962,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * offset - decimal + // Result: + // * decimal "Go(*container.Split)//offset!": { Doc: "Set *container.Split Offset value", Argsn: 2, @@ -55754,6 +64000,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*container.Split)//offset?": { Doc: "Get *container.Split Offset value", Argsn: 1, @@ -55782,6 +64030,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*container.Split) + // Result: + // * Go(fyne.position) "Go(*container.Split)//position": { Doc: "(*container.Split).Position", Argsn: 1, @@ -55811,6 +64063,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.Split) "Go(*container.Split)//refresh": { Doc: "(*container.Split).Refresh", Argsn: 1, @@ -55838,6 +64092,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.Split) + // * size - Go(fyne.Size) "Go(*container.Split)//resize": { Doc: "(*container.Split).Resize", Argsn: 2, @@ -55878,6 +64135,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-offset sets the offset (0.0 to 1.0) of the Split divider. + // 0.0 - Leading is min size, Trailing uses all remaining space. + // 0.5 - Leading & Trailing equally share the available space. + // 1.0 - Trailing is min size, Leading uses all remaining space. + // + // Args: + // * recv - Go(*container.Split) + // * offset - decimal "Go(*container.Split)//set-offset": { Doc: "(*container.Split).SetOffset", Argsn: 2, @@ -55912,6 +64177,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.Split) "Go(*container.Split)//show": { Doc: "(*container.Split).Show", Argsn: 1, @@ -55939,6 +64206,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*container.Split) + // Result: + // * Go(fyne.size) "Go(*container.Split)//size": { Doc: "(*container.Split).Size", Argsn: 1, @@ -55968,6 +64239,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*container.Split) + // Result: + // * Go(fyne.theme) + "Go(*container.Split)//theme": { + Doc: "(*container.Split).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.Split + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.Split); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.Split)//theme: arg 1: " + "expected native of type *container.Split, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.Split)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.Split)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * trailing - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*container.Split)//trailing!": { Doc: "Set *container.Split Trailing value", Argsn: 2, @@ -56021,6 +64329,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*container.Split)//trailing?": { Doc: "Get *container.Split Trailing value", Argsn: 1, @@ -56049,6 +64359,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*container.Split) + // Result: + // * bool "Go(*container.Split)//visible": { Doc: "(*container.Split).Visible", Argsn: 1, @@ -56078,6 +64392,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*container.TabItem)//content!": { Doc: "Set *container.TabItem Content value", Argsn: 2, @@ -56131,6 +64449,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*container.TabItem)//content?": { Doc: "Get *container.TabItem Content value", Argsn: 1, @@ -56159,6 +64479,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // disabled returns whether or not the TabItem is disabled. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*container.TabItem) + // Result: + // * bool "Go(*container.TabItem)//disabled": { Doc: "(*container.TabItem).Disabled", Argsn: 1, @@ -56188,6 +64516,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * icon - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*container.TabItem)//icon!": { Doc: "Set *container.TabItem Icon value", Argsn: 2, @@ -56241,6 +64573,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Resource) "Go(*container.TabItem)//icon?": { Doc: "Get *container.TabItem Icon value", Argsn: 1, @@ -56269,6 +64603,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * text - string + // Result: + // * string "Go(*container.TabItem)//text!": { Doc: "Set *container.TabItem Text value", Argsn: 2, @@ -56303,6 +64641,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*container.TabItem)//text?": { Doc: "Get *container.TabItem Text value", Argsn: 1, @@ -56331,6 +64671,729 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) + "Go(*container.ThemeOverride)//base-widget!": { + Doc: "Set *container.ThemeOverride BaseWidget value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget!: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal *widget.BaseWidget + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.BaseWidget); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget!: arg 2: " + "expected native of type *widget.BaseWidget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.BaseWidget = *newVal + return arg0 + }, + }, + // Result: + // * Go(widget.BaseWidget) + "Go(*container.ThemeOverride)//base-widget?": { + Doc: "Get *container.ThemeOverride BaseWidget value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget?: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//base-widget?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, &self.BaseWidget, "Go(*widget.BaseWidget)") + return resObj + }, + }, + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) + "Go(*container.ThemeOverride)//content!": { + Doc: "Set *container.ThemeOverride Content value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal fyne.CanvasObject + switch v := arg1.(type) { + case env.RyeCtx: + var err error + newVal, err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 2: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.Content = newVal + return arg0 + }, + }, + // Result: + // * Go(fyne.CanvasObject) + "Go(*container.ThemeOverride)//content?": { + Doc: "Get *container.ThemeOverride Content value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content?: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//content?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = ifaceToNative(ps.Idx, self.Content, "Go(fyne.CanvasObject)") + return resObj + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // Result: + // * Go(fyne.WidgetRenderer) + "Go(*container.ThemeOverride)//create-renderer": { + Doc: "(*container.ThemeOverride).CreateRenderer", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//create-renderer: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//create-renderer: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//create-renderer: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.CreateRenderer() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.WidgetRenderer)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // * wid - Go(fyne.Widget) + "Go(*container.ThemeOverride)//extend-base-widget": { + Doc: "(*container.ThemeOverride).ExtendBaseWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//extend-base-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.ExtendBaseWidget(arg1Val) + return arg0 + }, + }, + // Args: + // * hidden - bool + // Result: + // * bool + "Go(*container.ThemeOverride)//hidden!": { + Doc: "Set *container.ThemeOverride Hidden value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden!: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.Hidden = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*container.ThemeOverride)//hidden?": { + Doc: "Get *container.ThemeOverride Hidden value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden?: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hidden?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.Hidden)) + return resObj + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + "Go(*container.ThemeOverride)//hide": { + Doc: "(*container.ThemeOverride).Hide", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hide: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hide: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//hide: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Hide() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // Result: + // * Go(fyne.Size) + "Go(*container.ThemeOverride)//min-size": { + Doc: "(*container.ThemeOverride).MinSize", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//min-size: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//min-size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//min-size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.MinSize() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // * pos - Go(fyne.Position) + "Go(*container.ThemeOverride)//move": { + Doc: "(*container.ThemeOverride).Move", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//move: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//move: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//move: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Position + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Position); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//move: arg 2: " + "expected native of type *fyne.Position, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//move: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Move(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // Result: + // * Go(fyne.position) + "Go(*container.ThemeOverride)//position": { + Doc: "(*container.ThemeOverride).Position", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//position: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//position: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//position: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Position() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Position)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + "Go(*container.ThemeOverride)//refresh": { + Doc: "(*container.ThemeOverride).Refresh", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//refresh: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//refresh: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//refresh: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Refresh() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // * size - Go(fyne.Size) + "Go(*container.ThemeOverride)//resize": { + Doc: "(*container.ThemeOverride).Resize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//resize: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//resize: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//resize: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Size + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//resize: arg 2: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//resize: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Resize(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + "Go(*container.ThemeOverride)//show": { + Doc: "(*container.ThemeOverride).Show", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//show: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//show: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//show: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Show() + return arg0 + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // Result: + // * Go(fyne.size) + "Go(*container.ThemeOverride)//size": { + Doc: "(*container.ThemeOverride).Size", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//size: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Size() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * theme - Go(fyne.Theme) + // Result: + // * Go(fyne.Theme) + "Go(*container.ThemeOverride)//theme!": { + Doc: "Set *container.ThemeOverride Theme value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal fyne.Theme + switch v := arg1.(type) { + case env.RyeCtx: + var err error + newVal, err = ctxTo_fyne_Theme(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Theme); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 2: " + "expected native of type fyne.Theme, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.Theme = newVal + return arg0 + }, + }, + // Result: + // * Go(fyne.Theme) + "Go(*container.ThemeOverride)//theme?": { + Doc: "Get *container.ThemeOverride Theme value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme?: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//theme?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = ifaceToNative(ps.Idx, self.Theme, "Go(fyne.Theme)") + return resObj + }, + }, + // Args: + // * recv - Go(*container.ThemeOverride) + // Result: + // * bool + "Go(*container.ThemeOverride)//visible": { + Doc: "(*container.ThemeOverride).Visible", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *container.ThemeOverride + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*container.ThemeOverride); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//visible: arg 1: " + "expected native of type *container.ThemeOverride, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//visible: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*container.ThemeOverride)//visible: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Visible() + var res0Obj env.Object + res0Obj = *env.NewInteger(boolToInt64(res0)) + return res0Obj + }, + }, + // key returns the key name of this shortcut. + // @implements keyboardShortcut + // + // Args: + // * recv - Go(*desktop.CustomShortcut) + // Result: + // * string "Go(*desktop.CustomShortcut)//key": { Doc: "(*desktop.CustomShortcut).Key", Argsn: 1, @@ -56360,6 +65423,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * key-name - string + // Result: + // * string "Go(*desktop.CustomShortcut)//key-name!": { Doc: "Set *desktop.CustomShortcut KeyName value", Argsn: 2, @@ -56408,54 +65475,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, - "Go(*desktop.CustomShortcut)//key-name!-1": { - Doc: "Set *desktop.CustomShortcut KeyName value", - Argsn: 2, - Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var self *desktop.CustomShortcut - switch v := arg0.(type) { - case env.Native: - if vc, ok := v.Value.(*desktop.CustomShortcut); ok { - self = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name!-1: arg 1: " + "expected native of type *desktop.CustomShortcut, but got " + objectDebugString(ps.Idx, v)) - } - case env.Integer: - if v.Value != 0 { - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name!-1: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) - } - self = nil - default: - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name!-1: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) - } - var newVal fyne.KeyName - { - nat, natOk := arg1.(env.Native) - var natValOk bool - var natVal fyne.KeyName - if natOk { - natVal, natValOk = nat.Value.(fyne.KeyName) - } - if natValOk { - newVal = natVal - } else { - var u string - if vc, ok := arg1.(env.String); ok { - u = string(vc.Value) - } else { - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name!-1: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) - } - newVal = fyne.KeyName(u) - } - } - self.KeyName = newVal - return arg0 - }, - }, + // Result: + // * string "Go(*desktop.CustomShortcut)//key-name?": { Doc: "Get *desktop.CustomShortcut KeyName value", Argsn: 1, @@ -56484,34 +65505,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, - "Go(*desktop.CustomShortcut)//key-name?-1": { - Doc: "Get *desktop.CustomShortcut KeyName value", - Argsn: 1, - Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var self *desktop.CustomShortcut - switch v := arg0.(type) { - case env.Native: - if vc, ok := v.Value.(*desktop.CustomShortcut); ok { - self = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name?-1: arg 1: " + "expected native of type *desktop.CustomShortcut, but got " + objectDebugString(ps.Idx, v)) - } - case env.Integer: - if v.Value != 0 { - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name?-1: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) - } - self = nil - default: - ps.FailureFlag = true - return env.NewError("Go(*desktop.CustomShortcut)//key-name?-1: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) - } - var resObj env.Object - resObj = *env.NewString(string(self.KeyName)) - return resObj - }, - }, + // mod returns the modifier of this shortcut. + // @implements KeyboardShortcut + // + // Args: + // * recv - Go(*desktop.CustomShortcut) + // Result: + // * integer "Go(*desktop.CustomShortcut)//mod": { Doc: "(*desktop.CustomShortcut).Mod", Argsn: 1, @@ -56541,6 +65541,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * modifier - integer + // Result: + // * integer "Go(*desktop.CustomShortcut)//modifier!": { Doc: "Set *desktop.CustomShortcut Modifier value", Argsn: 2, @@ -56589,6 +65593,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*desktop.CustomShortcut)//modifier?": { Doc: "Get *desktop.CustomShortcut Modifier value", Argsn: 1, @@ -56617,6 +65623,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // shortcut-name returns the shortcut name associated to the event + // + // Args: + // * recv - Go(*desktop.CustomShortcut) + // Result: + // * string "Go(*desktop.CustomShortcut)//shortcut-name": { Doc: "(*desktop.CustomShortcut).ShortcutName", Argsn: 1, @@ -56646,6 +65658,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * absolute-position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*desktop.MouseEvent)//absolute-position!": { Doc: "Set *desktop.MouseEvent AbsolutePosition value", Argsn: 2, @@ -56692,6 +65708,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*desktop.MouseEvent)//absolute-position?": { Doc: "Get *desktop.MouseEvent AbsolutePosition value", Argsn: 1, @@ -56720,6 +65738,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * button - integer + // Result: + // * integer "Go(*desktop.MouseEvent)//button!": { Doc: "Set *desktop.MouseEvent Button value", Argsn: 2, @@ -56768,6 +65790,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*desktop.MouseEvent)//button?": { Doc: "Get *desktop.MouseEvent Button value", Argsn: 1, @@ -56796,6 +65820,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * modifier - integer + // Result: + // * integer "Go(*desktop.MouseEvent)//modifier!": { Doc: "Set *desktop.MouseEvent Modifier value", Argsn: 2, @@ -56844,6 +65872,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*desktop.MouseEvent)//modifier?": { Doc: "Get *desktop.MouseEvent Modifier value", Argsn: 1, @@ -56872,6 +65902,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * point-event - Go(fyne.PointEvent) + // Result: + // * Go(fyne.PointEvent) "Go(*desktop.MouseEvent)//point-event!": { Doc: "Set *desktop.MouseEvent PointEvent value", Argsn: 2, @@ -56918,6 +65952,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.PointEvent) "Go(*desktop.MouseEvent)//point-event?": { Doc: "Get *desktop.MouseEvent PointEvent value", Argsn: 1, @@ -56946,6 +65982,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*desktop.MouseEvent)//position!": { Doc: "Set *desktop.MouseEvent Position value", Argsn: 2, @@ -56992,6 +66032,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*desktop.MouseEvent)//position?": { Doc: "Get *desktop.MouseEvent Position value", Argsn: 1, @@ -57020,6 +66062,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * advanced - bool + // Result: + // * bool "Go(*dialog.ColorPickerDialog)//advanced!": { Doc: "Set *dialog.ColorPickerDialog Advanced value", Argsn: 2, @@ -57054,6 +66100,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*dialog.ColorPickerDialog)//advanced?": { Doc: "Get *dialog.ColorPickerDialog Advanced value", Argsn: 1, @@ -57082,6 +66130,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // refresh causes this dialog to be updated + // + // Args: + // * recv - Go(*dialog.ColorPickerDialog) "Go(*dialog.ColorPickerDialog)//refresh": { Doc: "(*dialog.ColorPickerDialog).Refresh", Argsn: 1, @@ -57109,6 +66161,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-color updates the color of the color picker. + // + // Args: + // * recv - Go(*dialog.ColorPickerDialog) + // * c - Go(color.Color) "Go(*dialog.ColorPickerDialog)//set-color": { Doc: "(*dialog.ColorPickerDialog).SetColor", Argsn: 2, @@ -57149,6 +66206,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show causes this dialog to be displayed + // + // Args: + // * recv - Go(*dialog.ColorPickerDialog) "Go(*dialog.ColorPickerDialog)//show": { Doc: "(*dialog.ColorPickerDialog).Show", Argsn: 1, @@ -57176,6 +66237,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-confirm-importance sets the importance level of the confirm button. + // + // Since 2.4 + // + // Args: + // * recv - Go(*dialog.ConfirmDialog) + // * importance - integer "Go(*dialog.ConfirmDialog)//set-confirm-importance": { Doc: "(*dialog.ConfirmDialog).SetConfirmImportance", Argsn: 2, @@ -57224,6 +66292,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-confirm-text allows custom text to be set in the confirmation button + // + // Args: + // * recv - Go(*dialog.ConfirmDialog) + // * label - string "Go(*dialog.ConfirmDialog)//set-confirm-text": { Doc: "(*dialog.ConfirmDialog).SetConfirmText", Argsn: 2, @@ -57258,6 +66331,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-buttons sets the row of buttons at the bottom of the dialog. + // Passing an empy slice will result in a dialog with no buttons. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*dialog.CustomDialog) + // * buttons - block[Go(fyne.CanvasObject)] "Go(*dialog.CustomDialog)//set-buttons": { Doc: "(*dialog.CustomDialog).SetButtons", Argsn: 2, @@ -57286,17 +66367,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*dialog.CustomDialog)//set-buttons: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*dialog.CustomDialog)//set-buttons: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -57306,7 +66388,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*dialog.CustomDialog)//set-buttons: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*dialog.CustomDialog)//set-buttons: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -57326,6 +66408,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * form-dialog - Go(*dialog.FormDialog) + // Result: + // * Go(*dialog.FormDialog) "Go(*dialog.EntryDialog)//form-dialog!": { Doc: "Set *dialog.EntryDialog FormDialog value", Argsn: 2, @@ -57372,6 +66458,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(*dialog.FormDialog) "Go(*dialog.EntryDialog)//form-dialog?": { Doc: "Get *dialog.EntryDialog FormDialog value", Argsn: 1, @@ -57400,6 +66488,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-on-closed changes the callback which is run when the dialog is closed, + // which is nil by default. + // + // The callback is called unconditionally whether the user confirms or cancels. + // + // Note that the callback will be called after onConfirm, if both are non-nil. + // This way onConfirm can potential modify state that this callback needs to + // get the user input when the user confirms, while also being able to handle + // the case where the user cancelled. + // + // Args: + // * recv - Go(*dialog.EntryDialog) + // * callback - fn { } "Go(*dialog.EntryDialog)//set-on-closed": { Doc: "(*dialog.EntryDialog).SetOnClosed", Argsn: 2, @@ -57449,6 +66550,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-placeholder defines the placeholder text for the entry + // + // Args: + // * recv - Go(*dialog.EntryDialog) + // * s - string "Go(*dialog.EntryDialog)//set-placeholder": { Doc: "(*dialog.EntryDialog).SetPlaceholder", Argsn: 2, @@ -57483,6 +66589,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text changes the current text value of the entry dialog, this can + // be useful for setting a default value. + // + // Args: + // * recv - Go(*dialog.EntryDialog) + // * s - string "Go(*dialog.EntryDialog)//set-text": { Doc: "(*dialog.EntryDialog).SetText", Argsn: 2, @@ -57517,6 +66629,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*dialog.EntryDialog) "Go(*dialog.EntryDialog)//submit": { Doc: "(*dialog.EntryDialog).Submit", Argsn: 1, @@ -57544,6 +66658,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // hide hides the file dialog. + // + // Args: + // * recv - Go(*dialog.FileDialog) "Go(*dialog.FileDialog)//hide": { Doc: "(*dialog.FileDialog).Hide", Argsn: 1, @@ -57571,6 +66689,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this dialog should not shrink below + // + // Since: 2.1 + // + // Args: + // * recv - Go(*dialog.FileDialog) + // Result: + // * Go(fyne.Size) "Go(*dialog.FileDialog)//min-size": { Doc: "(*dialog.FileDialog).MinSize", Argsn: 1, @@ -57600,6 +66726,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh causes this dialog to be updated + // + // Args: + // * recv - Go(*dialog.FileDialog) "Go(*dialog.FileDialog)//refresh": { Doc: "(*dialog.FileDialog).Refresh", Argsn: 1, @@ -57627,6 +66757,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize dialog to the requested size, if there is sufficient space. + // If the parent window is not large enough then the size will be reduced to fit. + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * size - Go(fyne.Size) "Go(*dialog.FileDialog)//resize": { Doc: "(*dialog.FileDialog).Resize", Argsn: 2, @@ -57667,6 +66803,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-confirm-text allows custom text to be set in the confirmation button + // + // Since: 2.2 + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * label - string "Go(*dialog.FileDialog)//set-confirm-text": { Doc: "(*dialog.FileDialog).SetConfirmText", Argsn: 2, @@ -57701,6 +66844,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-dismiss-text allows custom text to be set in the dismiss button + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * label - string "Go(*dialog.FileDialog)//set-dismiss-text": { Doc: "(*dialog.FileDialog).SetDismissText", Argsn: 2, @@ -57735,6 +66883,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-file-name sets the filename in a FileDialog in save mode. + // This is normally called before the dialog is shown. + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * file-name - string "Go(*dialog.FileDialog)//set-file-name": { Doc: "(*dialog.FileDialog).SetFileName", Argsn: 2, @@ -57769,6 +66923,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-filter sets a filter for limiting files that can be chosen in the file dialog. + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * filter - Go(storage.FileFilter) "Go(*dialog.FileDialog)//set-filter": { Doc: "(*dialog.FileDialog).SetFilter", Argsn: 2, @@ -57822,6 +66981,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-location tells this FileDialog which location to display. + // This is normally called before the dialog is shown. + // + // Since: 1.4 + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * u - Go(fyne.ListableURI) "Go(*dialog.FileDialog)//set-location": { Doc: "(*dialog.FileDialog).SetLocation", Argsn: 2, @@ -57875,6 +67042,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-on-closed sets a callback function that is called when + // the dialog is closed. + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * closed - fn { } "Go(*dialog.FileDialog)//set-on-closed": { Doc: "(*dialog.FileDialog).SetOnClosed", Argsn: 2, @@ -57924,6 +67097,66 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-view changes the default display view of the FileDialog + // This is normally called before the dialog is shown. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*dialog.FileDialog) + // * v - integer + "Go(*dialog.FileDialog)//set-view": { + Doc: "(*dialog.FileDialog).SetView", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *dialog.FileDialog + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*dialog.FileDialog); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*dialog.FileDialog)//set-view: arg 1: " + "expected native of type *dialog.FileDialog, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*dialog.FileDialog)//set-view: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*dialog.FileDialog)//set-view: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val dialog.ViewLayout + { + nat, natOk := arg1.(env.Native) + var natValOk bool + var natVal dialog.ViewLayout + if natOk { + natVal, natValOk = nat.Value.(dialog.ViewLayout) + } + if natValOk { + arg1Val = natVal + } else { + var u int + if vc, ok := arg1.(env.Integer); ok { + u = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*dialog.FileDialog)//set-view: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + arg1Val = dialog.ViewLayout(u) + } + } + arg0Val.SetView(arg1Val) + return arg0 + }, + }, + // show shows the file dialog. + // + // Args: + // * recv - Go(*dialog.FileDialog) "Go(*dialog.FileDialog)//show": { Doc: "(*dialog.FileDialog).Show", Argsn: 1, @@ -57951,6 +67184,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // submit will submit the form and then hide the dialog if validation passes. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*dialog.FormDialog) "Go(*dialog.FormDialog)//submit": { Doc: "(*dialog.FormDialog).Submit", Argsn: 1, @@ -57978,6 +67217,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-value updates the value of the progress bar - this should be between 0.0 and 1.0. + // + // Args: + // * recv - Go(*dialog.ProgressDialog) + // * v - decimal "Go(*dialog.ProgressDialog)//set-value": { Doc: "(*dialog.ProgressDialog).SetValue", Argsn: 2, @@ -58012,6 +67256,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // hide this dialog and stop the infinite progress goroutine + // + // Args: + // * recv - Go(*dialog.ProgressInfiniteDialog) "Go(*dialog.ProgressInfiniteDialog)//hide": { Doc: "(*dialog.ProgressInfiniteDialog).Hide", Argsn: 1, @@ -58039,6 +67287,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * auto-reverse - bool + // Result: + // * bool "Go(*fyne.Animation)//auto-reverse!": { Doc: "Set *fyne.Animation AutoReverse value", Argsn: 2, @@ -58073,6 +67325,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.Animation)//auto-reverse?": { Doc: "Get *fyne.Animation AutoReverse value", Argsn: 1, @@ -58101,6 +67355,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * curve - fn { decimal } -> decimal + // Result: + // * fn { decimal } -> decimal "Go(*fyne.Animation)//curve!": { Doc: "Set *fyne.Animation Curve value", Argsn: 2, @@ -58179,6 +67437,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { decimal } -> decimal "Go(*fyne.Animation)//curve?": { Doc: "Get *fyne.Animation Curve value", Argsn: 1, @@ -58219,6 +67479,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * duration - Go(time.Duration) + // Result: + // * Go(time.Duration) "Go(*fyne.Animation)//duration!": { Doc: "Set *fyne.Animation Duration value", Argsn: 2, @@ -58259,6 +67523,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(time.Duration) "Go(*fyne.Animation)//duration?": { Doc: "Get *fyne.Animation Duration value", Argsn: 1, @@ -58287,6 +67553,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * repeat-count - integer + // Result: + // * integer "Go(*fyne.Animation)//repeat-count!": { Doc: "Set *fyne.Animation RepeatCount value", Argsn: 2, @@ -58321,6 +67591,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*fyne.Animation)//repeat-count?": { Doc: "Get *fyne.Animation RepeatCount value", Argsn: 1, @@ -58349,6 +67621,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // start registers the animation with the application run-loop and starts its execution. + // + // Args: + // * recv - Go(*fyne.Animation) "Go(*fyne.Animation)//start": { Doc: "(*fyne.Animation).Start", Argsn: 1, @@ -58376,6 +67652,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // stop will end this animation and remove it from the run-loop. + // + // Args: + // * recv - Go(*fyne.Animation) "Go(*fyne.Animation)//stop": { Doc: "(*fyne.Animation).Stop", Argsn: 1, @@ -58403,6 +67683,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * tick - fn { decimal } + // Result: + // * fn { decimal } "Go(*fyne.Animation)//tick!": { Doc: "Set *fyne.Animation Tick value", Argsn: 2, @@ -58454,6 +67738,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { decimal } "Go(*fyne.Animation)//tick?": { Doc: "Get *fyne.Animation Tick value", Argsn: 1, @@ -58492,6 +67778,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * build - integer + // Result: + // * integer "Go(*fyne.AppMetadata)//build!": { Doc: "Set *fyne.AppMetadata Build value", Argsn: 2, @@ -58526,6 +67816,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*fyne.AppMetadata)//build?": { Doc: "Get *fyne.AppMetadata Build value", Argsn: 1, @@ -58554,6 +67846,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * custom - dict[string, string] + // Result: + // * dict[string, string] "Go(*fyne.AppMetadata)//custom!": { Doc: "Set *fyne.AppMetadata Custom value", Argsn: 2, @@ -58629,6 +67925,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * dict[string, string] "Go(*fyne.AppMetadata)//custom?": { Doc: "Get *fyne.AppMetadata Custom value", Argsn: 1, @@ -58665,6 +67963,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * icon - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*fyne.AppMetadata)//icon!": { Doc: "Set *fyne.AppMetadata Icon value", Argsn: 2, @@ -58718,6 +68020,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Resource) "Go(*fyne.AppMetadata)//icon?": { Doc: "Get *fyne.AppMetadata Icon value", Argsn: 1, @@ -58746,6 +68050,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * id - string + // Result: + // * string "Go(*fyne.AppMetadata)//id!": { Doc: "Set *fyne.AppMetadata ID value", Argsn: 2, @@ -58780,6 +68088,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.AppMetadata)//id?": { Doc: "Get *fyne.AppMetadata ID value", Argsn: 1, @@ -58808,6 +68118,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * name - string + // Result: + // * string "Go(*fyne.AppMetadata)//name!": { Doc: "Set *fyne.AppMetadata Name value", Argsn: 2, @@ -58842,6 +68156,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.AppMetadata)//name?": { Doc: "Get *fyne.AppMetadata Name value", Argsn: 1, @@ -58870,6 +68186,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * release - bool + // Result: + // * bool "Go(*fyne.AppMetadata)//release!": { Doc: "Set *fyne.AppMetadata Release value", Argsn: 2, @@ -58904,6 +68224,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.AppMetadata)//release?": { Doc: "Get *fyne.AppMetadata Release value", Argsn: 1, @@ -58932,6 +68254,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * version - string + // Result: + // * string "Go(*fyne.AppMetadata)//version!": { Doc: "Set *fyne.AppMetadata Version value", Argsn: 2, @@ -58966,6 +68292,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.AppMetadata)//version?": { Doc: "Get *fyne.AppMetadata Version value", Argsn: 1, @@ -58994,6 +68322,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // add appends the specified object to the items this container manages. + // + // Since: 1.4 + // + // Args: + // * recv - Go(*fyne.Container) + // * add - Go(fyne.CanvasObject) "Go(*fyne.Container)//add": { Doc: "(*fyne.Container).Add", Argsn: 2, @@ -59047,6 +68382,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // add-object adds another [CanvasObject] to the set this Container holds. + // + // Deprecated: Use [Container.Add] instead. + // + // Args: + // * recv - Go(*fyne.Container) + // * o - Go(fyne.CanvasObject) "Go(*fyne.Container)//add-object": { Doc: "(*fyne.Container).AddObject", Argsn: 2, @@ -59100,6 +68442,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*fyne.Container)//hidden!": { Doc: "Set *fyne.Container Hidden value", Argsn: 2, @@ -59134,6 +68480,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.Container)//hidden?": { Doc: "Get *fyne.Container Hidden value", Argsn: 1, @@ -59162,6 +68510,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide sets this container, and all its children, to be not visible. + // + // Args: + // * recv - Go(*fyne.Container) "Go(*fyne.Container)//hide": { Doc: "(*fyne.Container).Hide", Argsn: 1, @@ -59189,6 +68541,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * layout - Go(fyne.Layout) + // Result: + // * Go(fyne.Layout) "Go(*fyne.Container)//layout!": { Doc: "Set *fyne.Container Layout value", Argsn: 2, @@ -59242,6 +68598,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Layout) "Go(*fyne.Container)//layout?": { Doc: "Get *fyne.Container Layout value", Argsn: 1, @@ -59270,6 +68628,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size calculates the minimum size of c. + // This is delegated to the [Container.Layout], if specified, otherwise it will be calculated. + // + // Args: + // * recv - Go(*fyne.Container) + // Result: + // * Go(fyne.Size) "Go(*fyne.Container)//min-size": { Doc: "(*fyne.Container).MinSize", Argsn: 1, @@ -59299,6 +68664,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the container (and all its children) to a new position, relative to its parent. + // + // Args: + // * recv - Go(*fyne.Container) + // * pos - Go(fyne.Position) "Go(*fyne.Container)//move": { Doc: "(*fyne.Container).Move", Argsn: 2, @@ -59339,6 +68709,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * block[Go(fyne.CanvasObject)] "Go(*fyne.Container)//objects!": { Doc: "Set *fyne.Container Objects value", Argsn: 2, @@ -59367,17 +68741,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*fyne.Container)//objects!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*fyne.Container)//objects!: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -59387,7 +68762,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*fyne.Container)//objects!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*fyne.Container)//objects!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -59407,6 +68782,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(fyne.CanvasObject)] "Go(*fyne.Container)//objects?": { Doc: "Get *fyne.Container Objects value", Argsn: 1, @@ -59441,6 +68818,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // position gets the current position of c relative to its parent. + // + // Args: + // * recv - Go(*fyne.Container) + // Result: + // * Go(fyne.position) "Go(*fyne.Container)//position": { Doc: "(*fyne.Container).Position", Argsn: 1, @@ -59470,6 +68853,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh causes this object to be redrawn in it's current state + // + // Args: + // * recv - Go(*fyne.Container) "Go(*fyne.Container)//refresh": { Doc: "(*fyne.Container).Refresh", Argsn: 1, @@ -59497,6 +68884,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove updates the contents of this container to no longer include the specified object. + // This method is not intended to be used inside a loop, to remove all the elements. + // It is much more efficient to call [Container.removeAll) instead. + // + // Args: + // * recv - Go(*fyne.Container) + // * rem - Go(fyne.CanvasObject) "Go(*fyne.Container)//remove": { Doc: "(*fyne.Container).Remove", Argsn: 2, @@ -59550,6 +68944,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove-all updates the contents of this container to no longer include any objects. + // + // Since: 2.2 + // + // Args: + // * recv - Go(*fyne.Container) "Go(*fyne.Container)//remove-all": { Doc: "(*fyne.Container).RemoveAll", Argsn: 1, @@ -59577,6 +68977,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for c. + // + // Args: + // * recv - Go(*fyne.Container) + // * size - Go(fyne.Size) "Go(*fyne.Container)//resize": { Doc: "(*fyne.Container).Resize", Argsn: 2, @@ -59617,6 +69022,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show sets this container, and all its children, to be visible. + // + // Args: + // * recv - Go(*fyne.Container) "Go(*fyne.Container)//show": { Doc: "(*fyne.Container).Show", Argsn: 1, @@ -59644,6 +69053,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // size returns the current size c. + // + // Args: + // * recv - Go(*fyne.Container) + // Result: + // * Go(fyne.size) "Go(*fyne.Container)//size": { Doc: "(*fyne.Container).Size", Argsn: 1, @@ -59673,6 +69088,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // visible returns true if the container is currently visible, false otherwise. + // + // Args: + // * recv - Go(*fyne.Container) + // Result: + // * bool "Go(*fyne.Container)//visible": { Doc: "(*fyne.Container).Visible", Argsn: 1, @@ -59702,6 +69123,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // components returns the X and Y elements of v. + // + // Args: + // * recv - Go(fyne.Delta) + // Result: + // [ + // decimal + // decimal + // ] "Go(*fyne.Delta)//components": { Doc: "fyne.Delta.Components", Argsn: 1, @@ -59730,6 +69160,10 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * dx - decimal + // Result: + // * decimal "Go(*fyne.Delta)//dx!": { Doc: "Set *fyne.Delta DX value", Argsn: 2, @@ -59764,6 +69198,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*fyne.Delta)//dx?": { Doc: "Get *fyne.Delta DX value", Argsn: 1, @@ -59792,6 +69228,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * dy - decimal + // Result: + // * decimal "Go(*fyne.Delta)//dy!": { Doc: "Set *fyne.Delta DY value", Argsn: 2, @@ -59826,6 +69266,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*fyne.Delta)//dy?": { Doc: "Get *fyne.Delta DY value", Argsn: 1, @@ -59854,6 +69296,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // is-zero returns whether the Position is at the zero-point. + // + // Args: + // * recv - Go(fyne.Delta) + // Result: + // * bool "Go(*fyne.Delta)//is-zero": { Doc: "fyne.Delta.IsZero", Argsn: 1, @@ -59877,6 +69325,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * absolute-position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*fyne.DragEvent)//absolute-position!": { Doc: "Set *fyne.DragEvent AbsolutePosition value", Argsn: 2, @@ -59923,6 +69375,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*fyne.DragEvent)//absolute-position?": { Doc: "Get *fyne.DragEvent AbsolutePosition value", Argsn: 1, @@ -59951,6 +69405,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * dragged - Go(fyne.Delta) + // Result: + // * Go(fyne.Delta) "Go(*fyne.DragEvent)//dragged!": { Doc: "Set *fyne.DragEvent Dragged value", Argsn: 2, @@ -59997,6 +69455,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Delta) "Go(*fyne.DragEvent)//dragged?": { Doc: "Get *fyne.DragEvent Dragged value", Argsn: 1, @@ -60025,6 +69485,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * point-event - Go(fyne.PointEvent) + // Result: + // * Go(fyne.PointEvent) "Go(*fyne.DragEvent)//point-event!": { Doc: "Set *fyne.DragEvent PointEvent value", Argsn: 2, @@ -60071,6 +69535,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.PointEvent) "Go(*fyne.DragEvent)//point-event?": { Doc: "Get *fyne.DragEvent PointEvent value", Argsn: 1, @@ -60099,6 +69565,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*fyne.DragEvent)//position!": { Doc: "Set *fyne.DragEvent Position value", Argsn: 2, @@ -60145,6 +69615,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*fyne.DragEvent)//position?": { Doc: "Get *fyne.DragEvent Position value", Argsn: 1, @@ -60173,6 +69645,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * scan-code - integer + // Result: + // * integer "Go(*fyne.HardwareKey)//scan-code!": { Doc: "Set *fyne.HardwareKey ScanCode value", Argsn: 2, @@ -60207,6 +69683,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*fyne.HardwareKey)//scan-code?": { Doc: "Get *fyne.HardwareKey ScanCode value", Argsn: 1, @@ -60235,6 +69713,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * name - string + // Result: + // * string "Go(*fyne.KeyEvent)//name!": { Doc: "Set *fyne.KeyEvent Name value", Argsn: 2, @@ -60283,6 +69765,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.KeyEvent)//name?": { Doc: "Get *fyne.KeyEvent Name value", Argsn: 1, @@ -60311,6 +69795,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * physical - Go(fyne.HardwareKey) + // Result: + // * Go(fyne.HardwareKey) "Go(*fyne.KeyEvent)//physical!": { Doc: "Set *fyne.KeyEvent Physical value", Argsn: 2, @@ -60357,6 +69845,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.HardwareKey) "Go(*fyne.KeyEvent)//physical?": { Doc: "Get *fyne.KeyEvent Physical value", Argsn: 1, @@ -60385,6 +69875,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * items - block[Go(*fyne.Menu)] + // Result: + // * block[Go(*fyne.Menu)] "Go(*fyne.MainMenu)//items!": { Doc: "Set *fyne.MainMenu Items value", Argsn: 2, @@ -60413,10 +69907,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]*fyne.Menu, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*fyne.Menu); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*fyne.MainMenu)//items!: arg 2: " + "block item: " + "expected native of type *fyne.Menu, but got " + objectDebugString(ps.Idx, v)) @@ -60426,7 +69921,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*fyne.MainMenu)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*fyne.MainMenu)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -60446,6 +69941,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(*fyne.Menu)] "Go(*fyne.MainMenu)//items?": { Doc: "Get *fyne.MainMenu Items value", Argsn: 1, @@ -60480,6 +69977,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // refresh will instruct any rendered menus using this struct to update their display. + // + // Since: 2.2 + // + // Args: + // * recv - Go(*fyne.MainMenu) "Go(*fyne.MainMenu)//refresh": { Doc: "(*fyne.MainMenu).Refresh", Argsn: 1, @@ -60507,6 +70010,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(*fyne.MenuItem)] + // Result: + // * block[Go(*fyne.MenuItem)] "Go(*fyne.Menu)//items!": { Doc: "Set *fyne.Menu Items value", Argsn: 2, @@ -60535,10 +70042,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]*fyne.MenuItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*fyne.MenuItem); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*fyne.Menu)//items!: arg 2: " + "block item: " + "expected native of type *fyne.MenuItem, but got " + objectDebugString(ps.Idx, v)) @@ -60548,7 +70056,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*fyne.Menu)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*fyne.Menu)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -60568,6 +70076,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(*fyne.MenuItem)] "Go(*fyne.Menu)//items?": { Doc: "Get *fyne.Menu Items value", Argsn: 1, @@ -60602,6 +70112,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * label - string + // Result: + // * string "Go(*fyne.Menu)//label!": { Doc: "Set *fyne.Menu Label value", Argsn: 2, @@ -60636,6 +70150,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.Menu)//label?": { Doc: "Get *fyne.Menu Label value", Argsn: 1, @@ -60664,6 +70180,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // refresh will instruct this menu to update its display. + // + // Since: 2.2 + // + // Args: + // * recv - Go(*fyne.Menu) "Go(*fyne.Menu)//refresh": { Doc: "(*fyne.Menu).Refresh", Argsn: 1, @@ -60691,6 +70213,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * action - fn { } + // Result: + // * fn { } "Go(*fyne.MenuItem)//action!": { Doc: "Set *fyne.MenuItem Action value", Argsn: 2, @@ -60740,6 +70266,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*fyne.MenuItem)//action?": { Doc: "Get *fyne.MenuItem Action value", Argsn: 1, @@ -60771,6 +70299,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * checked - bool + // Result: + // * bool "Go(*fyne.MenuItem)//checked!": { Doc: "Set *fyne.MenuItem Checked value", Argsn: 2, @@ -60805,6 +70337,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.MenuItem)//checked?": { Doc: "Get *fyne.MenuItem Checked value", Argsn: 1, @@ -60833,6 +70367,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * child-menu - Go(*fyne.Menu) + // Result: + // * Go(*fyne.Menu) "Go(*fyne.MenuItem)//child-menu!": { Doc: "Set *fyne.MenuItem ChildMenu value", Argsn: 2, @@ -60879,6 +70417,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(*fyne.Menu) "Go(*fyne.MenuItem)//child-menu?": { Doc: "Get *fyne.MenuItem ChildMenu value", Argsn: 1, @@ -60907,6 +70447,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * disabled - bool + // Result: + // * bool "Go(*fyne.MenuItem)//disabled!": { Doc: "Set *fyne.MenuItem Disabled value", Argsn: 2, @@ -60941,6 +70485,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.MenuItem)//disabled?": { Doc: "Get *fyne.MenuItem Disabled value", Argsn: 1, @@ -60969,6 +70515,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * icon - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*fyne.MenuItem)//icon!": { Doc: "Set *fyne.MenuItem Icon value", Argsn: 2, @@ -61022,6 +70572,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Resource) "Go(*fyne.MenuItem)//icon?": { Doc: "Get *fyne.MenuItem Icon value", Argsn: 1, @@ -61050,6 +70602,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * is-quit - bool + // Result: + // * bool "Go(*fyne.MenuItem)//is-quit!": { Doc: "Set *fyne.MenuItem IsQuit value", Argsn: 2, @@ -61084,6 +70640,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.MenuItem)//is-quit?": { Doc: "Get *fyne.MenuItem IsQuit value", Argsn: 1, @@ -61112,6 +70670,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * is-separator - bool + // Result: + // * bool "Go(*fyne.MenuItem)//is-separator!": { Doc: "Set *fyne.MenuItem IsSeparator value", Argsn: 2, @@ -61146,6 +70708,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.MenuItem)//is-separator?": { Doc: "Get *fyne.MenuItem IsSeparator value", Argsn: 1, @@ -61174,6 +70738,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * label - string + // Result: + // * string "Go(*fyne.MenuItem)//label!": { Doc: "Set *fyne.MenuItem Label value", Argsn: 2, @@ -61208,6 +70776,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.MenuItem)//label?": { Doc: "Get *fyne.MenuItem Label value", Argsn: 1, @@ -61236,6 +70806,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * shortcut - Go(fyne.Shortcut) + // Result: + // * Go(fyne.Shortcut) "Go(*fyne.MenuItem)//shortcut!": { Doc: "Set *fyne.MenuItem Shortcut value", Argsn: 2, @@ -61289,6 +70863,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Shortcut) "Go(*fyne.MenuItem)//shortcut?": { Doc: "Get *fyne.MenuItem Shortcut value", Argsn: 1, @@ -61317,6 +70893,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * content - string + // Result: + // * string "Go(*fyne.Notification)//content!": { Doc: "Set *fyne.Notification Content value", Argsn: 2, @@ -61351,6 +70931,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.Notification)//content?": { Doc: "Get *fyne.Notification Content value", Argsn: 1, @@ -61379,6 +70961,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * title - string + // Result: + // * string "Go(*fyne.Notification)//title!": { Doc: "Set *fyne.Notification Title value", Argsn: 2, @@ -61413,6 +70999,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.Notification)//title?": { Doc: "Get *fyne.Notification Title value", Argsn: 1, @@ -61441,6 +71029,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * absolute-position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*fyne.PointEvent)//absolute-position!": { Doc: "Set *fyne.PointEvent AbsolutePosition value", Argsn: 2, @@ -61487,6 +71079,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*fyne.PointEvent)//absolute-position?": { Doc: "Get *fyne.PointEvent AbsolutePosition value", Argsn: 1, @@ -61515,6 +71109,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*fyne.PointEvent)//position!": { Doc: "Set *fyne.PointEvent Position value", Argsn: 2, @@ -61561,6 +71159,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*fyne.PointEvent)//position?": { Doc: "Get *fyne.PointEvent Position value", Argsn: 1, @@ -61589,6 +71189,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // add returns a new [Position] that is the result of offsetting the current + // position by p2 X and Y. + // + // Args: + // * recv - Go(fyne.Position) + // * v - Go(fyne.Vector2) + // Result: + // * Go(fyne.Position) "Go(*fyne.Position)//add": { Doc: "fyne.Position.Add", Argsn: 2, @@ -61638,6 +71246,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // add-xy returns a new [Position] by adding x and y to the current one. + // + // Args: + // * recv - Go(fyne.Position) + // * x - decimal + // * y - decimal + // Result: + // * Go(fyne.Position) "Go(*fyne.Position)//add-xy": { Doc: "fyne.Position.AddXY", Argsn: 3, @@ -61675,6 +71291,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // components returns the X and Y elements of p. + // + // Args: + // * recv - Go(fyne.Position) + // Result: + // [ + // decimal + // decimal + // ] "Go(*fyne.Position)//components": { Doc: "fyne.Position.Components", Argsn: 1, @@ -61703,6 +71328,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // is-zero returns whether the Position is at the zero-point. + // + // Args: + // * recv - Go(fyne.Position) + // Result: + // * bool "Go(*fyne.Position)//is-zero": { Doc: "fyne.Position.IsZero", Argsn: 1, @@ -61726,6 +71357,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // subtract returns a new [Position] that is the result of offsetting the current + // position by p2 -X and -Y. + // + // Args: + // * recv - Go(fyne.Position) + // * v - Go(fyne.Vector2) + // Result: + // * Go(fyne.Position) "Go(*fyne.Position)//subtract": { Doc: "fyne.Position.Subtract", Argsn: 2, @@ -61775,6 +71414,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // subtract-xy returns a new [Position] by subtracting x and y from the current one. + // + // Args: + // * recv - Go(fyne.Position) + // * x - decimal + // * y - decimal + // Result: + // * Go(fyne.Position) "Go(*fyne.Position)//subtract-xy": { Doc: "fyne.Position.SubtractXY", Argsn: 3, @@ -61812,6 +71459,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * x - decimal + // Result: + // * decimal "Go(*fyne.Position)//x!": { Doc: "Set *fyne.Position X value", Argsn: 2, @@ -61846,6 +71497,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*fyne.Position)//x?": { Doc: "Get *fyne.Position X value", Argsn: 1, @@ -61874,6 +71527,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * y - decimal + // Result: + // * decimal "Go(*fyne.Position)//y!": { Doc: "Set *fyne.Position Y value", Argsn: 2, @@ -61908,6 +71565,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*fyne.Position)//y?": { Doc: "Get *fyne.Position Y value", Argsn: 1, @@ -61936,6 +71595,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * absolute-position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*fyne.ScrollEvent)//absolute-position!": { Doc: "Set *fyne.ScrollEvent AbsolutePosition value", Argsn: 2, @@ -61982,6 +71645,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*fyne.ScrollEvent)//absolute-position?": { Doc: "Get *fyne.ScrollEvent AbsolutePosition value", Argsn: 1, @@ -62010,6 +71675,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * point-event - Go(fyne.PointEvent) + // Result: + // * Go(fyne.PointEvent) "Go(*fyne.ScrollEvent)//point-event!": { Doc: "Set *fyne.ScrollEvent PointEvent value", Argsn: 2, @@ -62056,6 +71725,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.PointEvent) "Go(*fyne.ScrollEvent)//point-event?": { Doc: "Get *fyne.ScrollEvent PointEvent value", Argsn: 1, @@ -62084,6 +71755,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*fyne.ScrollEvent)//position!": { Doc: "Set *fyne.ScrollEvent Position value", Argsn: 2, @@ -62130,6 +71805,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*fyne.ScrollEvent)//position?": { Doc: "Get *fyne.ScrollEvent Position value", Argsn: 1, @@ -62158,6 +71835,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * scrolled - Go(fyne.Delta) + // Result: + // * Go(fyne.Delta) "Go(*fyne.ScrollEvent)//scrolled!": { Doc: "Set *fyne.ScrollEvent Scrolled value", Argsn: 2, @@ -62204,6 +71885,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Delta) "Go(*fyne.ScrollEvent)//scrolled?": { Doc: "Get *fyne.ScrollEvent Scrolled value", Argsn: 1, @@ -62232,6 +71915,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * clipboard - Go(fyne.Clipboard) + // Result: + // * Go(fyne.Clipboard) "Go(*fyne.ShortcutCopy)//clipboard!": { Doc: "Set *fyne.ShortcutCopy Clipboard value", Argsn: 2, @@ -62285,6 +71972,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Clipboard) "Go(*fyne.ShortcutCopy)//clipboard?": { Doc: "Get *fyne.ShortcutCopy Clipboard value", Argsn: 1, @@ -62313,6 +72002,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // key returns the [keyName] for this shortcut. + // + // Implements: [keyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutCopy) + // Result: + // * string "Go(*fyne.ShortcutCopy)//key": { Doc: "(*fyne.ShortcutCopy).Key", Argsn: 1, @@ -62342,6 +72039,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mod returns the [Keymodifier] for this shortcut. + // + // Implements: [KeyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutCopy) + // Result: + // * integer "Go(*fyne.ShortcutCopy)//mod": { Doc: "(*fyne.ShortcutCopy).Mod", Argsn: 1, @@ -62371,6 +72076,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // shortcut-name returns the shortcut name + // + // Args: + // * recv - Go(*fyne.ShortcutCopy) + // Result: + // * string "Go(*fyne.ShortcutCopy)//shortcut-name": { Doc: "(*fyne.ShortcutCopy).ShortcutName", Argsn: 1, @@ -62400,6 +72111,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * clipboard - Go(fyne.Clipboard) + // Result: + // * Go(fyne.Clipboard) "Go(*fyne.ShortcutCut)//clipboard!": { Doc: "Set *fyne.ShortcutCut Clipboard value", Argsn: 2, @@ -62453,6 +72168,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Clipboard) "Go(*fyne.ShortcutCut)//clipboard?": { Doc: "Get *fyne.ShortcutCut Clipboard value", Argsn: 1, @@ -62481,6 +72198,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // key returns the [keyName] for this shortcut. + // + // Implements: [keyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutCut) + // Result: + // * string "Go(*fyne.ShortcutCut)//key": { Doc: "(*fyne.ShortcutCut).Key", Argsn: 1, @@ -62510,6 +72235,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mod returns the [Keymodifier] for this shortcut. + // + // Implements: [KeyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutCut) + // Result: + // * integer "Go(*fyne.ShortcutCut)//mod": { Doc: "(*fyne.ShortcutCut).Mod", Argsn: 1, @@ -62539,6 +72272,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // shortcut-name returns the shortcut name + // + // Args: + // * recv - Go(*fyne.ShortcutCut) + // Result: + // * string "Go(*fyne.ShortcutCut)//shortcut-name": { Doc: "(*fyne.ShortcutCut).ShortcutName", Argsn: 1, @@ -62568,6 +72307,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // add-shortcut register a handler to be executed when the shortcut action is triggered + // + // Args: + // * recv - Go(*fyne.ShortcutHandler) + // * shortcut - Go(fyne.Shortcut) + // * handler - fn { Go(fyne.Shortcut) } "Go(*fyne.ShortcutHandler)//add-shortcut": { Doc: "(*fyne.ShortcutHandler).AddShortcut", Argsn: 3, @@ -62645,6 +72390,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove-shortcut removes a registered shortcut + // + // Args: + // * recv - Go(*fyne.ShortcutHandler) + // * shortcut - Go(fyne.Shortcut) "Go(*fyne.ShortcutHandler)//remove-shortcut": { Doc: "(*fyne.ShortcutHandler).RemoveShortcut", Argsn: 2, @@ -62698,6 +72448,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-shortcut handle the registered shortcut + // + // Args: + // * recv - Go(*fyne.ShortcutHandler) + // * shortcut - Go(fyne.Shortcut) "Go(*fyne.ShortcutHandler)//typed-shortcut": { Doc: "(*fyne.ShortcutHandler).TypedShortcut", Argsn: 2, @@ -62751,6 +72506,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * clipboard - Go(fyne.Clipboard) + // Result: + // * Go(fyne.Clipboard) "Go(*fyne.ShortcutPaste)//clipboard!": { Doc: "Set *fyne.ShortcutPaste Clipboard value", Argsn: 2, @@ -62804,6 +72563,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Clipboard) "Go(*fyne.ShortcutPaste)//clipboard?": { Doc: "Get *fyne.ShortcutPaste Clipboard value", Argsn: 1, @@ -62832,6 +72593,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // key returns the [keyName] for this shortcut. + // + // Implements: [keyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutPaste) + // Result: + // * string "Go(*fyne.ShortcutPaste)//key": { Doc: "(*fyne.ShortcutPaste).Key", Argsn: 1, @@ -62861,6 +72630,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mod returns the [Keymodifier] for this shortcut. + // + // Implements: [KeyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutPaste) + // Result: + // * integer "Go(*fyne.ShortcutPaste)//mod": { Doc: "(*fyne.ShortcutPaste).Mod", Argsn: 1, @@ -62890,6 +72667,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // shortcut-name returns the shortcut name + // + // Args: + // * recv - Go(*fyne.ShortcutPaste) + // Result: + // * string "Go(*fyne.ShortcutPaste)//shortcut-name": { Doc: "(*fyne.ShortcutPaste).ShortcutName", Argsn: 1, @@ -62919,6 +72702,123 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // key returns the [keyName] for this shortcut. + // + // Implements: [keyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutRedo) + // Result: + // * string + "Go(*fyne.ShortcutRedo)//key": { + Doc: "(*fyne.ShortcutRedo).Key", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.ShortcutRedo + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.ShortcutRedo); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//key: arg 1: " + "expected native of type *fyne.ShortcutRedo, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//key: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//key: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Key() + var res0Obj env.Object + res0Obj = *env.NewString(string(res0)) + return res0Obj + }, + }, + // mod returns the [Keymodifier] for this shortcut. + // + // Implements: [KeyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutRedo) + // Result: + // * integer + "Go(*fyne.ShortcutRedo)//mod": { + Doc: "(*fyne.ShortcutRedo).Mod", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.ShortcutRedo + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.ShortcutRedo); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//mod: arg 1: " + "expected native of type *fyne.ShortcutRedo, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//mod: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//mod: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Mod() + var res0Obj env.Object + res0Obj = *env.NewInteger(int64(int(res0))) + return res0Obj + }, + }, + // shortcut-name returns the shortcut name + // + // Args: + // * recv - Go(*fyne.ShortcutRedo) + // Result: + // * string + "Go(*fyne.ShortcutRedo)//shortcut-name": { + Doc: "(*fyne.ShortcutRedo).ShortcutName", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.ShortcutRedo + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.ShortcutRedo); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//shortcut-name: arg 1: " + "expected native of type *fyne.ShortcutRedo, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//shortcut-name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutRedo)//shortcut-name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.ShortcutName() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // key returns the [keyName] for this shortcut. + // + // Implements: [keyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutSelectAll) + // Result: + // * string "Go(*fyne.ShortcutSelectAll)//key": { Doc: "(*fyne.ShortcutSelectAll).Key", Argsn: 1, @@ -62948,6 +72848,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mod returns the [Keymodifier] for this shortcut. + // + // Implements: [KeyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutSelectAll) + // Result: + // * integer "Go(*fyne.ShortcutSelectAll)//mod": { Doc: "(*fyne.ShortcutSelectAll).Mod", Argsn: 1, @@ -62977,6 +72885,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // shortcut-name returns the shortcut name + // + // Args: + // * recv - Go(*fyne.ShortcutSelectAll) + // Result: + // * string "Go(*fyne.ShortcutSelectAll)//shortcut-name": { Doc: "(*fyne.ShortcutSelectAll).ShortcutName", Argsn: 1, @@ -63006,6 +72920,123 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // key returns the [keyName] for this shortcut. + // + // Implements: [keyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutUndo) + // Result: + // * string + "Go(*fyne.ShortcutUndo)//key": { + Doc: "(*fyne.ShortcutUndo).Key", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.ShortcutUndo + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.ShortcutUndo); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//key: arg 1: " + "expected native of type *fyne.ShortcutUndo, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//key: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//key: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Key() + var res0Obj env.Object + res0Obj = *env.NewString(string(res0)) + return res0Obj + }, + }, + // mod returns the [Keymodifier] for this shortcut. + // + // Implements: [KeyboardShortcut] + // + // Args: + // * recv - Go(*fyne.ShortcutUndo) + // Result: + // * integer + "Go(*fyne.ShortcutUndo)//mod": { + Doc: "(*fyne.ShortcutUndo).Mod", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.ShortcutUndo + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.ShortcutUndo); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//mod: arg 1: " + "expected native of type *fyne.ShortcutUndo, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//mod: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//mod: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Mod() + var res0Obj env.Object + res0Obj = *env.NewInteger(int64(int(res0))) + return res0Obj + }, + }, + // shortcut-name returns the shortcut name + // + // Args: + // * recv - Go(*fyne.ShortcutUndo) + // Result: + // * string + "Go(*fyne.ShortcutUndo)//shortcut-name": { + Doc: "(*fyne.ShortcutUndo).ShortcutName", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *fyne.ShortcutUndo + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.ShortcutUndo); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//shortcut-name: arg 1: " + "expected native of type *fyne.ShortcutUndo, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//shortcut-name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.ShortcutUndo)//shortcut-name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.ShortcutName() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // add returns a new Size that is the result of increasing the current size by + // s2 Width and Height. + // + // Args: + // * recv - Go(fyne.Size) + // * v - Go(fyne.Vector2) + // Result: + // * Go(fyne.Size) "Go(*fyne.Size)//add": { Doc: "fyne.Size.Add", Argsn: 2, @@ -63055,6 +73086,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // add-width-height returns a new Size by adding width and height to the current one. + // + // Args: + // * recv - Go(fyne.Size) + // * width - decimal + // * height - decimal + // Result: + // * Go(fyne.Size) "Go(*fyne.Size)//add-width-height": { Doc: "fyne.Size.AddWidthHeight", Argsn: 3, @@ -63092,6 +73131,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // components returns the Width and Height elements of this Size + // + // Args: + // * recv - Go(fyne.Size) + // Result: + // [ + // decimal + // decimal + // ] "Go(*fyne.Size)//components": { Doc: "fyne.Size.Components", Argsn: 1, @@ -63120,6 +73168,10 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * height - decimal + // Result: + // * decimal "Go(*fyne.Size)//height!": { Doc: "Set *fyne.Size Height value", Argsn: 2, @@ -63154,6 +73206,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*fyne.Size)//height?": { Doc: "Get *fyne.Size Height value", Argsn: 1, @@ -63182,6 +73236,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // is-zero returns whether the Size has zero width and zero height. + // + // Args: + // * recv - Go(fyne.Size) + // Result: + // * bool "Go(*fyne.Size)//is-zero": { Doc: "fyne.Size.IsZero", Argsn: 1, @@ -63205,6 +73265,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // max returns a new [Size] that is the maximum of the current Size and s2. + // + // Args: + // * recv - Go(fyne.Size) + // * v - Go(fyne.Vector2) + // Result: + // * Go(fyne.Size) "Go(*fyne.Size)//max": { Doc: "fyne.Size.Max", Argsn: 2, @@ -63254,6 +73321,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // min returns a new [Size] that is the minimum of s and v. + // + // Args: + // * recv - Go(fyne.Size) + // * v - Go(fyne.Vector2) + // Result: + // * Go(fyne.Size) "Go(*fyne.Size)//min": { Doc: "fyne.Size.Min", Argsn: 2, @@ -63303,6 +73377,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // subtract returns a new Size that is the result of decreasing the current size + // by s2 Width and Height. + // + // Args: + // * recv - Go(fyne.Size) + // * v - Go(fyne.Vector2) + // Result: + // * Go(fyne.Size) "Go(*fyne.Size)//subtract": { Doc: "fyne.Size.Subtract", Argsn: 2, @@ -63352,6 +73434,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // subtract-width-height returns a new Size by subtracting width and height from the current one. + // + // Args: + // * recv - Go(fyne.Size) + // * width - decimal + // * height - decimal + // Result: + // * Go(fyne.Size) "Go(*fyne.Size)//subtract-width-height": { Doc: "fyne.Size.SubtractWidthHeight", Argsn: 3, @@ -63389,6 +73479,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * width - decimal + // Result: + // * decimal "Go(*fyne.Size)//width!": { Doc: "Set *fyne.Size Width value", Argsn: 2, @@ -63423,6 +73517,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*fyne.Size)//width?": { Doc: "Get *fyne.Size Width value", Argsn: 1, @@ -63451,6 +73547,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // content returns the bytes of the bundled resource, no compression is applied + // but any compression on the resource is retained. + // + // Args: + // * recv - Go(*fyne.StaticResource) + // Result: + // * block[integer] "Go(*fyne.StaticResource)//content": { Doc: "(*fyne.StaticResource).Content", Argsn: 1, @@ -63479,13 +73582,20 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // go-string converts a Resource object to Go code. + // This is useful if serialising to a Go file for compilation into a binary. + // + // Args: + // * recv - Go(*fyne.StaticResource) + // Result: + // * string "Go(*fyne.StaticResource)//go-string": { Doc: "(*fyne.StaticResource).GoString", Argsn: 1, @@ -63515,6 +73625,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // name returns the unique name of this resource, usually matching the file it + // was generated from. + // + // Args: + // * recv - Go(*fyne.StaticResource) + // Result: + // * string "Go(*fyne.StaticResource)//name": { Doc: "(*fyne.StaticResource).Name", Argsn: 1, @@ -63544,6 +73661,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * static-content - block[integer] + // Result: + // * block[integer] "Go(*fyne.StaticResource)//static-content!": { Doc: "Set *fyne.StaticResource StaticContent value", Argsn: 2, @@ -63572,17 +73693,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - newVal[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(*fyne.StaticResource)//static-content!: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &newVal[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(*fyne.StaticResource)//static-content!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(*fyne.StaticResource)//static-content!: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -63599,6 +73715,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[integer] "Go(*fyne.StaticResource)//static-content?": { Doc: "Get *fyne.StaticResource StaticContent value", Argsn: 1, @@ -63626,13 +73744,17 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(self.StaticContent)) for i, it := range self.StaticContent { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } resObj = *env.NewBlock(*env.NewTSeries(items)) } return resObj }, }, + // Args: + // * static-name - string + // Result: + // * string "Go(*fyne.StaticResource)//static-name!": { Doc: "Set *fyne.StaticResource StaticName value", Argsn: 2, @@ -63667,6 +73789,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*fyne.StaticResource)//static-name?": { Doc: "Get *fyne.StaticResource StaticName value", Argsn: 1, @@ -63695,6 +73819,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * bold - bool + // Result: + // * bool "Go(*fyne.TextStyle)//bold!": { Doc: "Set *fyne.TextStyle Bold value", Argsn: 2, @@ -63729,6 +73857,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.TextStyle)//bold?": { Doc: "Get *fyne.TextStyle Bold value", Argsn: 1, @@ -63757,6 +73887,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * italic - bool + // Result: + // * bool "Go(*fyne.TextStyle)//italic!": { Doc: "Set *fyne.TextStyle Italic value", Argsn: 2, @@ -63791,6 +73925,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.TextStyle)//italic?": { Doc: "Get *fyne.TextStyle Italic value", Argsn: 1, @@ -63819,6 +73955,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * monospace - bool + // Result: + // * bool "Go(*fyne.TextStyle)//monospace!": { Doc: "Set *fyne.TextStyle Monospace value", Argsn: 2, @@ -63853,6 +73993,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.TextStyle)//monospace?": { Doc: "Get *fyne.TextStyle Monospace value", Argsn: 1, @@ -63881,6 +74023,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * symbol - bool + // Result: + // * bool "Go(*fyne.TextStyle)//symbol!": { Doc: "Set *fyne.TextStyle Symbol value", Argsn: 2, @@ -63915,6 +74061,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*fyne.TextStyle)//symbol?": { Doc: "Get *fyne.TextStyle Symbol value", Argsn: 1, @@ -63943,6 +74091,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * tab-width - integer + // Result: + // * integer "Go(*fyne.TextStyle)//tab-width!": { Doc: "Set *fyne.TextStyle TabWidth value", Argsn: 2, @@ -63977,6 +74129,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*fyne.TextStyle)//tab-width?": { Doc: "Get *fyne.TextStyle TabWidth value", Argsn: 1, @@ -64005,6 +74159,78 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * underline - bool + // Result: + // * bool + "Go(*fyne.TextStyle)//underline!": { + Doc: "Set *fyne.TextStyle Underline value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne.TextStyle + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.TextStyle); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline!: arg 1: " + "expected native of type *fyne.TextStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.Underline = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*fyne.TextStyle)//underline?": { + Doc: "Get *fyne.TextStyle Underline value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne.TextStyle + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.TextStyle); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline?: arg 1: " + "expected native of type *fyne.TextStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne.TextStyle)//underline?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.Underline)) + return resObj + }, + }, + // Args: + // * ctx - Go(uintptr) + // Result: + // * Go(uintptr) "Go(*fyne_driver.AndroidContext)//ctx!": { Doc: "Set *fyne_driver.AndroidContext Ctx value", Argsn: 2, @@ -64045,6 +74271,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(uintptr) "Go(*fyne_driver.AndroidContext)//ctx?": { Doc: "Get *fyne_driver.AndroidContext Ctx value", Argsn: 1, @@ -64073,6 +74301,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * env - Go(uintptr) + // Result: + // * Go(uintptr) "Go(*fyne_driver.AndroidContext)//env!": { Doc: "Set *fyne_driver.AndroidContext Env value", Argsn: 2, @@ -64113,6 +74345,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(uintptr) "Go(*fyne_driver.AndroidContext)//env?": { Doc: "Get *fyne_driver.AndroidContext Env value", Argsn: 1, @@ -64141,6 +74375,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * vm - Go(uintptr) + // Result: + // * Go(uintptr) "Go(*fyne_driver.AndroidContext)//vm!": { Doc: "Set *fyne_driver.AndroidContext VM value", Argsn: 2, @@ -64181,6 +74419,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(uintptr) "Go(*fyne_driver.AndroidContext)//vm?": { Doc: "Get *fyne_driver.AndroidContext VM value", Argsn: 1, @@ -64209,6 +74449,1112 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * android-context - Go(fyne_driver.AndroidContext) + // Result: + // * Go(fyne_driver.AndroidContext) + "Go(*fyne_driver.AndroidWindowContext)//android-context!": { + Doc: "Set *fyne_driver.AndroidWindowContext AndroidContext value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context!: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal *fyne_driver.AndroidContext + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidContext); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context!: arg 2: " + "expected native of type *fyne_driver.AndroidContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.AndroidContext = *newVal + return arg0 + }, + }, + // Result: + // * Go(fyne_driver.AndroidContext) + "Go(*fyne_driver.AndroidWindowContext)//android-context?": { + Doc: "Get *fyne_driver.AndroidWindowContext AndroidContext value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context?: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//android-context?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, &self.AndroidContext, "Go(*fyne_driver.AndroidContext)") + return resObj + }, + }, + // Args: + // * ctx - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//ctx!": { + Doc: "Set *fyne_driver.AndroidWindowContext Ctx value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx!: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.Ctx = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//ctx?": { + Doc: "Get *fyne_driver.AndroidWindowContext Ctx value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx?: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//ctx?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.Ctx, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * env - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//env!": { + Doc: "Set *fyne_driver.AndroidWindowContext Env value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env!: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.Env = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//env?": { + Doc: "Get *fyne_driver.AndroidWindowContext Env value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env?: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//env?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.Env, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * native-window - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//native-window!": { + Doc: "Set *fyne_driver.AndroidWindowContext NativeWindow value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window!: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.NativeWindow = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//native-window?": { + Doc: "Get *fyne_driver.AndroidWindowContext NativeWindow value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window?: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//native-window?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.NativeWindow, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * vm - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//vm!": { + Doc: "Set *fyne_driver.AndroidWindowContext VM value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm!: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.VM = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.AndroidWindowContext)//vm?": { + Doc: "Get *fyne_driver.AndroidWindowContext VM value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.AndroidWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.AndroidWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm?: arg 1: " + "expected native of type *fyne_driver.AndroidWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.AndroidWindowContext)//vm?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.VM, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * ns-window - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.MacWindowContext)//ns-window!": { + Doc: "Set *fyne_driver.MacWindowContext NSWindow value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.MacWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.MacWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window!: arg 1: " + "expected native of type *fyne_driver.MacWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.NSWindow = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.MacWindowContext)//ns-window?": { + Doc: "Get *fyne_driver.MacWindowContext NSWindow value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.MacWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.MacWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window?: arg 1: " + "expected native of type *fyne_driver.MacWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.MacWindowContext)//ns-window?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.NSWindow, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * wayland-surface - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.WaylandWindowContext)//wayland-surface!": { + Doc: "Set *fyne_driver.WaylandWindowContext WaylandSurface value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.WaylandWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.WaylandWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface!: arg 1: " + "expected native of type *fyne_driver.WaylandWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.WaylandSurface = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.WaylandWindowContext)//wayland-surface?": { + Doc: "Get *fyne_driver.WaylandWindowContext WaylandSurface value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.WaylandWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.WaylandWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface?: arg 1: " + "expected native of type *fyne_driver.WaylandWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WaylandWindowContext)//wayland-surface?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.WaylandSurface, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * hwnd - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.WindowsWindowContext)//hwnd!": { + Doc: "Set *fyne_driver.WindowsWindowContext HWND value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.WindowsWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.WindowsWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd!: arg 1: " + "expected native of type *fyne_driver.WindowsWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.HWND = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.WindowsWindowContext)//hwnd?": { + Doc: "Get *fyne_driver.WindowsWindowContext HWND value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.WindowsWindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.WindowsWindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd?: arg 1: " + "expected native of type *fyne_driver.WindowsWindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.WindowsWindowContext)//hwnd?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.HWND, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * window-handle - Go(uintptr) + // Result: + // * Go(uintptr) + "Go(*fyne_driver.X11WindowContext)//window-handle!": { + Doc: "Set *fyne_driver.X11WindowContext WindowHandle value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.X11WindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.X11WindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle!: arg 1: " + "expected native of type *fyne_driver.X11WindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal uintptr + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(uintptr); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle!: arg 2: " + "expected native of type uintptr, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.WindowHandle = newVal + return arg0 + }, + }, + // Result: + // * Go(uintptr) + "Go(*fyne_driver.X11WindowContext)//window-handle?": { + Doc: "Get *fyne_driver.X11WindowContext WindowHandle value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *fyne_driver.X11WindowContext + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne_driver.X11WindowContext); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle?: arg 1: " + "expected native of type *fyne_driver.X11WindowContext, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*fyne_driver.X11WindowContext)//window-handle?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, self.WindowHandle, "Go(uintptr)") + return resObj + }, + }, + // Args: + // * bottom-padding - decimal + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//bottom-padding!": { + Doc: "Set *layout.CustomPaddedLayout BottomPadding value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding!: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal float32 + if vc, ok := arg1.(env.Decimal); ok { + newVal = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding!: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + self.BottomPadding = newVal + return arg0 + }, + }, + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//bottom-padding?": { + Doc: "Get *layout.CustomPaddedLayout BottomPadding value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding?: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//bottom-padding?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewDecimal(float64(self.BottomPadding)) + return resObj + }, + }, + // layout is called to pack all child objects into a specified size. + // For CustomPaddedlayout this sets all children to the full size passed minus the given paddings all around. + // + // Args: + // * recv - Go(layout.CustomPaddedlayout) + // * objects - block[Go(fyne.CanvasObject)] + // * size - Go(fyne.Size) + "Go(*layout.CustomPaddedLayout)//layout": { + Doc: "layout.CustomPaddedLayout.Layout", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + arg0Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val []fyne.CanvasObject + switch v := arg1.(type) { + case env.Block: + arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg1Val[i] + switch v := it.(type) { + case env.RyeCtx: + var err error + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 2: " + "block item: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + (*iv) = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 2: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + var arg2Val fyne.Size + switch v := arg2.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg2Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 3: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//layout: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Layout(arg1Val, arg2Val) + return arg0 + }, + }, + // Args: + // * left-padding - decimal + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//left-padding!": { + Doc: "Set *layout.CustomPaddedLayout LeftPadding value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding!: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal float32 + if vc, ok := arg1.(env.Decimal); ok { + newVal = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding!: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + self.LeftPadding = newVal + return arg0 + }, + }, + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//left-padding?": { + Doc: "Get *layout.CustomPaddedLayout LeftPadding value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding?: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//left-padding?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewDecimal(float64(self.LeftPadding)) + return resObj + }, + }, + // min-size finds the smallest size that satisfies all the child objects. + // For CustomPaddedLayout this is determined simply as the min-size of the largest child plus the given paddings all around. + // + // Args: + // * recv - Go(layout.CustomPaddedLayout) + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(fyne.Size) + "Go(*layout.CustomPaddedLayout)//min-size": { + Doc: "layout.CustomPaddedLayout.MinSize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + arg0Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val []fyne.CanvasObject + switch v := arg1.(type) { + case env.Block: + arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg1Val[i] + switch v := it.(type) { + case env.RyeCtx: + var err error + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 2: " + "block item: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + (*iv) = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//min-size: arg 2: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.MinSize(arg1Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * right-padding - decimal + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//right-padding!": { + Doc: "Set *layout.CustomPaddedLayout RightPadding value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding!: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal float32 + if vc, ok := arg1.(env.Decimal); ok { + newVal = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding!: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + self.RightPadding = newVal + return arg0 + }, + }, + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//right-padding?": { + Doc: "Get *layout.CustomPaddedLayout RightPadding value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding?: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//right-padding?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewDecimal(float64(self.RightPadding)) + return resObj + }, + }, + // Args: + // * top-padding - decimal + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//top-padding!": { + Doc: "Set *layout.CustomPaddedLayout TopPadding value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding!: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal float32 + if vc, ok := arg1.(env.Decimal); ok { + newVal = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding!: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + self.TopPadding = newVal + return arg0 + }, + }, + // Result: + // * decimal + "Go(*layout.CustomPaddedLayout)//top-padding?": { + Doc: "Get *layout.CustomPaddedLayout TopPadding value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *layout.CustomPaddedLayout + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*layout.CustomPaddedLayout); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding?: arg 1: " + "expected native of type *layout.CustomPaddedLayout, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*layout.CustomPaddedLayout)//top-padding?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewDecimal(float64(self.TopPadding)) + return resObj + }, + }, + // expand-horizontal returns whether or not this spacer expands on the horizontal axis + // + // Args: + // * recv - Go(*layout.Spacer) + // Result: + // * bool "Go(*layout.Spacer)//expand-horizontal": { Doc: "(*layout.Spacer).ExpandHorizontal", Argsn: 1, @@ -64238,6 +75584,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // expand-vertical returns whether or not this spacer expands on the vertical axis + // + // Args: + // * recv - Go(*layout.Spacer) + // Result: + // * bool "Go(*layout.Spacer)//expand-vertical": { Doc: "(*layout.Spacer).ExpandVertical", Argsn: 1, @@ -64267,6 +75619,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * fix-horizontal - bool + // Result: + // * bool "Go(*layout.Spacer)//fix-horizontal!": { Doc: "Set *layout.Spacer FixHorizontal value", Argsn: 2, @@ -64301,6 +75657,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*layout.Spacer)//fix-horizontal?": { Doc: "Get *layout.Spacer FixHorizontal value", Argsn: 1, @@ -64329,6 +75687,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * fix-vertical - bool + // Result: + // * bool "Go(*layout.Spacer)//fix-vertical!": { Doc: "Set *layout.Spacer FixVertical value", Argsn: 2, @@ -64363,6 +75725,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*layout.Spacer)//fix-vertical?": { Doc: "Get *layout.Spacer FixVertical value", Argsn: 1, @@ -64391,6 +75755,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide removes this Spacer from layout calculations + // + // Args: + // * recv - Go(*layout.Spacer) "Go(*layout.Spacer)//hide": { Doc: "(*layout.Spacer).Hide", Argsn: 1, @@ -64418,6 +75786,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns a 0 size as a Spacer can shrink to no actual size + // + // Args: + // * recv - Go(*layout.Spacer) + // Result: + // * Go(fyne.Size) "Go(*layout.Spacer)//min-size": { Doc: "(*layout.Spacer).MinSize", Argsn: 1, @@ -64447,6 +75821,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move sets a new position for the Spacer - this will be called by the layout + // + // Args: + // * recv - Go(*layout.Spacer) + // * pos - Go(fyne.Position) "Go(*layout.Spacer)//move": { Doc: "(*layout.Spacer).Move", Argsn: 2, @@ -64487,6 +75866,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // position returns the current position of this Spacer + // + // Args: + // * recv - Go(*layout.Spacer) + // Result: + // * Go(fyne.position) "Go(*layout.Spacer)//position": { Doc: "(*layout.Spacer).Position", Argsn: 1, @@ -64516,6 +75901,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh does nothing for a spacer but is part of the CanvasObject definition + // + // Args: + // * recv - Go(*layout.Spacer) "Go(*layout.Spacer)//refresh": { Doc: "(*layout.Spacer).Refresh", Argsn: 1, @@ -64543,6 +75932,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for the Spacer - this will be called by the layout + // + // Args: + // * recv - Go(*layout.Spacer) + // * size - Go(fyne.Size) "Go(*layout.Spacer)//resize": { Doc: "(*layout.Spacer).Resize", Argsn: 2, @@ -64583,6 +75977,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show sets the Spacer to be part of the layout calculations + // + // Args: + // * recv - Go(*layout.Spacer) "Go(*layout.Spacer)//show": { Doc: "(*layout.Spacer).Show", Argsn: 1, @@ -64610,6 +76008,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // size returns the current size of this Spacer + // + // Args: + // * recv - Go(*layout.Spacer) + // Result: + // * Go(fyne.size) "Go(*layout.Spacer)//size": { Doc: "(*layout.Spacer).Size", Argsn: 1, @@ -64639,6 +76043,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // visible returns true if this spacer should affect the layout + // + // Args: + // * recv - Go(*layout.Spacer) + // Result: + // * bool "Go(*layout.Spacer)//visible": { Doc: "(*layout.Spacer).Visible", Argsn: 1, @@ -64668,6 +76078,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * absolute-position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*mobile.TouchEvent)//absolute-position!": { Doc: "Set *mobile.TouchEvent AbsolutePosition value", Argsn: 2, @@ -64714,6 +76128,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*mobile.TouchEvent)//absolute-position?": { Doc: "Get *mobile.TouchEvent AbsolutePosition value", Argsn: 1, @@ -64742,6 +76158,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * point-event - Go(fyne.PointEvent) + // Result: + // * Go(fyne.PointEvent) "Go(*mobile.TouchEvent)//point-event!": { Doc: "Set *mobile.TouchEvent PointEvent value", Argsn: 2, @@ -64788,6 +76208,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.PointEvent) "Go(*mobile.TouchEvent)//point-event?": { Doc: "Get *mobile.TouchEvent PointEvent value", Argsn: 1, @@ -64816,6 +76238,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * position - Go(fyne.Position) + // Result: + // * Go(fyne.Position) "Go(*mobile.TouchEvent)//position!": { Doc: "Set *mobile.TouchEvent Position value", Argsn: 2, @@ -64862,6 +76288,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Position) "Go(*mobile.TouchEvent)//position?": { Doc: "Get *mobile.TouchEvent Position value", Argsn: 1, @@ -64890,6 +76318,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * extensions - block[string] + // Result: + // * block[string] "Go(*storage.ExtensionFileFilter)//extensions!": { Doc: "Set *storage.ExtensionFileFilter Extensions value", Argsn: 2, @@ -64918,8 +76350,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] if vc, ok := it.(env.String); ok { - newVal[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*storage.ExtensionFileFilter)//extensions!: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -64939,6 +76372,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[string] "Go(*storage.ExtensionFileFilter)//extensions?": { Doc: "Get *storage.ExtensionFileFilter Extensions value", Argsn: 1, @@ -64973,6 +76408,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // matches returns true if a file URI has one of the filtered extensions. + // + // Args: + // * recv - Go(*storage.ExtensionFileFilter) + // * uri - Go(fyne.URI) + // Result: + // * bool "Go(*storage.ExtensionFileFilter)//matches": { Doc: "(*storage.ExtensionFileFilter).Matches", Argsn: 2, @@ -65028,6 +76470,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // matches returns true if a file URI has one of the filtered mimetypes. + // + // Args: + // * recv - Go(*storage.MimeTypeFileFilter) + // * uri - Go(fyne.URI) + // Result: + // * bool "Go(*storage.MimeTypeFileFilter)//matches": { Doc: "(*storage.MimeTypeFileFilter).Matches", Argsn: 2, @@ -65083,6 +76532,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * mime-types - block[string] + // Result: + // * block[string] "Go(*storage.MimeTypeFileFilter)//mime-types!": { Doc: "Set *storage.MimeTypeFileFilter MimeTypes value", Argsn: 2, @@ -65111,8 +76564,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] if vc, ok := it.(env.String); ok { - newVal[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*storage.MimeTypeFileFilter)//mime-types!: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -65132,6 +76586,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[string] "Go(*storage.MimeTypeFileFilter)//mime-types?": { Doc: "Get *storage.MimeTypeFileFilter MimeTypes value", Argsn: 1, @@ -65166,6 +76622,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // content returns the disabled style content of the correct resource for the current theme + // + // Args: + // * recv - Go(*theme.DisabledResource) + // Result: + // * block[integer] "Go(*theme.DisabledResource)//content": { Doc: "(*theme.DisabledResource).Content", Argsn: 1, @@ -65194,13 +76656,19 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // name returns the resource source name prefixed with `disabled_` (used for caching) + // + // Args: + // * recv - Go(*theme.DisabledResource) + // Result: + // * string "Go(*theme.DisabledResource)//name": { Doc: "(*theme.DisabledResource).Name", Argsn: 1, @@ -65230,6 +76698,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content returns the underlying content of the resource adapted to the current background color. + // + // Args: + // * recv - Go(*theme.ErrorThemedResource) + // Result: + // * block[integer] "Go(*theme.ErrorThemedResource)//content": { Doc: "(*theme.ErrorThemedResource).Content", Argsn: 1, @@ -65258,13 +76732,19 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // name returns the underlying resource name (used for caching). + // + // Args: + // * recv - Go(*theme.ErrorThemedResource) + // Result: + // * string "Go(*theme.ErrorThemedResource)//name": { Doc: "(*theme.ErrorThemedResource).Name", Argsn: 1, @@ -65294,6 +76774,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // original returns the underlying resource that this error themed resource was adapted from + // + // Args: + // * recv - Go(*theme.ErrorThemedResource) + // Result: + // * Go(fyne.Resource) "Go(*theme.ErrorThemedResource)//original": { Doc: "(*theme.ErrorThemedResource).Original", Argsn: 1, @@ -65323,6 +76809,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content returns the underlying content of the resource adapted to the current background color. + // + // Args: + // * recv - Go(*theme.InvertedThemedResource) + // Result: + // * block[integer] "Go(*theme.InvertedThemedResource)//content": { Doc: "(*theme.InvertedThemedResource).Content", Argsn: 1, @@ -65351,13 +76843,19 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // name returns the underlying resource name (used for caching). + // + // Args: + // * recv - Go(*theme.InvertedThemedResource) + // Result: + // * string "Go(*theme.InvertedThemedResource)//name": { Doc: "(*theme.InvertedThemedResource).Name", Argsn: 1, @@ -65387,6 +76885,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // original returns the underlying resource that this inverted themed resource was adapted from + // + // Args: + // * recv - Go(*theme.InvertedThemedResource) + // Result: + // * Go(fyne.Resource) "Go(*theme.InvertedThemedResource)//original": { Doc: "(*theme.InvertedThemedResource).Original", Argsn: 1, @@ -65416,6 +76920,48 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // theme-color-name returns the fyne.theme-color-name that is used as foreground color. + // @implements fyne.ThemedResource + // + // Args: + // * recv - Go(*theme.InvertedThemedResource) + // Result: + // * string + "Go(*theme.InvertedThemedResource)//theme-color-name": { + Doc: "(*theme.InvertedThemedResource).ThemeColorName", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *theme.InvertedThemedResource + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*theme.InvertedThemedResource); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*theme.InvertedThemedResource)//theme-color-name: arg 1: " + "expected native of type *theme.InvertedThemedResource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*theme.InvertedThemedResource)//theme-color-name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*theme.InvertedThemedResource)//theme-color-name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.ThemeColorName() + var res0Obj env.Object + res0Obj = *env.NewString(string(res0)) + return res0Obj + }, + }, + // content returns the underlying content of the resource adapted to the current background color. + // + // Args: + // * recv - Go(*theme.PrimaryThemedResource) + // Result: + // * block[integer] "Go(*theme.PrimaryThemedResource)//content": { Doc: "(*theme.PrimaryThemedResource).Content", Argsn: 1, @@ -65444,13 +76990,19 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // name returns the underlying resource name (used for caching). + // + // Args: + // * recv - Go(*theme.PrimaryThemedResource) + // Result: + // * string "Go(*theme.PrimaryThemedResource)//name": { Doc: "(*theme.PrimaryThemedResource).Name", Argsn: 1, @@ -65480,6 +77032,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // original returns the underlying resource that this primary themed resource was adapted from + // + // Args: + // * recv - Go(*theme.PrimaryThemedResource) + // Result: + // * Go(fyne.Resource) "Go(*theme.PrimaryThemedResource)//original": { Doc: "(*theme.PrimaryThemedResource).Original", Argsn: 1, @@ -65509,6 +77067,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * color-name - string + // Result: + // * string "Go(*theme.ThemedResource)//color-name!": { Doc: "Set *theme.ThemedResource ColorName value", Argsn: 2, @@ -65557,6 +77119,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*theme.ThemedResource)//color-name?": { Doc: "Get *theme.ThemedResource ColorName value", Argsn: 1, @@ -65585,6 +77149,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // content returns the underlying content of the resource adapted to the current text color. + // + // Args: + // * recv - Go(*theme.ThemedResource) + // Result: + // * block[integer] "Go(*theme.ThemedResource)//content": { Doc: "(*theme.ThemedResource).Content", Argsn: 1, @@ -65613,13 +77183,19 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // error returns a different resource for indicating an error. + // + // Args: + // * recv - Go(*theme.ThemedResource) + // Result: + // * Go(*theme.errorThemedResource) "Go(*theme.ThemedResource)//error": { Doc: "(*theme.ThemedResource).Error", Argsn: 1, @@ -65649,6 +77225,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // name returns the underlying resource name (used for caching). + // + // Args: + // * recv - Go(*theme.ThemedResource) + // Result: + // * string "Go(*theme.ThemedResource)//name": { Doc: "(*theme.ThemedResource).Name", Argsn: 1, @@ -65678,6 +77260,47 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // theme-color-name returns the fyne.theme-color-name that is used as foreground color. + // @implements fyne.ThemedResource + // + // Args: + // * recv - Go(*theme.ThemedResource) + // Result: + // * string + "Go(*theme.ThemedResource)//theme-color-name": { + Doc: "(*theme.ThemedResource).ThemeColorName", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *theme.ThemedResource + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*theme.ThemedResource); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*theme.ThemedResource)//theme-color-name: arg 1: " + "expected native of type *theme.ThemedResource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*theme.ThemedResource)//theme-color-name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*theme.ThemedResource)//theme-color-name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.ThemeColorName() + var res0Obj env.Object + res0Obj = *env.NewString(string(res0)) + return res0Obj + }, + }, + // append adds the given item to this Accordion. + // + // Args: + // * recv - Go(*widget.Accordion) + // * item - Go(*widget.AccordionItem) "Go(*widget.Accordion)//append": { Doc: "(*widget.Accordion).Append", Argsn: 2, @@ -65724,6 +77347,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Accordion)//base-widget!": { Doc: "Set *widget.Accordion BaseWidget value", Argsn: 2, @@ -65770,6 +77397,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Accordion)//base-widget?": { Doc: "Get *widget.Accordion BaseWidget value", Argsn: 1, @@ -65798,6 +77427,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // close collapses the item at the given index. + // + // Args: + // * recv - Go(*widget.Accordion) + // * index - integer "Go(*widget.Accordion)//close": { Doc: "(*widget.Accordion).Close", Argsn: 2, @@ -65832,6 +77466,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // close-all collapses all items. + // + // Args: + // * recv - Go(*widget.Accordion) "Go(*widget.Accordion)//close-all": { Doc: "(*widget.Accordion).CloseAll", Argsn: 1, @@ -65859,6 +77497,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Accordion) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Accordion)//create-renderer": { Doc: "(*widget.Accordion).CreateRenderer", Argsn: 1, @@ -65888,6 +77532,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Accordion) + // * wid - Go(fyne.Widget) "Go(*widget.Accordion)//extend-base-widget": { Doc: "(*widget.Accordion).ExtendBaseWidget", Argsn: 2, @@ -65941,6 +77588,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Accordion)//hidden!": { Doc: "Set *widget.Accordion Hidden value", Argsn: 2, @@ -65975,6 +77626,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Accordion)//hidden?": { Doc: "Get *widget.Accordion Hidden value", Argsn: 1, @@ -66003,6 +77656,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Accordion) "Go(*widget.Accordion)//hide": { Doc: "(*widget.Accordion).Hide", Argsn: 1, @@ -66030,6 +77685,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(*widget.AccordionItem)] + // Result: + // * block[Go(*widget.AccordionItem)] "Go(*widget.Accordion)//items!": { Doc: "Set *widget.Accordion Items value", Argsn: 2, @@ -66058,10 +77717,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]*widget.AccordionItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*widget.AccordionItem); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.Accordion)//items!: arg 2: " + "block item: " + "expected native of type *widget.AccordionItem, but got " + objectDebugString(ps.Idx, v)) @@ -66071,7 +77731,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.Accordion)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.Accordion)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -66091,6 +77751,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(*widget.AccordionItem)] "Go(*widget.Accordion)//items?": { Doc: "Get *widget.Accordion Items value", Argsn: 1, @@ -66125,6 +77787,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below. + // + // Args: + // * recv - Go(*widget.Accordion) + // Result: + // * Go(fyne.Size) "Go(*widget.Accordion)//min-size": { Doc: "(*widget.Accordion).MinSize", Argsn: 1, @@ -66154,6 +77822,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Accordion) + // * pos - Go(fyne.Position) "Go(*widget.Accordion)//move": { Doc: "(*widget.Accordion).Move", Argsn: 2, @@ -66194,6 +77865,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * multi-open - bool + // Result: + // * bool "Go(*widget.Accordion)//multi-open!": { Doc: "Set *widget.Accordion MultiOpen value", Argsn: 2, @@ -66228,6 +77903,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Accordion)//multi-open?": { Doc: "Get *widget.Accordion MultiOpen value", Argsn: 1, @@ -66256,6 +77933,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // open expands the item at the given index. + // + // Args: + // * recv - Go(*widget.Accordion) + // * index - integer "Go(*widget.Accordion)//open": { Doc: "(*widget.Accordion).Open", Argsn: 2, @@ -66290,6 +77972,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // open-all expands all items. + // + // Args: + // * recv - Go(*widget.Accordion) "Go(*widget.Accordion)//open-all": { Doc: "(*widget.Accordion).OpenAll", Argsn: 1, @@ -66317,6 +78003,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Accordion) + // Result: + // * Go(fyne.position) "Go(*widget.Accordion)//position": { Doc: "(*widget.Accordion).Position", Argsn: 1, @@ -66346,6 +78036,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Accordion) "Go(*widget.Accordion)//refresh": { Doc: "(*widget.Accordion).Refresh", Argsn: 1, @@ -66373,6 +78065,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove deletes the given item from this Accordion. + // + // Args: + // * recv - Go(*widget.Accordion) + // * item - Go(*widget.AccordionItem) "Go(*widget.Accordion)//remove": { Doc: "(*widget.Accordion).Remove", Argsn: 2, @@ -66419,6 +78116,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove-index deletes the item at the given index from this Accordion. + // + // Args: + // * recv - Go(*widget.Accordion) + // * index - integer "Go(*widget.Accordion)//remove-index": { Doc: "(*widget.Accordion).RemoveIndex", Argsn: 2, @@ -66453,6 +78155,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Accordion) + // * size - Go(fyne.Size) "Go(*widget.Accordion)//resize": { Doc: "(*widget.Accordion).Resize", Argsn: 2, @@ -66493,6 +78198,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Accordion) "Go(*widget.Accordion)//show": { Doc: "(*widget.Accordion).Show", Argsn: 1, @@ -66520,6 +78227,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Accordion) + // Result: + // * Go(fyne.size) "Go(*widget.Accordion)//size": { Doc: "(*widget.Accordion).Size", Argsn: 1, @@ -66549,6 +78260,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Accordion) + // Result: + // * Go(fyne.theme) + "Go(*widget.Accordion)//theme": { + Doc: "(*widget.Accordion).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Accordion + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Accordion); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Accordion)//theme: arg 1: " + "expected native of type *widget.Accordion, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Accordion)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Accordion)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Accordion) + // Result: + // * bool "Go(*widget.Accordion)//visible": { Doc: "(*widget.Accordion).Visible", Argsn: 1, @@ -66578,6 +78326,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * detail - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.AccordionItem)//detail!": { Doc: "Set *widget.AccordionItem Detail value", Argsn: 2, @@ -66631,6 +78383,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.AccordionItem)//detail?": { Doc: "Get *widget.AccordionItem Detail value", Argsn: 1, @@ -66659,6 +78413,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * open - bool + // Result: + // * bool "Go(*widget.AccordionItem)//open!": { Doc: "Set *widget.AccordionItem Open value", Argsn: 2, @@ -66693,6 +78451,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.AccordionItem)//open?": { Doc: "Get *widget.AccordionItem Open value", Argsn: 1, @@ -66721,6 +78481,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * title - string + // Result: + // * string "Go(*widget.AccordionItem)//title!": { Doc: "Set *widget.AccordionItem Title value", Argsn: 2, @@ -66755,6 +78519,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.AccordionItem)//title?": { Doc: "Get *widget.AccordionItem Title value", Argsn: 1, @@ -66783,6 +78549,648 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) + "Go(*widget.Activity)//base-widget!": { + Doc: "Set *widget.Activity BaseWidget value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget!: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal *widget.BaseWidget + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.BaseWidget); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget!: arg 2: " + "expected native of type *widget.BaseWidget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.BaseWidget = *newVal + return arg0 + }, + }, + // Result: + // * Go(widget.BaseWidget) + "Go(*widget.Activity)//base-widget?": { + Doc: "Get *widget.Activity BaseWidget value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget?: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//base-widget?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, &self.BaseWidget, "Go(*widget.BaseWidget)") + return resObj + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // Result: + // * Go(fyne.WidgetRenderer) + "Go(*widget.Activity)//create-renderer": { + Doc: "(*widget.Activity).CreateRenderer", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//create-renderer: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//create-renderer: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//create-renderer: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.CreateRenderer() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.WidgetRenderer)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // * wid - Go(fyne.Widget) + "Go(*widget.Activity)//extend-base-widget": { + Doc: "(*widget.Activity).ExtendBaseWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//extend-base-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.ExtendBaseWidget(arg1Val) + return arg0 + }, + }, + // Args: + // * hidden - bool + // Result: + // * bool + "Go(*widget.Activity)//hidden!": { + Doc: "Set *widget.Activity Hidden value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden!: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.Hidden = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*widget.Activity)//hidden?": { + Doc: "Get *widget.Activity Hidden value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden?: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hidden?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.Hidden)) + return resObj + }, + }, + // Args: + // * recv - Go(*widget.Activity) + "Go(*widget.Activity)//hide": { + Doc: "(*widget.Activity).Hide", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hide: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hide: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//hide: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Hide() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // Result: + // * Go(fyne.Size) + "Go(*widget.Activity)//min-size": { + Doc: "(*widget.Activity).MinSize", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//min-size: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//min-size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//min-size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.MinSize() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // * pos - Go(fyne.Position) + "Go(*widget.Activity)//move": { + Doc: "(*widget.Activity).Move", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//move: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//move: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//move: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Position + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Position); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//move: arg 2: " + "expected native of type *fyne.Position, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//move: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Move(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // Result: + // * Go(fyne.position) + "Go(*widget.Activity)//position": { + Doc: "(*widget.Activity).Position", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//position: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//position: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//position: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Position() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Position)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Activity) + "Go(*widget.Activity)//refresh": { + Doc: "(*widget.Activity).Refresh", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//refresh: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//refresh: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//refresh: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Refresh() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // * size - Go(fyne.Size) + "Go(*widget.Activity)//resize": { + Doc: "(*widget.Activity).Resize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//resize: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//resize: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//resize: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Size + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.Size); ok { + arg1Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//resize: arg 2: " + "expected native of type *fyne.Size, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//resize: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Resize(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Activity) + "Go(*widget.Activity)//show": { + Doc: "(*widget.Activity).Show", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//show: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//show: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//show: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Show() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // Result: + // * Go(fyne.size) + "Go(*widget.Activity)//size": { + Doc: "(*widget.Activity).Size", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//size: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//size: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//size: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Size() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") + return res0Obj + }, + }, + // start the activity indicator animation + // + // Args: + // * recv - Go(*widget.Activity) + "Go(*widget.Activity)//start": { + Doc: "(*widget.Activity).Start", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//start: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//start: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//start: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Start() + return arg0 + }, + }, + // stop the activity indicator animation + // + // Args: + // * recv - Go(*widget.Activity) + "Go(*widget.Activity)//stop": { + Doc: "(*widget.Activity).Stop", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//stop: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//stop: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//stop: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Stop() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // Result: + // * Go(fyne.theme) + "Go(*widget.Activity)//theme": { + Doc: "(*widget.Activity).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//theme: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Activity) + // Result: + // * bool + "Go(*widget.Activity)//visible": { + Doc: "(*widget.Activity).Visible", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Activity + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Activity); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//visible: arg 1: " + "expected native of type *widget.Activity, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//visible: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Activity)//visible: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Visible() + var res0Obj env.Object + res0Obj = *env.NewInteger(boolToInt64(res0)) + return res0Obj + }, + }, + // extend-base-widget is used by an extending widget to make use of BaseWidget functionality. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // * wid - Go(fyne.Widget) "Go(*widget.BaseWidget)//extend-base-widget": { Doc: "(*widget.BaseWidget).ExtendBaseWidget", Argsn: 2, @@ -66836,6 +79244,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.BaseWidget)//hidden!": { Doc: "Set *widget.BaseWidget Hidden value", Argsn: 2, @@ -66870,6 +79282,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.BaseWidget)//hidden?": { Doc: "Get *widget.BaseWidget Hidden value", Argsn: 1, @@ -66898,6 +79312,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide this widget so it is no longer visible + // + // Args: + // * recv - Go(*widget.BaseWidget) "Go(*widget.BaseWidget)//hide": { Doc: "(*widget.BaseWidget).Hide", Argsn: 1, @@ -66925,6 +79343,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size for the widget - it should never be resized below this value. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // Result: + // * Go(fyne.Size) "Go(*widget.BaseWidget)//min-size": { Doc: "(*widget.BaseWidget).MinSize", Argsn: 1, @@ -66954,6 +79378,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the widget to a new position, relative to its parent. + // Note this should not be used if the widget is being managed by a Layout within a Container. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // * pos - Go(fyne.Position) "Go(*widget.BaseWidget)//move": { Doc: "(*widget.BaseWidget).Move", Argsn: 2, @@ -66994,6 +79424,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // position gets the current position of this widget, relative to its parent. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // Result: + // * Go(fyne.position) "Go(*widget.BaseWidget)//position": { Doc: "(*widget.BaseWidget).Position", Argsn: 1, @@ -67023,6 +79459,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh causes this widget to be redrawn in it's current state + // + // Args: + // * recv - Go(*widget.BaseWidget) "Go(*widget.BaseWidget)//refresh": { Doc: "(*widget.BaseWidget).Refresh", Argsn: 1, @@ -67050,6 +79490,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for a widget. + // Note this should not be used if the widget is being managed by a Layout within a Container. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // * size - Go(fyne.Size) "Go(*widget.BaseWidget)//resize": { Doc: "(*widget.BaseWidget).Resize", Argsn: 2, @@ -67090,6 +79536,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show this widget so it becomes visible + // + // Args: + // * recv - Go(*widget.BaseWidget) "Go(*widget.BaseWidget)//show": { Doc: "(*widget.BaseWidget).Show", Argsn: 1, @@ -67117,6 +79567,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // size gets the current size of this widget. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // Result: + // * Go(fyne.size) "Go(*widget.BaseWidget)//size": { Doc: "(*widget.BaseWidget).Size", Argsn: 1, @@ -67146,6 +79602,51 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // theme returns a cached theme instance for this widget (or its extending widget). + // This will be the app theme in most cases, or a widget specific theme if it is inside a themeOverride container. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.BaseWidget) + // Result: + // * Go(fyne.theme) + "Go(*widget.BaseWidget)//theme": { + Doc: "(*widget.BaseWidget).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.BaseWidget + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.BaseWidget); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.BaseWidget)//theme: arg 1: " + "expected native of type *widget.BaseWidget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.BaseWidget)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.BaseWidget)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // visible returns whether or not this widget should be visible. + // Note that this may not mean it is currently visible if a parent has been hidden. + // + // Args: + // * recv - Go(*widget.BaseWidget) + // Result: + // * bool "Go(*widget.BaseWidget)//visible": { Doc: "(*widget.BaseWidget).Visible", Argsn: 1, @@ -67175,6 +79676,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.Button)//alignment!": { Doc: "Set *widget.Button Alignment value", Argsn: 2, @@ -67223,6 +79728,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Button)//alignment?": { Doc: "Get *widget.Button Alignment value", Argsn: 1, @@ -67251,6 +79758,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Button)//base-widget!": { Doc: "Set *widget.Button BaseWidget value", Argsn: 2, @@ -67297,6 +79808,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Button)//base-widget?": { Doc: "Get *widget.Button BaseWidget value", Argsn: 1, @@ -67325,6 +79838,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Button) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Button)//create-renderer": { Doc: "(*widget.Button).CreateRenderer", Argsn: 1, @@ -67354,6 +79873,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // cursor returns the cursor type of this widget + // + // Args: + // * recv - Go(*widget.Button) + // Result: + // * Go(desktop.cursor) "Go(*widget.Button)//cursor": { Doc: "(*widget.Button).Cursor", Argsn: 1, @@ -67383,6 +79908,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//disable": { Doc: "(*widget.Button).Disable", Argsn: 1, @@ -67410,6 +79937,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Button)//disableable-widget!": { Doc: "Set *widget.Button DisableableWidget value", Argsn: 2, @@ -67456,6 +79987,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Button)//disableable-widget?": { Doc: "Get *widget.Button DisableableWidget value", Argsn: 1, @@ -67484,6 +80017,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Button) + // Result: + // * bool "Go(*widget.Button)//disabled": { Doc: "(*widget.Button).Disabled", Argsn: 1, @@ -67513,6 +80050,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//enable": { Doc: "(*widget.Button).Enable", Argsn: 1, @@ -67540,6 +80079,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Button) + // * wid - Go(fyne.Widget) "Go(*widget.Button)//extend-base-widget": { Doc: "(*widget.Button).ExtendBaseWidget", Argsn: 2, @@ -67593,6 +80135,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is a hook called by the focus handling logic after this object gained the focus. + // + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//focus-gained": { Doc: "(*widget.Button).FocusGained", Argsn: 1, @@ -67620,6 +80166,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is a hook called by the focus handling logic after this object lost the focus. + // + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//focus-lost": { Doc: "(*widget.Button).FocusLost", Argsn: 1, @@ -67647,6 +80197,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Button)//hidden!": { Doc: "Set *widget.Button Hidden value", Argsn: 2, @@ -67681,6 +80235,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Button)//hidden?": { Doc: "Get *widget.Button Hidden value", Argsn: 1, @@ -67709,6 +80265,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//hide": { Doc: "(*widget.Button).Hide", Argsn: 1, @@ -67736,6 +80294,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * icon - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*widget.Button)//icon!": { Doc: "Set *widget.Button Icon value", Argsn: 2, @@ -67789,6 +80351,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * icon-placement - integer + // Result: + // * integer "Go(*widget.Button)//icon-placement!": { Doc: "Set *widget.Button IconPlacement value", Argsn: 2, @@ -67837,6 +80403,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Button)//icon-placement?": { Doc: "Get *widget.Button IconPlacement value", Argsn: 1, @@ -67865,6 +80433,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(fyne.Resource) "Go(*widget.Button)//icon?": { Doc: "Get *widget.Button Icon value", Argsn: 1, @@ -67893,6 +80463,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * importance - integer + // Result: + // * integer "Go(*widget.Button)//importance!": { Doc: "Set *widget.Button Importance value", Argsn: 2, @@ -67941,6 +80515,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Button)//importance?": { Doc: "Get *widget.Button Importance value", Argsn: 1, @@ -67969,6 +80545,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Button) + // Result: + // * Go(fyne.Size) "Go(*widget.Button)//min-size": { Doc: "(*widget.Button).MinSize", Argsn: 1, @@ -67998,6 +80580,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mouse-in is called when a desktop pointer enters the widget + // + // Args: + // * recv - Go(*widget.Button) + // * 1 - Go(*desktop.MouseEvent) "Go(*widget.Button)//mouse-in": { Doc: "(*widget.Button).MouseIn", Argsn: 2, @@ -68044,6 +80631,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-moved is called when a desktop pointer hovers over the widget + // + // Args: + // * recv - Go(*widget.Button) + // * 1 - Go(*desktop.MouseEvent) "Go(*widget.Button)//mouse-moved": { Doc: "(*widget.Button).MouseMoved", Argsn: 2, @@ -68090,6 +80682,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-out is called when a desktop pointer exits the widget + // + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//mouse-out": { Doc: "(*widget.Button).MouseOut", Argsn: 1, @@ -68117,6 +80713,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Button) + // * pos - Go(fyne.Position) "Go(*widget.Button)//move": { Doc: "(*widget.Button).Move", Argsn: 2, @@ -68157,6 +80756,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-tapped - fn { } + // Result: + // * fn { } "Go(*widget.Button)//on-tapped!": { Doc: "Set *widget.Button OnTapped value", Argsn: 2, @@ -68206,6 +80809,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.Button)//on-tapped?": { Doc: "Get *widget.Button OnTapped value", Argsn: 1, @@ -68237,6 +80842,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Button) + // Result: + // * Go(fyne.position) "Go(*widget.Button)//position": { Doc: "(*widget.Button).Position", Argsn: 1, @@ -68266,6 +80875,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//refresh": { Doc: "(*widget.Button).Refresh", Argsn: 1, @@ -68293,6 +80904,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Button) + // * size - Go(fyne.Size) "Go(*widget.Button)//resize": { Doc: "(*widget.Button).Resize", Argsn: 2, @@ -68333,6 +80947,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-icon updates the icon on a label - pass nil to hide an icon + // + // Args: + // * recv - Go(*widget.Button) + // * icon - Go(fyne.Resource) "Go(*widget.Button)//set-icon": { Doc: "(*widget.Button).SetIcon", Argsn: 2, @@ -68386,6 +81005,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text allows the button label to be changed + // + // Args: + // * recv - Go(*widget.Button) + // * text - string "Go(*widget.Button)//set-text": { Doc: "(*widget.Button).SetText", Argsn: 2, @@ -68420,6 +81044,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Button) "Go(*widget.Button)//show": { Doc: "(*widget.Button).Show", Argsn: 1, @@ -68447,6 +81073,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Button) + // Result: + // * Go(fyne.size) "Go(*widget.Button)//size": { Doc: "(*widget.Button).Size", Argsn: 1, @@ -68476,6 +81106,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tapped is called when a pointer tapped event is captured and triggers any tap handler + // + // Args: + // * recv - Go(*widget.Button) + // * 1 - Go(*fyne.PointEvent) "Go(*widget.Button)//tapped": { Doc: "(*widget.Button).Tapped", Argsn: 2, @@ -68522,6 +81157,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.Button)//text!": { Doc: "Set *widget.Button Text value", Argsn: 2, @@ -68556,6 +81195,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Button)//text?": { Doc: "Get *widget.Button Text value", Argsn: 1, @@ -68584,6 +81225,44 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Button) + // Result: + // * Go(fyne.theme) + "Go(*widget.Button)//theme": { + Doc: "(*widget.Button).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Button + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Button); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Button)//theme: arg 1: " + "expected native of type *widget.Button, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Button)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Button)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // typed-key is a hook called by the input handling logic on key events if this object is focused. + // + // Args: + // * recv - Go(*widget.Button) + // * ev - Go(*fyne.KeyEvent) "Go(*widget.Button)//typed-key": { Doc: "(*widget.Button).TypedKey", Argsn: 2, @@ -68630,6 +81309,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is a hook called by the input handling logic on text input events if this object is focused. + // + // Args: + // * recv - Go(*widget.Button) + // * 1 - Go(rune) "Go(*widget.Button)//typed-rune": { Doc: "(*widget.Button).TypedRune", Argsn: 2, @@ -68670,6 +81354,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Button) + // Result: + // * bool "Go(*widget.Button)//visible": { Doc: "(*widget.Button).Visible", Argsn: 1, @@ -68699,6 +81387,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Card)//base-widget!": { Doc: "Set *widget.Card BaseWidget value", Argsn: 2, @@ -68745,6 +81437,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Card)//base-widget?": { Doc: "Get *widget.Card BaseWidget value", Argsn: 1, @@ -68773,6 +81467,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.Card)//content!": { Doc: "Set *widget.Card Content value", Argsn: 2, @@ -68826,6 +81524,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.Card)//content?": { Doc: "Get *widget.Card Content value", Argsn: 1, @@ -68854,6 +81554,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Card) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Card)//create-renderer": { Doc: "(*widget.Card).CreateRenderer", Argsn: 1, @@ -68883,6 +81589,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Card) + // * wid - Go(fyne.Widget) "Go(*widget.Card)//extend-base-widget": { Doc: "(*widget.Card).ExtendBaseWidget", Argsn: 2, @@ -68936,6 +81645,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Card)//hidden!": { Doc: "Set *widget.Card Hidden value", Argsn: 2, @@ -68970,6 +81683,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Card)//hidden?": { Doc: "Get *widget.Card Hidden value", Argsn: 1, @@ -68998,6 +81713,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Card) "Go(*widget.Card)//hide": { Doc: "(*widget.Card).Hide", Argsn: 1, @@ -69025,6 +81742,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * image - Go(*canvas.Image) + // Result: + // * Go(*canvas.Image) "Go(*widget.Card)//image!": { Doc: "Set *widget.Card Image value", Argsn: 2, @@ -69071,6 +81792,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(*canvas.Image) "Go(*widget.Card)//image?": { Doc: "Get *widget.Card Image value", Argsn: 1, @@ -69099,6 +81822,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Card) + // Result: + // * Go(fyne.Size) "Go(*widget.Card)//min-size": { Doc: "(*widget.Card).MinSize", Argsn: 1, @@ -69128,6 +81857,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Card) + // * pos - Go(fyne.Position) "Go(*widget.Card)//move": { Doc: "(*widget.Card).Move", Argsn: 2, @@ -69168,6 +81900,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Card) + // Result: + // * Go(fyne.position) "Go(*widget.Card)//position": { Doc: "(*widget.Card).Position", Argsn: 1, @@ -69197,6 +81933,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Card) "Go(*widget.Card)//refresh": { Doc: "(*widget.Card).Refresh", Argsn: 1, @@ -69224,6 +81962,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Card) + // * size - Go(fyne.Size) "Go(*widget.Card)//resize": { Doc: "(*widget.Card).Resize", Argsn: 2, @@ -69264,6 +82005,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-content changes the body of this card to have the specified content. + // + // Args: + // * recv - Go(*widget.Card) + // * obj - Go(fyne.CanvasObject) "Go(*widget.Card)//set-content": { Doc: "(*widget.Card).SetContent", Argsn: 2, @@ -69317,6 +82063,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-image changes the image displayed above the title for this card. + // + // Args: + // * recv - Go(*widget.Card) + // * img - Go(*canvas.Image) "Go(*widget.Card)//set-image": { Doc: "(*widget.Card).SetImage", Argsn: 2, @@ -69363,6 +82114,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-sub-title updates the secondary title for this card. + // + // Args: + // * recv - Go(*widget.Card) + // * text - string "Go(*widget.Card)//set-sub-title": { Doc: "(*widget.Card).SetSubTitle", Argsn: 2, @@ -69397,6 +82153,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-title updates the main title for this card. + // + // Args: + // * recv - Go(*widget.Card) + // * text - string "Go(*widget.Card)//set-title": { Doc: "(*widget.Card).SetTitle", Argsn: 2, @@ -69431,6 +82192,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Card) "Go(*widget.Card)//show": { Doc: "(*widget.Card).Show", Argsn: 1, @@ -69458,6 +82221,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Card) + // Result: + // * Go(fyne.size) "Go(*widget.Card)//size": { Doc: "(*widget.Card).Size", Argsn: 1, @@ -69487,6 +82254,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * subtitle - string + // Result: + // * string "Go(*widget.Card)//subtitle!": { Doc: "Set *widget.Card Subtitle value", Argsn: 2, @@ -69521,6 +82292,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Card)//subtitle?": { Doc: "Get *widget.Card Subtitle value", Argsn: 1, @@ -69549,6 +82322,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Card) + // Result: + // * Go(fyne.theme) + "Go(*widget.Card)//theme": { + Doc: "(*widget.Card).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Card + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Card); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Card)//theme: arg 1: " + "expected native of type *widget.Card, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Card)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Card)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * title - string + // Result: + // * string "Go(*widget.Card)//title!": { Doc: "Set *widget.Card Title value", Argsn: 2, @@ -69583,6 +82393,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Card)//title?": { Doc: "Get *widget.Card Title value", Argsn: 1, @@ -69611,6 +82423,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Card) + // Result: + // * bool "Go(*widget.Card)//visible": { Doc: "(*widget.Card).Visible", Argsn: 1, @@ -69640,6 +82456,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Check)//base-widget!": { Doc: "Set *widget.Check BaseWidget value", Argsn: 2, @@ -69686,6 +82506,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Check)//base-widget?": { Doc: "Get *widget.Check BaseWidget value", Argsn: 1, @@ -69714,6 +82536,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // bind connects the specified data source to this Check. + // The current value will be displayed and any changes in the data will cause the widget to update. + // User interactions with this Check will set the value into the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Check) + // * data - Go(binding.Bool) "Go(*widget.Check)//bind": { Doc: "(*widget.Check).Bind", Argsn: 2, @@ -69767,6 +82598,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * checked - bool + // Result: + // * bool "Go(*widget.Check)//checked!": { Doc: "Set *widget.Check Checked value", Argsn: 2, @@ -69801,6 +82636,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Check)//checked?": { Doc: "Get *widget.Check Checked value", Argsn: 1, @@ -69829,6 +82666,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Check) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Check)//create-renderer": { Doc: "(*widget.Check).CreateRenderer", Argsn: 1, @@ -69858,6 +82701,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//disable": { Doc: "(*widget.Check).Disable", Argsn: 1, @@ -69885,6 +82730,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Check)//disableable-widget!": { Doc: "Set *widget.Check DisableableWidget value", Argsn: 2, @@ -69931,6 +82780,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Check)//disableable-widget?": { Doc: "Get *widget.Check DisableableWidget value", Argsn: 1, @@ -69959,6 +82810,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Check) + // Result: + // * bool "Go(*widget.Check)//disabled": { Doc: "(*widget.Check).Disabled", Argsn: 1, @@ -69988,6 +82843,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//enable": { Doc: "(*widget.Check).Enable", Argsn: 1, @@ -70015,6 +82872,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Check) + // * wid - Go(fyne.Widget) "Go(*widget.Check)//extend-base-widget": { Doc: "(*widget.Check).ExtendBaseWidget", Argsn: 2, @@ -70068,6 +82928,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called when the Check has been given focus. + // + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//focus-gained": { Doc: "(*widget.Check).FocusGained", Argsn: 1, @@ -70095,6 +82959,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called when the Check has had focus removed. + // + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//focus-lost": { Doc: "(*widget.Check).FocusLost", Argsn: 1, @@ -70122,6 +82990,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Check)//hidden!": { Doc: "Set *widget.Check Hidden value", Argsn: 2, @@ -70156,6 +83028,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Check)//hidden?": { Doc: "Get *widget.Check Hidden value", Argsn: 1, @@ -70184,6 +83058,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide this widget, if it was previously visible + // + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//hide": { Doc: "(*widget.Check).Hide", Argsn: 1, @@ -70211,6 +83089,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Check) + // Result: + // * Go(fyne.Size) "Go(*widget.Check)//min-size": { Doc: "(*widget.Check).MinSize", Argsn: 1, @@ -70240,6 +83124,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mouse-in is called when a desktop pointer enters the widget + // + // Args: + // * recv - Go(*widget.Check) + // * me - Go(*desktop.MouseEvent) "Go(*widget.Check)//mouse-in": { Doc: "(*widget.Check).MouseIn", Argsn: 2, @@ -70286,6 +83175,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-moved is called when a desktop pointer hovers over the widget + // + // Args: + // * recv - Go(*widget.Check) + // * me - Go(*desktop.MouseEvent) "Go(*widget.Check)//mouse-moved": { Doc: "(*widget.Check).MouseMoved", Argsn: 2, @@ -70332,6 +83226,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-out is called when a desktop pointer exits the widget + // + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//mouse-out": { Doc: "(*widget.Check).MouseOut", Argsn: 1, @@ -70359,6 +83257,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Check) + // * pos - Go(fyne.Position) "Go(*widget.Check)//move": { Doc: "(*widget.Check).Move", Argsn: 2, @@ -70399,6 +83300,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-changed - fn { bool } + // Result: + // * fn { bool } "Go(*widget.Check)//on-changed!": { Doc: "Set *widget.Check OnChanged value", Argsn: 2, @@ -70450,6 +83355,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { bool } "Go(*widget.Check)//on-changed?": { Doc: "Get *widget.Check OnChanged value", Argsn: 1, @@ -70488,6 +83395,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Check) + // Result: + // * Go(fyne.position) "Go(*widget.Check)//position": { Doc: "(*widget.Check).Position", Argsn: 1, @@ -70517,6 +83428,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//refresh": { Doc: "(*widget.Check).Refresh", Argsn: 1, @@ -70544,6 +83457,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Check) + // * size - Go(fyne.Size) "Go(*widget.Check)//resize": { Doc: "(*widget.Check).Resize", Argsn: 2, @@ -70584,6 +83500,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-checked sets the checked state and refreshes widget + // + // Args: + // * recv - Go(*widget.Check) + // * checked - bool "Go(*widget.Check)//set-checked": { Doc: "(*widget.Check).SetChecked", Argsn: 2, @@ -70618,6 +83539,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text sets the text of the Check + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Check) + // * text - string "Go(*widget.Check)//set-text": { Doc: "(*widget.Check).SetText", Argsn: 2, @@ -70652,6 +83580,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//show": { Doc: "(*widget.Check).Show", Argsn: 1, @@ -70679,6 +83609,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Check) + // Result: + // * Go(fyne.size) "Go(*widget.Check)//size": { Doc: "(*widget.Check).Size", Argsn: 1, @@ -70708,6 +83642,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tapped is called when a pointer tapped event is captured and triggers any change handler + // + // Args: + // * recv - Go(*widget.Check) + // * pe - Go(*fyne.PointEvent) "Go(*widget.Check)//tapped": { Doc: "(*widget.Check).Tapped", Argsn: 2, @@ -70754,6 +83693,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.Check)//text!": { Doc: "Set *widget.Check Text value", Argsn: 2, @@ -70788,6 +83731,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Check)//text?": { Doc: "Get *widget.Check Text value", Argsn: 1, @@ -70816,6 +83761,44 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Check) + // Result: + // * Go(fyne.theme) + "Go(*widget.Check)//theme": { + Doc: "(*widget.Check).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Check + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Check); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Check)//theme: arg 1: " + "expected native of type *widget.Check, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Check)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Check)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // typed-key receives key input events when the Check is focused. + // + // Args: + // * recv - Go(*widget.Check) + // * key - Go(*fyne.KeyEvent) "Go(*widget.Check)//typed-key": { Doc: "(*widget.Check).TypedKey", Argsn: 2, @@ -70862,6 +83845,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune receives text input events when the Check is focused. + // + // Args: + // * recv - Go(*widget.Check) + // * r - Go(rune) "Go(*widget.Check)//typed-rune": { Doc: "(*widget.Check).TypedRune", Argsn: 2, @@ -70902,6 +83890,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unbind disconnects any configured data source from this Check. + // The current value will remain at the last value of the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Check) "Go(*widget.Check)//unbind": { Doc: "(*widget.Check).Unbind", Argsn: 1, @@ -70929,6 +83924,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Check) + // Result: + // * bool "Go(*widget.Check)//visible": { Doc: "(*widget.Check).Visible", Argsn: 1, @@ -70958,6 +83957,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // append adds a new option to the end of a CheckGroup widget. + // + // Args: + // * recv - Go(*widget.CheckGroup) + // * option - string "Go(*widget.CheckGroup)//append": { Doc: "(*widget.CheckGroup).Append", Argsn: 2, @@ -70992,6 +83996,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.CheckGroup)//base-widget!": { Doc: "Set *widget.CheckGroup BaseWidget value", Argsn: 2, @@ -71038,6 +84046,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.CheckGroup)//base-widget?": { Doc: "Get *widget.CheckGroup BaseWidget value", Argsn: 1, @@ -71066,6 +84076,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.CheckGroup)//create-renderer": { Doc: "(*widget.CheckGroup).CreateRenderer", Argsn: 1, @@ -71095,6 +84111,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) "Go(*widget.CheckGroup)//disable": { Doc: "(*widget.CheckGroup).Disable", Argsn: 1, @@ -71122,6 +84140,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.CheckGroup)//disableable-widget!": { Doc: "Set *widget.CheckGroup DisableableWidget value", Argsn: 2, @@ -71168,6 +84190,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.CheckGroup)//disableable-widget?": { Doc: "Get *widget.CheckGroup DisableableWidget value", Argsn: 1, @@ -71196,6 +84220,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * bool "Go(*widget.CheckGroup)//disabled": { Doc: "(*widget.CheckGroup).Disabled", Argsn: 1, @@ -71225,6 +84253,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) "Go(*widget.CheckGroup)//enable": { Doc: "(*widget.CheckGroup).Enable", Argsn: 1, @@ -71252,6 +84282,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // * wid - Go(fyne.Widget) "Go(*widget.CheckGroup)//extend-base-widget": { Doc: "(*widget.CheckGroup).ExtendBaseWidget", Argsn: 2, @@ -71305,6 +84338,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.CheckGroup)//hidden!": { Doc: "Set *widget.CheckGroup Hidden value", Argsn: 2, @@ -71339,6 +84376,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.CheckGroup)//hidden?": { Doc: "Get *widget.CheckGroup Hidden value", Argsn: 1, @@ -71367,6 +84406,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) "Go(*widget.CheckGroup)//hide": { Doc: "(*widget.CheckGroup).Hide", Argsn: 1, @@ -71394,6 +84435,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * horizontal - bool + // Result: + // * bool "Go(*widget.CheckGroup)//horizontal!": { Doc: "Set *widget.CheckGroup Horizontal value", Argsn: 2, @@ -71428,6 +84473,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.CheckGroup)//horizontal?": { Doc: "Get *widget.CheckGroup Horizontal value", Argsn: 1, @@ -71456,6 +84503,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * Go(fyne.Size) "Go(*widget.CheckGroup)//min-size": { Doc: "(*widget.CheckGroup).MinSize", Argsn: 1, @@ -71485,6 +84538,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // * pos - Go(fyne.Position) "Go(*widget.CheckGroup)//move": { Doc: "(*widget.CheckGroup).Move", Argsn: 2, @@ -71525,6 +84581,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-changed - fn { block[string] } + // Result: + // * fn { block[string] } "Go(*widget.CheckGroup)//on-changed!": { Doc: "Set *widget.CheckGroup OnChanged value", Argsn: 2, @@ -71582,6 +84642,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { block[string] } "Go(*widget.CheckGroup)//on-changed?": { Doc: "Get *widget.CheckGroup OnChanged value", Argsn: 1, @@ -71612,8 +84674,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.CheckGroup)//on-changed?: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -71635,6 +84698,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * options - block[string] + // Result: + // * block[string] "Go(*widget.CheckGroup)//options!": { Doc: "Set *widget.CheckGroup Options value", Argsn: 2, @@ -71663,8 +84730,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] if vc, ok := it.(env.String); ok { - newVal[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.CheckGroup)//options!: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -71684,6 +84752,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[string] "Go(*widget.CheckGroup)//options?": { Doc: "Get *widget.CheckGroup Options value", Argsn: 1, @@ -71718,6 +84788,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * Go(fyne.position) "Go(*widget.CheckGroup)//position": { Doc: "(*widget.CheckGroup).Position", Argsn: 1, @@ -71747,6 +84821,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh causes this widget to be redrawn in it's current state. + // + // Implements: fyne.CanvasObject + // + // Args: + // * recv - Go(*widget.CheckGroup) "Go(*widget.CheckGroup)//refresh": { Doc: "(*widget.CheckGroup).Refresh", Argsn: 1, @@ -71774,6 +84854,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // remove removes the first occurrence of the specified option found from a CheckGroup widget. + // Return true if an option was removed. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*widget.CheckGroup) + // * option - string + // Result: + // * bool "Go(*widget.CheckGroup)//remove": { Doc: "(*widget.CheckGroup).Remove", Argsn: 2, @@ -71810,6 +84900,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * required - bool + // Result: + // * bool "Go(*widget.CheckGroup)//required!": { Doc: "Set *widget.CheckGroup Required value", Argsn: 2, @@ -71844,6 +84938,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.CheckGroup)//required?": { Doc: "Get *widget.CheckGroup Required value", Argsn: 1, @@ -71872,6 +84968,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // * size - Go(fyne.Size) "Go(*widget.CheckGroup)//resize": { Doc: "(*widget.CheckGroup).Resize", Argsn: 2, @@ -71912,6 +85011,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * selected - block[string] + // Result: + // * block[string] "Go(*widget.CheckGroup)//selected!": { Doc: "Set *widget.CheckGroup Selected value", Argsn: 2, @@ -71940,8 +85043,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] if vc, ok := it.(env.String); ok { - newVal[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.CheckGroup)//selected!: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -71961,6 +85065,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[string] "Go(*widget.CheckGroup)//selected?": { Doc: "Get *widget.CheckGroup Selected value", Argsn: 1, @@ -71995,6 +85101,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-selected sets the checked options, it can be used to set a default option. + // + // Args: + // * recv - Go(*widget.CheckGroup) + // * options - block[string] "Go(*widget.CheckGroup)//set-selected": { Doc: "(*widget.CheckGroup).SetSelected", Argsn: 2, @@ -72023,8 +85134,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.String); ok { - arg1Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.CheckGroup)//set-selected: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -72044,6 +85156,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.CheckGroup) "Go(*widget.CheckGroup)//show": { Doc: "(*widget.CheckGroup).Show", Argsn: 1, @@ -72071,6 +85185,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * Go(fyne.size) "Go(*widget.CheckGroup)//size": { Doc: "(*widget.CheckGroup).Size", Argsn: 1, @@ -72100,6 +85218,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * Go(fyne.theme) + "Go(*widget.CheckGroup)//theme": { + Doc: "(*widget.CheckGroup).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.CheckGroup + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.CheckGroup); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.CheckGroup)//theme: arg 1: " + "expected native of type *widget.CheckGroup, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.CheckGroup)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.CheckGroup)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.CheckGroup) + // Result: + // * bool "Go(*widget.CheckGroup)//visible": { Doc: "(*widget.CheckGroup).Visible", Argsn: 1, @@ -72129,6 +85284,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // background-color is the color a cell should use for the background. + // + // Args: + // * recv - Go(*widget.CustomTextGridStyle) + // Result: + // * Go(color.Color) "Go(*widget.CustomTextGridStyle)//background-color": { Doc: "(*widget.CustomTextGridStyle).BackgroundColor", Argsn: 1, @@ -72158,6 +85319,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * bg-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*widget.CustomTextGridStyle)//bg-color!": { Doc: "Set *widget.CustomTextGridStyle BGColor value", Argsn: 2, @@ -72198,6 +85363,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*widget.CustomTextGridStyle)//bg-color?": { Doc: "Get *widget.CustomTextGridStyle BGColor value", Argsn: 1, @@ -72226,6 +85393,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * fg-color - Go(color.Color) + // Result: + // * Go(color.Color) "Go(*widget.CustomTextGridStyle)//fg-color!": { Doc: "Set *widget.CustomTextGridStyle FGColor value", Argsn: 2, @@ -72266,6 +85437,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(color.Color) "Go(*widget.CustomTextGridStyle)//fg-color?": { Doc: "Get *widget.CustomTextGridStyle FGColor value", Argsn: 1, @@ -72294,6 +85467,47 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // style is the text style a cell should use. + // + // Args: + // * recv - Go(*widget.CustomTextGridstyle) + // Result: + // * Go(fyne.Textstyle) + "Go(*widget.CustomTextGridStyle)//style": { + Doc: "(*widget.CustomTextGridStyle).Style", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.CustomTextGridStyle + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.CustomTextGridStyle); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//style: arg 1: " + "expected native of type *widget.CustomTextGridStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//style: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//style: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Style() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.TextStyle)") + return res0Obj + }, + }, + // text-color is the color a cell should use for the text. + // + // Args: + // * recv - Go(*widget.CustomTextGridStyle) + // Result: + // * Go(color.Color) "Go(*widget.CustomTextGridStyle)//text-color": { Doc: "(*widget.CustomTextGridStyle).TextColor", Argsn: 1, @@ -72323,6 +85537,90 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) + "Go(*widget.CustomTextGridStyle)//text-style!": { + Doc: "Set *widget.CustomTextGridStyle TextStyle value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.CustomTextGridStyle + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.CustomTextGridStyle); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style!: arg 1: " + "expected native of type *widget.CustomTextGridStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal *fyne.TextStyle + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.TextStyle); ok { + newVal = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style!: arg 2: " + "expected native of type *fyne.TextStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style!: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + newVal = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style!: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + self.TextStyle = *newVal + return arg0 + }, + }, + // Result: + // * Go(fyne.TextStyle) + "Go(*widget.CustomTextGridStyle)//text-style?": { + Doc: "Get *widget.CustomTextGridStyle TextStyle value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.CustomTextGridStyle + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.CustomTextGridStyle); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style?: arg 1: " + "expected native of type *widget.CustomTextGridStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.CustomTextGridStyle)//text-style?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewNative(ps.Idx, &self.TextStyle, "Go(*fyne.TextStyle)") + return resObj + }, + }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.DisableableWidget)//base-widget!": { Doc: "Set *widget.DisableableWidget BaseWidget value", Argsn: 2, @@ -72369,6 +85667,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.DisableableWidget)//base-widget?": { Doc: "Get *widget.DisableableWidget BaseWidget value", Argsn: 1, @@ -72397,6 +85697,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // disable this widget so that it cannot be interacted with, updating any style appropriately. + // + // Args: + // * recv - Go(*widget.disableableWidget) "Go(*widget.DisableableWidget)//disable": { Doc: "(*widget.DisableableWidget).Disable", Argsn: 1, @@ -72424,6 +85728,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // disabled returns true if this widget is currently disabled or false if it can currently be interacted with. + // + // Args: + // * recv - Go(*widget.DisableableWidget) + // Result: + // * bool "Go(*widget.DisableableWidget)//disabled": { Doc: "(*widget.DisableableWidget).Disabled", Argsn: 1, @@ -72453,6 +85763,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // enable this widget, updating any style or features appropriately. + // + // Args: + // * recv - Go(*widget.DisableableWidget) "Go(*widget.DisableableWidget)//enable": { Doc: "(*widget.DisableableWidget).Enable", Argsn: 1, @@ -72480,6 +85794,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // * wid - Go(fyne.Widget) "Go(*widget.DisableableWidget)//extend-base-widget": { Doc: "(*widget.DisableableWidget).ExtendBaseWidget", Argsn: 2, @@ -72533,6 +85850,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.DisableableWidget)//hidden!": { Doc: "Set *widget.DisableableWidget Hidden value", Argsn: 2, @@ -72567,6 +85888,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.DisableableWidget)//hidden?": { Doc: "Get *widget.DisableableWidget Hidden value", Argsn: 1, @@ -72595,6 +85918,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) "Go(*widget.DisableableWidget)//hide": { Doc: "(*widget.DisableableWidget).Hide", Argsn: 1, @@ -72622,6 +85947,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // Result: + // * Go(fyne.Size) "Go(*widget.DisableableWidget)//min-size": { Doc: "(*widget.DisableableWidget).MinSize", Argsn: 1, @@ -72651,6 +85980,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // * pos - Go(fyne.Position) "Go(*widget.DisableableWidget)//move": { Doc: "(*widget.DisableableWidget).Move", Argsn: 2, @@ -72691,6 +86023,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // Result: + // * Go(fyne.position) "Go(*widget.DisableableWidget)//position": { Doc: "(*widget.DisableableWidget).Position", Argsn: 1, @@ -72720,6 +86056,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) "Go(*widget.DisableableWidget)//refresh": { Doc: "(*widget.DisableableWidget).Refresh", Argsn: 1, @@ -72747,6 +86085,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // * size - Go(fyne.Size) "Go(*widget.DisableableWidget)//resize": { Doc: "(*widget.DisableableWidget).Resize", Argsn: 2, @@ -72787,6 +86128,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) "Go(*widget.DisableableWidget)//show": { Doc: "(*widget.DisableableWidget).Show", Argsn: 1, @@ -72814,6 +86157,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // Result: + // * Go(fyne.size) "Go(*widget.DisableableWidget)//size": { Doc: "(*widget.DisableableWidget).Size", Argsn: 1, @@ -72843,6 +86190,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // Result: + // * Go(fyne.theme) + "Go(*widget.DisableableWidget)//theme": { + Doc: "(*widget.DisableableWidget).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.DisableableWidget + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.DisableableWidget); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.DisableableWidget)//theme: arg 1: " + "expected native of type *widget.DisableableWidget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.DisableableWidget)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.DisableableWidget)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.DisableableWidget) + // Result: + // * bool "Go(*widget.DisableableWidget)//visible": { Doc: "(*widget.DisableableWidget).Visible", Argsn: 1, @@ -72872,6 +86256,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // accepts-tab returns if Entry accepts the Tab key or not. + // + // Implements: fyne.Tabbable + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * bool "Go(*widget.Entry)//accepts-tab": { Doc: "(*widget.Entry).AcceptsTab", Argsn: 1, @@ -72901,6 +86295,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * action-item - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.Entry)//action-item!": { Doc: "Set *widget.Entry ActionItem value", Argsn: 2, @@ -72954,6 +86352,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.Entry)//action-item?": { Doc: "Get *widget.Entry ActionItem value", Argsn: 1, @@ -72982,6 +86382,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // append appends the text to the end of the entry. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Entry) + // * text - string "Go(*widget.Entry)//append": { Doc: "(*widget.Entry).Append", Argsn: 2, @@ -73016,6 +86423,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Entry)//base-widget!": { Doc: "Set *widget.Entry BaseWidget value", Argsn: 2, @@ -73062,6 +86473,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Entry)//base-widget?": { Doc: "Get *widget.Entry BaseWidget value", Argsn: 1, @@ -73090,6 +86503,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // bind connects the specified data source to this Entry. + // The current value will be displayed and any changes in the data will cause the widget to update. + // User interactions with this Entry will set the value into the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Entry) + // * data - Go(binding.String) "Go(*widget.Entry)//bind": { Doc: "(*widget.Entry).Bind", Argsn: 2, @@ -73143,6 +86565,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Entry)//create-renderer": { Doc: "(*widget.Entry).CreateRenderer", Argsn: 1, @@ -73172,6 +86602,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // cursor returns the cursor type of this widget + // + // Implements: desktop.cursorable + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * Go(desktop.cursor) "Go(*widget.Entry)//cursor": { Doc: "(*widget.Entry).Cursor", Argsn: 1, @@ -73201,6 +86639,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * cursor-column - integer + // Result: + // * integer "Go(*widget.Entry)//cursor-column!": { Doc: "Set *widget.Entry CursorColumn value", Argsn: 2, @@ -73235,6 +86677,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Entry)//cursor-column?": { Doc: "Get *widget.Entry CursorColumn value", Argsn: 1, @@ -73263,6 +86707,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * cursor-row - integer + // Result: + // * integer "Go(*widget.Entry)//cursor-row!": { Doc: "Set *widget.Entry CursorRow value", Argsn: 2, @@ -73297,6 +86745,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Entry)//cursor-row?": { Doc: "Get *widget.Entry CursorRow value", Argsn: 1, @@ -73325,6 +86775,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // disable this widget so that it cannot be interacted with, updating any style appropriately. + // + // Implements: fyne.disableable + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//disable": { Doc: "(*widget.Entry).Disable", Argsn: 1, @@ -73352,6 +86808,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Entry)//disableable-widget!": { Doc: "Set *widget.Entry DisableableWidget value", Argsn: 2, @@ -73398,6 +86858,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Entry)//disableable-widget?": { Doc: "Get *widget.Entry DisableableWidget value", Argsn: 1, @@ -73426,6 +86888,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // disabled returns whether the entry is disabled or read-only. + // + // Implements: fyne.Disableable + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * bool "Go(*widget.Entry)//disabled": { Doc: "(*widget.Entry).Disabled", Argsn: 1, @@ -73455,6 +86925,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // double-tapped is called when this entry has been double tapped so we should select text below the pointer + // + // Implements: fyne.DoubleTappable + // + // Args: + // * recv - Go(*widget.Entry) + // * p - Go(*fyne.PointEvent) "Go(*widget.Entry)//double-tapped": { Doc: "(*widget.Entry).DoubleTapped", Argsn: 2, @@ -73501,6 +86978,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // drag-end is called at end of a drag event. + // + // Implements: fyne.Draggable + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//drag-end": { Doc: "(*widget.Entry).DragEnd", Argsn: 1, @@ -73528,6 +87011,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // dragged is called when the pointer moves while a button is held down. + // It updates the selection accordingly. + // + // Implements: fyne.Draggable + // + // Args: + // * recv - Go(*widget.Entry) + // * d - Go(*fyne.DragEvent) "Go(*widget.Entry)//dragged": { Doc: "(*widget.Entry).Dragged", Argsn: 2, @@ -73574,6 +87065,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable this widget, updating any style or features appropriately. + // + // Implements: fyne.Disableable + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//enable": { Doc: "(*widget.Entry).Enable", Argsn: 1, @@ -73601,6 +87098,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // extend-base-widget is used by an extending widget to make use of BaseWidget functionality. + // + // Args: + // * recv - Go(*widget.Entry) + // * wid - Go(fyne.Widget) "Go(*widget.Entry)//extend-base-widget": { Doc: "(*widget.Entry).ExtendBaseWidget", Argsn: 2, @@ -73654,6 +87156,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called when the Entry has been given focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//focus-gained": { Doc: "(*widget.Entry).FocusGained", Argsn: 1, @@ -73681,6 +87189,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called when the Entry has had focus removed. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//focus-lost": { Doc: "(*widget.Entry).FocusLost", Argsn: 1, @@ -73708,6 +87222,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Entry)//hidden!": { Doc: "Set *widget.Entry Hidden value", Argsn: 2, @@ -73742,6 +87260,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Entry)//hidden?": { Doc: "Get *widget.Entry Hidden value", Argsn: 1, @@ -73770,6 +87290,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide hides the entry. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//hide": { Doc: "(*widget.Entry).Hide", Argsn: 1, @@ -73797,6 +87323,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // key-down handler for keypress events - used to store shift modifier state for text selection + // + // Implements: desktop.Keyable + // + // Args: + // * recv - Go(*widget.Entry) + // * key - Go(*fyne.KeyEvent) "Go(*widget.Entry)//key-down": { Doc: "(*widget.Entry).KeyDown", Argsn: 2, @@ -73843,6 +87376,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // key-up handler for key release events - used to reset shift modifier state for text selection + // + // Implements: desktop.Keyable + // + // Args: + // * recv - Go(*widget.Entry) + // * key - Go(*fyne.KeyEvent) "Go(*widget.Entry)//key-up": { Doc: "(*widget.Entry).KeyUp", Argsn: 2, @@ -73889,6 +87429,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // keyboard implements the keyboardable interface + // + // Implements: mobile.keyboardable + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * integer "Go(*widget.Entry)//keyboard": { Doc: "(*widget.Entry).Keyboard", Argsn: 1, @@ -73918,6 +87466,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // min-size returns the size that this widget should not shrink below. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * Go(fyne.Size) "Go(*widget.Entry)//min-size": { Doc: "(*widget.Entry).MinSize", Argsn: 1, @@ -73947,6 +87503,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mouse-down called on mouse click, this triggers a mouse click which can move the cursor, + // update the existing selection (if shift is held), or start a selection dragging operation. + // + // Implements: desktop.Mouseable + // + // Args: + // * recv - Go(*widget.Entry) + // * m - Go(*desktop.MouseEvent) "Go(*widget.Entry)//mouse-down": { Doc: "(*widget.Entry).MouseDown", Argsn: 2, @@ -73993,6 +87557,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-up called on mouse release + // If a mouse drag event has completed then check to see if it has resulted in an empty selection, + // if so, and if a text select key isn't held, then disable selecting + // + // Implements: desktop.Mouseable + // + // Args: + // * recv - Go(*widget.Entry) + // * m - Go(*desktop.MouseEvent) "Go(*widget.Entry)//mouse-up": { Doc: "(*widget.Entry).MouseUp", Argsn: 2, @@ -74039,6 +87612,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Entry) + // * pos - Go(fyne.Position) "Go(*widget.Entry)//move": { Doc: "(*widget.Entry).Move", Argsn: 2, @@ -74079,6 +87655,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * multi-line - bool + // Result: + // * bool "Go(*widget.Entry)//multi-line!": { Doc: "Set *widget.Entry MultiLine value", Argsn: 2, @@ -74113,6 +87693,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Entry)//multi-line?": { Doc: "Get *widget.Entry MultiLine value", Argsn: 1, @@ -74141,6 +87723,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-changed - fn { string } + // Result: + // * fn { string } "Go(*widget.Entry)//on-changed!": { Doc: "Set *widget.Entry OnChanged value", Argsn: 2, @@ -74192,6 +87778,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Entry)//on-changed?": { Doc: "Get *widget.Entry OnChanged value", Argsn: 1, @@ -74230,6 +87818,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-cursor-changed - fn { } + // Result: + // * fn { } "Go(*widget.Entry)//on-cursor-changed!": { Doc: "Set *widget.Entry OnCursorChanged value", Argsn: 2, @@ -74279,6 +87871,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.Entry)//on-cursor-changed?": { Doc: "Get *widget.Entry OnCursorChanged value", Argsn: 1, @@ -74310,6 +87904,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-submitted - fn { string } + // Result: + // * fn { string } "Go(*widget.Entry)//on-submitted!": { Doc: "Set *widget.Entry OnSubmitted value", Argsn: 2, @@ -74361,6 +87959,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Entry)//on-submitted?": { Doc: "Get *widget.Entry OnSubmitted value", Argsn: 1, @@ -74399,6 +87999,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * password - bool + // Result: + // * bool "Go(*widget.Entry)//password!": { Doc: "Set *widget.Entry Password value", Argsn: 2, @@ -74433,6 +88037,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Entry)//password?": { Doc: "Get *widget.Entry Password value", Argsn: 1, @@ -74461,6 +88067,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * place-holder - string + // Result: + // * string "Go(*widget.Entry)//place-holder!": { Doc: "Set *widget.Entry PlaceHolder value", Argsn: 2, @@ -74495,6 +88105,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Entry)//place-holder?": { Doc: "Get *widget.Entry PlaceHolder value", Argsn: 1, @@ -74523,6 +88135,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * Go(fyne.position) "Go(*widget.Entry)//position": { Doc: "(*widget.Entry).Position", Argsn: 1, @@ -74552,6 +88168,41 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // redo un-does the last undo action. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.Entry) + "Go(*widget.Entry)//redo": { + Doc: "(*widget.Entry).Redo", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Entry + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Entry); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//redo: arg 1: " + "expected native of type *widget.Entry, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//redo: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//redo: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Redo() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//refresh": { Doc: "(*widget.Entry).Refresh", Argsn: 1, @@ -74579,6 +88230,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Entry) + // * size - Go(fyne.Size) "Go(*widget.Entry)//resize": { Doc: "(*widget.Entry).Resize", Argsn: 2, @@ -74619,6 +88273,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text returns the text currently selected in this Entry. + // If there is no selection it will return the empty string. + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * string "Go(*widget.Entry)//selected-text": { Doc: "(*widget.Entry).SelectedText", Argsn: 1, @@ -74648,6 +88309,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // set-min-rows-visible forces a multi-line entry to show `count` number of rows without scrolling. + // This is not a validation or requirement, it just impacts the minimum visible size. + // Use this carefully as Fyne apps can run on small screens so you may wish to add a scroll container if + // this number is high. Default is 3. + // + // Since: 2.2 + // + // Args: + // * recv - Go(*widget.Entry) + // * count - integer "Go(*widget.Entry)//set-min-rows-visible": { Doc: "(*widget.Entry).SetMinRowsVisible", Argsn: 2, @@ -74682,6 +88353,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-on-validation-changed is intended for parent widgets or containers to hook into the validation. + // The function might be overwritten by a parent that cares about child validation (e.g. widget.Form). + // + // Args: + // * recv - Go(*widget.Entry) + // * callback - fn { Go(error) } "Go(*widget.Entry)//set-on-validation-changed": { Doc: "(*widget.Entry).SetOnValidationChanged", Argsn: 2, @@ -74735,6 +88412,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-place-holder sets the text that will be displayed if the entry is otherwise empty + // + // Args: + // * recv - Go(*widget.Entry) + // * text - string "Go(*widget.Entry)//set-place-holder": { Doc: "(*widget.Entry).SetPlaceHolder", Argsn: 2, @@ -74769,6 +88451,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text manually sets the text of the Entry to the given text value. + // Calling set-text resets all undo history. + // + // Args: + // * recv - Go(*widget.Entry) + // * text - string "Go(*widget.Entry)//set-text": { Doc: "(*widget.Entry).SetText", Argsn: 2, @@ -74803,6 +88491,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-validation-error manually updates the validation status until the next input change. + // + // Args: + // * recv - Go(*widget.Entry) + // * err - Go(error) "Go(*widget.Entry)//set-validation-error": { Doc: "(*widget.Entry).SetValidationError", Argsn: 2, @@ -74846,6 +88539,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//show": { Doc: "(*widget.Entry).Show", Argsn: 1, @@ -74873,6 +88568,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * Go(fyne.size) "Go(*widget.Entry)//size": { Doc: "(*widget.Entry).Size", Argsn: 1, @@ -74902,6 +88601,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tapped is called when this entry has been tapped. We update the cursor position in + // device-specific callbacks (MouseDown() and TouchDown()). + // + // Implements: fyne.Tappable + // + // Args: + // * recv - Go(*widget.Entry) + // * ev - Go(*fyne.PointEvent) "Go(*widget.Entry)//tapped": { Doc: "(*widget.Entry).Tapped", Argsn: 2, @@ -74948,6 +88655,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // tapped-secondary is called when right or alternative tap is invoked. + // + // Opens the PopUpMenu with `Paste` item to paste text from the clipboard. + // + // Implements: fyne.SecondaryTappable + // + // Args: + // * recv - Go(*widget.Entry) + // * pe - Go(*fyne.PointEvent) "Go(*widget.Entry)//tapped-secondary": { Doc: "(*widget.Entry).TappedSecondary", Argsn: 2, @@ -74994,6 +88710,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.Entry)//text!": { Doc: "Set *widget.Entry Text value", Argsn: 2, @@ -75028,6 +88748,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) "Go(*widget.Entry)//text-style!": { Doc: "Set *widget.Entry TextStyle value", Argsn: 2, @@ -75074,6 +88798,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.TextStyle) "Go(*widget.Entry)//text-style?": { Doc: "Get *widget.Entry TextStyle value", Argsn: 1, @@ -75102,6 +88828,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "Go(*widget.Entry)//text?": { Doc: "Get *widget.Entry Text value", Argsn: 1, @@ -75130,6 +88858,48 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * Go(fyne.theme) + "Go(*widget.Entry)//theme": { + Doc: "(*widget.Entry).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Entry + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Entry); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//theme: arg 1: " + "expected native of type *widget.Entry, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // touch-cancel is called when this entry gets a touch cancel event on mobile device (app was removed from focus). + // + // Since: 2.1 + // + // Implements: mobile.Touchable + // + // Args: + // * recv - Go(*widget.Entry) + // * 1 - Go(*mobile.TouchEvent) "Go(*widget.Entry)//touch-cancel": { Doc: "(*widget.Entry).TouchCancel", Argsn: 2, @@ -75176,6 +88946,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // touch-down is called when this entry gets a touch down event on mobile device, we ensure we have focus. + // + // Since: 2.1 + // + // Implements: mobile.Touchable + // + // Args: + // * recv - Go(*widget.Entry) + // * ev - Go(*mobile.TouchEvent) "Go(*widget.Entry)//touch-down": { Doc: "(*widget.Entry).TouchDown", Argsn: 2, @@ -75222,6 +89001,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // touch-up is called when this entry gets a touch up event on mobile device. + // + // Since: 2.1 + // + // Implements: mobile.Touchable + // + // Args: + // * recv - Go(*widget.Entry) + // * 1 - Go(*mobile.TouchEvent) "Go(*widget.Entry)//touch-up": { Doc: "(*widget.Entry).TouchUp", Argsn: 2, @@ -75268,6 +89056,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-key receives key input events when the Entry widget is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Entry) + // * key - Go(*fyne.KeyEvent) "Go(*widget.Entry)//typed-key": { Doc: "(*widget.Entry).TypedKey", Argsn: 2, @@ -75314,6 +89109,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune receives text input events when the Entry widget is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Entry) + // * r - Go(rune) "Go(*widget.Entry)//typed-rune": { Doc: "(*widget.Entry).TypedRune", Argsn: 2, @@ -75354,6 +89156,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-shortcut implements the Shortcutable interface + // + // Implements: fyne.Shortcutable + // + // Args: + // * recv - Go(*widget.Entry) + // * shortcut - Go(fyne.Shortcut) "Go(*widget.Entry)//typed-shortcut": { Doc: "(*widget.Entry).TypedShortcut", Argsn: 2, @@ -75407,6 +89216,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unbind disconnects any configured data source from this Entry. + // The current value will remain at the last value of the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Entry) "Go(*widget.Entry)//unbind": { Doc: "(*widget.Entry).Unbind", Argsn: 1, @@ -75434,6 +89250,45 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // undo un-does the last modifying user-action. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.Entry) + "Go(*widget.Entry)//undo": { + Doc: "(*widget.Entry).Undo", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Entry + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Entry); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//undo: arg 1: " + "expected native of type *widget.Entry, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//undo: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Entry)//undo: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Undo() + return arg0 + }, + }, + // validate validates the current text in the widget. + // + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * error "Go(*widget.Entry)//validate": { Doc: "(*widget.Entry).Validate", Argsn: 1, @@ -75469,6 +89324,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * validator - fn { string } -> Go(error) + // Result: + // * fn { string } -> Go(error) "Go(*widget.Entry)//validator!": { Doc: "Set *widget.Entry Validator value", Argsn: 2, @@ -75561,6 +89420,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } -> Go(error) "Go(*widget.Entry)//validator?": { Doc: "Get *widget.Entry Validator value", Argsn: 1, @@ -75607,6 +89468,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Entry) + // Result: + // * bool "Go(*widget.Entry)//visible": { Doc: "(*widget.Entry).Visible", Argsn: 1, @@ -75636,6 +89501,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * wrapping - integer + // Result: + // * integer "Go(*widget.Entry)//wrapping!": { Doc: "Set *widget.Entry Wrapping value", Argsn: 2, @@ -75684,6 +89553,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Entry)//wrapping?": { Doc: "Get *widget.Entry Wrapping value", Argsn: 1, @@ -75712,6 +89583,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.FileIcon)//base-widget!": { Doc: "Set *widget.FileIcon BaseWidget value", Argsn: 2, @@ -75758,6 +89633,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.FileIcon)//base-widget?": { Doc: "Get *widget.FileIcon BaseWidget value", Argsn: 1, @@ -75786,6 +89663,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.FileIcon) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.FileIcon)//create-renderer": { Doc: "(*widget.FileIcon).CreateRenderer", Argsn: 1, @@ -75815,6 +89698,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // * wid - Go(fyne.Widget) "Go(*widget.FileIcon)//extend-base-widget": { Doc: "(*widget.FileIcon).ExtendBaseWidget", Argsn: 2, @@ -75868,6 +89754,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.FileIcon)//hidden!": { Doc: "Set *widget.FileIcon Hidden value", Argsn: 2, @@ -75902,6 +89792,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.FileIcon)//hidden?": { Doc: "Get *widget.FileIcon Hidden value", Argsn: 1, @@ -75930,6 +89822,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.FileIcon) "Go(*widget.FileIcon)//hide": { Doc: "(*widget.FileIcon).Hide", Argsn: 1, @@ -75957,6 +89851,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.FileIcon) + // Result: + // * Go(fyne.Size) "Go(*widget.FileIcon)//min-size": { Doc: "(*widget.FileIcon).MinSize", Argsn: 1, @@ -75986,6 +89886,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // * pos - Go(fyne.Position) "Go(*widget.FileIcon)//move": { Doc: "(*widget.FileIcon).Move", Argsn: 2, @@ -76026,6 +89929,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // Result: + // * Go(fyne.position) "Go(*widget.FileIcon)//position": { Doc: "(*widget.FileIcon).Position", Argsn: 1, @@ -76055,6 +89962,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.FileIcon) "Go(*widget.FileIcon)//refresh": { Doc: "(*widget.FileIcon).Refresh", Argsn: 1, @@ -76082,6 +89991,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // * size - Go(fyne.Size) "Go(*widget.FileIcon)//resize": { Doc: "(*widget.FileIcon).Resize", Argsn: 2, @@ -76122,6 +90034,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * selected - bool + // Result: + // * bool "Go(*widget.FileIcon)//selected!": { Doc: "Set *widget.FileIcon Selected value", Argsn: 2, @@ -76156,6 +90072,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.FileIcon)//selected?": { Doc: "Get *widget.FileIcon Selected value", Argsn: 1, @@ -76184,6 +90102,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-selected makes the file look like it is selected. + // + // Deprecated: Selection is now handled externally. + // + // Args: + // * recv - Go(*widget.FileIcon) + // * selected - bool "Go(*widget.FileIcon)//set-selected": { Doc: "(*widget.FileIcon).SetSelected", Argsn: 2, @@ -76218,6 +90143,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-uri changes the URI and makes the icon reflect a different file + // + // Args: + // * recv - Go(*widget.FileIcon) + // * uri - Go(fyne.URI) "Go(*widget.FileIcon)//set-uri": { Doc: "(*widget.FileIcon).SetURI", Argsn: 2, @@ -76271,6 +90201,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.FileIcon) "Go(*widget.FileIcon)//show": { Doc: "(*widget.FileIcon).Show", Argsn: 1, @@ -76298,6 +90230,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // Result: + // * Go(fyne.size) "Go(*widget.FileIcon)//size": { Doc: "(*widget.FileIcon).Size", Argsn: 1, @@ -76327,6 +90263,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // Result: + // * Go(fyne.theme) + "Go(*widget.FileIcon)//theme": { + Doc: "(*widget.FileIcon).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.FileIcon + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.FileIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.FileIcon)//theme: arg 1: " + "expected native of type *widget.FileIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.FileIcon)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.FileIcon)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * uri - Go(fyne.URI) + // Result: + // * Go(fyne.URI) "Go(*widget.FileIcon)//uri!": { Doc: "Set *widget.FileIcon URI value", Argsn: 2, @@ -76380,6 +90353,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.URI) "Go(*widget.FileIcon)//uri?": { Doc: "Get *widget.FileIcon URI value", Argsn: 1, @@ -76408,6 +90383,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.FileIcon) + // Result: + // * bool "Go(*widget.FileIcon)//visible": { Doc: "(*widget.FileIcon).Visible", Argsn: 1, @@ -76437,6 +90416,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // append adds a new row to the form, using the text as a label next to the specified Widget + // + // Args: + // * recv - Go(*widget.Form) + // * text - string + // * widget - Go(fyne.CanvasObject) "Go(*widget.Form)//append": { Doc: "(*widget.Form).Append", Argsn: 3, @@ -76497,6 +90482,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // append-item adds the specified row to the end of the Form + // + // Args: + // * recv - Go(*widget.Form) + // * item - Go(*widget.FormItem) "Go(*widget.Form)//append-item": { Doc: "(*widget.Form).AppendItem", Argsn: 2, @@ -76543,6 +90533,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Form)//base-widget!": { Doc: "Set *widget.Form BaseWidget value", Argsn: 2, @@ -76589,6 +90583,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Form)//base-widget?": { Doc: "Get *widget.Form BaseWidget value", Argsn: 1, @@ -76617,6 +90613,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * cancel-text - string + // Result: + // * string "Go(*widget.Form)//cancel-text!": { Doc: "Set *widget.Form CancelText value", Argsn: 2, @@ -76651,6 +90651,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Form)//cancel-text?": { Doc: "Get *widget.Form CancelText value", Argsn: 1, @@ -76679,6 +90681,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Form) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Form)//create-renderer": { Doc: "(*widget.Form).CreateRenderer", Argsn: 1, @@ -76708,6 +90716,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disable disables submitting this form. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Form) "Go(*widget.Form)//disable": { Doc: "(*widget.Form).Disable", Argsn: 1, @@ -76735,6 +90749,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // disabled returns whether submitting the form is disabled. + // Note that, if the form fails validation, the submit button may be + // disabled even if this method returns true. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Form) + // Result: + // * bool "Go(*widget.Form)//disabled": { Doc: "(*widget.Form).Disabled", Argsn: 1, @@ -76764,6 +90788,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // enable enables submitting this form. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Form) "Go(*widget.Form)//enable": { Doc: "(*widget.Form).Enable", Argsn: 1, @@ -76791,6 +90821,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Form) + // * wid - Go(fyne.Widget) "Go(*widget.Form)//extend-base-widget": { Doc: "(*widget.Form).ExtendBaseWidget", Argsn: 2, @@ -76844,6 +90877,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Form)//hidden!": { Doc: "Set *widget.Form Hidden value", Argsn: 2, @@ -76878,6 +90915,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Form)//hidden?": { Doc: "Get *widget.Form Hidden value", Argsn: 1, @@ -76906,6 +90945,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Form) "Go(*widget.Form)//hide": { Doc: "(*widget.Form).Hide", Argsn: 1, @@ -76933,6 +90974,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(*widget.FormItem)] + // Result: + // * block[Go(*widget.FormItem)] "Go(*widget.Form)//items!": { Doc: "Set *widget.Form Items value", Argsn: 2, @@ -76961,10 +91006,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]*widget.FormItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*widget.FormItem); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.Form)//items!: arg 2: " + "block item: " + "expected native of type *widget.FormItem, but got " + objectDebugString(ps.Idx, v)) @@ -76974,7 +91020,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.Form)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.Form)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -76994,6 +91040,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(*widget.FormItem)] "Go(*widget.Form)//items?": { Doc: "Get *widget.Form Items value", Argsn: 1, @@ -77028,6 +91076,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Form) + // Result: + // * Go(fyne.Size) "Go(*widget.Form)//min-size": { Doc: "(*widget.Form).MinSize", Argsn: 1, @@ -77057,6 +91111,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Form) + // * pos - Go(fyne.Position) "Go(*widget.Form)//move": { Doc: "(*widget.Form).Move", Argsn: 2, @@ -77097,6 +91154,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-cancel - fn { } + // Result: + // * fn { } "Go(*widget.Form)//on-cancel!": { Doc: "Set *widget.Form OnCancel value", Argsn: 2, @@ -77146,6 +91207,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.Form)//on-cancel?": { Doc: "Get *widget.Form OnCancel value", Argsn: 1, @@ -77177,6 +91240,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-submit - fn { } + // Result: + // * fn { } "Go(*widget.Form)//on-submit!": { Doc: "Set *widget.Form OnSubmit value", Argsn: 2, @@ -77226,6 +91293,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.Form)//on-submit?": { Doc: "Get *widget.Form OnSubmit value", Argsn: 1, @@ -77257,6 +91326,92 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * orientation - integer + // Result: + // * integer + "Go(*widget.Form)//orientation!": { + Doc: "Set *widget.Form Orientation value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Form + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Form); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation!: arg 1: " + "expected native of type *widget.Form, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal widget.Orientation + { + nat, natOk := arg1.(env.Native) + var natValOk bool + var natVal widget.Orientation + if natOk { + natVal, natValOk = nat.Value.(widget.Orientation) + } + if natValOk { + newVal = natVal + } else { + var u int + if vc, ok := arg1.(env.Integer); ok { + u = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + newVal = widget.Orientation(u) + } + } + self.Orientation = newVal + return arg0 + }, + }, + // Result: + // * integer + "Go(*widget.Form)//orientation?": { + Doc: "Get *widget.Form Orientation value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Form + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Form); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation?: arg 1: " + "expected native of type *widget.Form, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//orientation?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(int64(int(self.Orientation))) + return resObj + }, + }, + // Args: + // * recv - Go(*widget.Form) + // Result: + // * Go(fyne.position) "Go(*widget.Form)//position": { Doc: "(*widget.Form).Position", Argsn: 1, @@ -77286,6 +91441,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh updates the widget state when requested. + // + // Args: + // * recv - Go(*widget.Form) "Go(*widget.Form)//refresh": { Doc: "(*widget.Form).Refresh", Argsn: 1, @@ -77313,6 +91472,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Form) + // * size - Go(fyne.Size) "Go(*widget.Form)//resize": { Doc: "(*widget.Form).Resize", Argsn: 2, @@ -77353,6 +91515,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-on-validation-changed is intended for parent widgets or containers to hook into the validation. + // The function might be overwritten by a parent that cares about child validation (e.g. widget.Form) + // + // Args: + // * recv - Go(*widget.Form) + // * callback - fn { Go(error) } "Go(*widget.Form)//set-on-validation-changed": { Doc: "(*widget.Form).SetOnValidationChanged", Argsn: 2, @@ -77406,6 +91574,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Form) "Go(*widget.Form)//show": { Doc: "(*widget.Form).Show", Argsn: 1, @@ -77433,6 +91603,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Form) + // Result: + // * Go(fyne.size) "Go(*widget.Form)//size": { Doc: "(*widget.Form).Size", Argsn: 1, @@ -77462,6 +91636,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * submit-text - string + // Result: + // * string "Go(*widget.Form)//submit-text!": { Doc: "Set *widget.Form SubmitText value", Argsn: 2, @@ -77496,6 +91674,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Form)//submit-text?": { Doc: "Get *widget.Form SubmitText value", Argsn: 1, @@ -77524,6 +91704,45 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Form) + // Result: + // * Go(fyne.theme) + "Go(*widget.Form)//theme": { + Doc: "(*widget.Form).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Form + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Form); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//theme: arg 1: " + "expected native of type *widget.Form, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Form)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // validate validates the entire form and returns the first error that is encountered. + // + // Args: + // * recv - Go(*widget.Form) + // Result: + // * error "Go(*widget.Form)//validate": { Doc: "(*widget.Form).Validate", Argsn: 1, @@ -77559,6 +91778,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Form) + // Result: + // * bool "Go(*widget.Form)//visible": { Doc: "(*widget.Form).Visible", Argsn: 1, @@ -77588,6 +91811,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * hint-text - string + // Result: + // * string "Go(*widget.FormItem)//hint-text!": { Doc: "Set *widget.FormItem HintText value", Argsn: 2, @@ -77622,6 +91849,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.FormItem)//hint-text?": { Doc: "Get *widget.FormItem HintText value", Argsn: 1, @@ -77650,6 +91879,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.FormItem)//text!": { Doc: "Set *widget.FormItem Text value", Argsn: 2, @@ -77684,6 +91917,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.FormItem)//text?": { Doc: "Get *widget.FormItem Text value", Argsn: 1, @@ -77712,6 +91947,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * widget - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.FormItem)//widget!": { Doc: "Set *widget.FormItem Widget value", Argsn: 2, @@ -77765,6 +92004,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.FormItem)//widget?": { Doc: "Get *widget.FormItem Widget value", Argsn: 1, @@ -77793,6 +92034,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.GridWrap)//base-widget!": { Doc: "Set *widget.GridWrap BaseWidget value", Argsn: 2, @@ -77839,6 +92084,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.GridWrap)//base-widget?": { Doc: "Get *widget.GridWrap BaseWidget value", Argsn: 1, @@ -77867,6 +92114,48 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // column-count returns the number of columns that are/will be shown + // in this GridWrap, based on the widget's current width. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * integer + "Go(*widget.GridWrap)//column-count": { + Doc: "(*widget.GridWrap).ColumnCount", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.GridWrap + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.GridWrap); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.GridWrap)//column-count: arg 1: " + "expected native of type *widget.GridWrap, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.GridWrap)//column-count: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.GridWrap)//column-count: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.ColumnCount() + var res0Obj env.Object + res0Obj = *env.NewInteger(int64(res0)) + return res0Obj + }, + }, + // Args: + // * create-item - fn { } -> Go(fyne.CanvasObject) + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.GridWrap)//create-item!": { Doc: "Set *widget.GridWrap CreateItem value", Argsn: 2, @@ -77963,6 +92252,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.GridWrap)//create-item?": { Doc: "Get *widget.GridWrap CreateItem value", Argsn: 1, @@ -77996,6 +92287,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer. + // + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.GridWrap)//create-renderer": { Doc: "(*widget.GridWrap).CreateRenderer", Argsn: 1, @@ -78025,6 +92322,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.GridWrap) + // * wid - Go(fyne.Widget) "Go(*widget.GridWrap)//extend-base-widget": { Doc: "(*widget.GridWrap).ExtendBaseWidget", Argsn: 2, @@ -78078,6 +92378,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called after this GridWrap has gained focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//focus-gained": { Doc: "(*widget.GridWrap).FocusGained", Argsn: 1, @@ -78105,6 +92411,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called after this GridWrap has lost focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//focus-lost": { Doc: "(*widget.GridWrap).FocusLost", Argsn: 1, @@ -78132,6 +92444,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // get-scroll-offset returns the current scroll offset position + // + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * decimal "Go(*widget.GridWrap)//get-scroll-offset": { Doc: "(*widget.GridWrap).GetScrollOffset", Argsn: 1, @@ -78161,6 +92479,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.GridWrap)//hidden!": { Doc: "Set *widget.GridWrap Hidden value", Argsn: 2, @@ -78195,6 +92517,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.GridWrap)//hidden?": { Doc: "Get *widget.GridWrap Hidden value", Argsn: 1, @@ -78223,6 +92547,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//hide": { Doc: "(*widget.GridWrap).Hide", Argsn: 1, @@ -78250,6 +92576,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * length - fn { } -> integer + // Result: + // * fn { } -> integer "Go(*widget.GridWrap)//length!": { Doc: "Set *widget.GridWrap Length value", Argsn: 2, @@ -78312,6 +92642,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> integer "Go(*widget.GridWrap)//length?": { Doc: "Get *widget.GridWrap Length value", Argsn: 1, @@ -78345,6 +92677,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below. + // + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * Go(fyne.Size) "Go(*widget.GridWrap)//min-size": { Doc: "(*widget.GridWrap).MinSize", Argsn: 1, @@ -78374,6 +92712,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.GridWrap) + // * pos - Go(fyne.Position) "Go(*widget.GridWrap)//move": { Doc: "(*widget.GridWrap).Move", Argsn: 2, @@ -78414,6 +92755,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-selected - fn { integer } + // Result: + // * fn { integer } "Go(*widget.GridWrap)//on-selected!": { Doc: "Set *widget.GridWrap OnSelected value", Argsn: 2, @@ -78465,6 +92810,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer } "Go(*widget.GridWrap)//on-selected?": { Doc: "Get *widget.GridWrap OnSelected value", Argsn: 1, @@ -78517,6 +92864,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-unselected - fn { integer } + // Result: + // * fn { integer } "Go(*widget.GridWrap)//on-unselected!": { Doc: "Set *widget.GridWrap OnUnselected value", Argsn: 2, @@ -78568,6 +92919,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer } "Go(*widget.GridWrap)//on-unselected?": { Doc: "Get *widget.GridWrap OnUnselected value", Argsn: 1, @@ -78620,6 +92973,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * Go(fyne.position) "Go(*widget.GridWrap)//position": { Doc: "(*widget.GridWrap).Position", Argsn: 1, @@ -78649,6 +93006,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//refresh": { Doc: "(*widget.GridWrap).Refresh", Argsn: 1, @@ -78676,6 +93035,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh-item refreshes a single item, specified by the item ID passed in. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.GridWrap) + // * id - integer "Go(*widget.GridWrap)//refresh-item": { Doc: "(*widget.GridWrap).RefreshItem", Argsn: 2, @@ -78724,6 +93090,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize is called when this GridWrap should change size. We refresh to ensure invisible items are drawn. + // + // Args: + // * recv - Go(*widget.GridWrap) + // * s - Go(fyne.Size) "Go(*widget.GridWrap)//resize": { Doc: "(*widget.GridWrap).Resize", Argsn: 2, @@ -78764,6 +93135,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to scrolls to the item represented by id + // + // Args: + // * recv - Go(*widget.GridWrap) + // * id - integer "Go(*widget.GridWrap)//scroll-to": { Doc: "(*widget.GridWrap).ScrollTo", Argsn: 2, @@ -78812,6 +93188,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-bottom scrolls to the end of the list + // + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//scroll-to-bottom": { Doc: "(*widget.GridWrap).ScrollToBottom", Argsn: 1, @@ -78839,6 +93219,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-offset scrolls the list to the given offset position + // + // Args: + // * recv - Go(*widget.GridWrap) + // * offset - decimal "Go(*widget.GridWrap)//scroll-to-offset": { Doc: "(*widget.GridWrap).ScrollToOffset", Argsn: 2, @@ -78873,6 +93258,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-top scrolls to the start of the list + // + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//scroll-to-top": { Doc: "(*widget.GridWrap).ScrollToTop", Argsn: 1, @@ -78900,6 +93289,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select adds the item identified by the given ID to the selection. + // + // Args: + // * recv - Go(*widget.GridWrap) + // * id - integer "Go(*widget.GridWrap)//select": { Doc: "(*widget.GridWrap).Select", Argsn: 2, @@ -78948,6 +93342,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//show": { Doc: "(*widget.GridWrap).Show", Argsn: 1, @@ -78975,6 +93371,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * Go(fyne.size) "Go(*widget.GridWrap)//size": { Doc: "(*widget.GridWrap).Size", Argsn: 1, @@ -79004,6 +93404,46 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * Go(fyne.theme) + "Go(*widget.GridWrap)//theme": { + Doc: "(*widget.GridWrap).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.GridWrap + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.GridWrap); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.GridWrap)//theme: arg 1: " + "expected native of type *widget.GridWrap, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.GridWrap)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.GridWrap)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // typed-key is called if a key event happens while this GridWrap is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.GridWrap) + // * event - Go(*fyne.KeyEvent) "Go(*widget.GridWrap)//typed-key": { Doc: "(*widget.GridWrap).TypedKey", Argsn: 2, @@ -79050,6 +93490,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is called if a text event happens while this GridWrap is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.GridWrap) + // * - - Go(rune) "Go(*widget.GridWrap)//typed-rune": { Doc: "(*widget.GridWrap).TypedRune", Argsn: 2, @@ -79090,6 +93537,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect removes the item identified by the given ID from the selection. + // + // Args: + // * recv - Go(*widget.GridWrap) + // * id - integer "Go(*widget.GridWrap)//unselect": { Doc: "(*widget.GridWrap).Unselect", Argsn: 2, @@ -79138,6 +93590,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect-all removes all items from the selection. + // + // Args: + // * recv - Go(*widget.GridWrap) "Go(*widget.GridWrap)//unselect-all": { Doc: "(*widget.GridWrap).UnselectAll", Argsn: 1, @@ -79165,6 +93621,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * update-item - fn { integer Go(fyne.CanvasObject) } + // Result: + // * fn { integer Go(fyne.CanvasObject) } "Go(*widget.GridWrap)//update-item!": { Doc: "Set *widget.GridWrap UpdateItem value", Argsn: 2, @@ -79217,6 +93677,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer Go(fyne.CanvasObject) } "Go(*widget.GridWrap)//update-item?": { Doc: "Get *widget.GridWrap UpdateItem value", Argsn: 1, @@ -79295,6 +93757,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.GridWrap) + // Result: + // * bool "Go(*widget.GridWrap)//visible": { Doc: "(*widget.GridWrap).Visible", Argsn: 1, @@ -79324,6 +93790,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.Hyperlink)//alignment!": { Doc: "Set *widget.Hyperlink Alignment value", Argsn: 2, @@ -79372,6 +93842,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Hyperlink)//alignment?": { Doc: "Get *widget.Hyperlink Alignment value", Argsn: 1, @@ -79400,6 +93872,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Hyperlink)//base-widget!": { Doc: "Set *widget.Hyperlink BaseWidget value", Argsn: 2, @@ -79446,6 +93922,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Hyperlink)//base-widget?": { Doc: "Get *widget.Hyperlink BaseWidget value", Argsn: 1, @@ -79474,6 +93952,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Hyperlink)//create-renderer": { Doc: "(*widget.Hyperlink).CreateRenderer", Argsn: 1, @@ -79503,6 +93987,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // cursor returns the cursor type of this widget + // + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * Go(desktop.cursor) "Go(*widget.Hyperlink)//cursor": { Doc: "(*widget.Hyperlink).Cursor", Argsn: 1, @@ -79532,6 +94022,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Hyperlink) + // * wid - Go(fyne.Widget) "Go(*widget.Hyperlink)//extend-base-widget": { Doc: "(*widget.Hyperlink).ExtendBaseWidget", Argsn: 2, @@ -79585,6 +94078,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is a hook called by the focus handling logic after this object gained the focus. + // + // Args: + // * recv - Go(*widget.Hyperlink) "Go(*widget.Hyperlink)//focus-gained": { Doc: "(*widget.Hyperlink).FocusGained", Argsn: 1, @@ -79612,6 +94109,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is a hook called by the focus handling logic after this object lost the focus. + // + // Args: + // * recv - Go(*widget.Hyperlink) "Go(*widget.Hyperlink)//focus-lost": { Doc: "(*widget.Hyperlink).FocusLost", Argsn: 1, @@ -79639,6 +94140,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Hyperlink)//hidden!": { Doc: "Set *widget.Hyperlink Hidden value", Argsn: 2, @@ -79673,6 +94178,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Hyperlink)//hidden?": { Doc: "Get *widget.Hyperlink Hidden value", Argsn: 1, @@ -79701,6 +94208,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Hyperlink) "Go(*widget.Hyperlink)//hide": { Doc: "(*widget.Hyperlink).Hide", Argsn: 1, @@ -79728,6 +94237,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the smallest size this widget can shrink to + // + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * Go(fyne.Size) "Go(*widget.Hyperlink)//min-size": { Doc: "(*widget.Hyperlink).MinSize", Argsn: 1, @@ -79757,6 +94272,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mouse-in is a hook that is called if the mouse pointer enters the element. + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * e - Go(*desktop.MouseEvent) "Go(*widget.Hyperlink)//mouse-in": { Doc: "(*widget.Hyperlink).MouseIn", Argsn: 2, @@ -79803,6 +94323,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-moved is a hook that is called if the mouse pointer moved over the element. + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * e - Go(*desktop.MouseEvent) "Go(*widget.Hyperlink)//mouse-moved": { Doc: "(*widget.Hyperlink).MouseMoved", Argsn: 2, @@ -79849,6 +94374,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-out is a hook that is called if the mouse pointer leaves the element. + // + // Args: + // * recv - Go(*widget.Hyperlink) "Go(*widget.Hyperlink)//mouse-out": { Doc: "(*widget.Hyperlink).MouseOut", Argsn: 1, @@ -79876,6 +94405,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Hyperlink) + // * pos - Go(fyne.Position) "Go(*widget.Hyperlink)//move": { Doc: "(*widget.Hyperlink).Move", Argsn: 2, @@ -79916,6 +94448,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-tapped - fn { } + // Result: + // * fn { } "Go(*widget.Hyperlink)//on-tapped!": { Doc: "Set *widget.Hyperlink OnTapped value", Argsn: 2, @@ -79965,6 +94501,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.Hyperlink)//on-tapped?": { Doc: "Get *widget.Hyperlink OnTapped value", Argsn: 1, @@ -79996,6 +94534,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * Go(fyne.position) "Go(*widget.Hyperlink)//position": { Doc: "(*widget.Hyperlink).Position", Argsn: 1, @@ -80025,6 +94567,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh triggers a redraw of the hyperlink. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Hyperlink) "Go(*widget.Hyperlink)//refresh": { Doc: "(*widget.Hyperlink).Refresh", Argsn: 1, @@ -80052,6 +94600,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for the hyperlink. + // Note this should not be used if the widget is being managed by a Layout within a Container. + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * size - Go(fyne.Size) "Go(*widget.Hyperlink)//resize": { Doc: "(*widget.Hyperlink).Resize", Argsn: 2, @@ -80092,6 +94646,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text sets the text of the hyperlink + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * text - string "Go(*widget.Hyperlink)//set-text": { Doc: "(*widget.Hyperlink).SetText", Argsn: 2, @@ -80126,6 +94685,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-url sets the URL of the hyperlink, taking in a URL type + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * url - *Go(url.URL) "Go(*widget.Hyperlink)//set-url": { Doc: "(*widget.Hyperlink).SetURL", Argsn: 2, @@ -80172,6 +94736,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-url-from-string sets the URL of the hyperlink, taking in a string type + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * str - string + // Result: + // * error "Go(*widget.Hyperlink)//set-url-from-string": { Doc: "(*widget.Hyperlink).SetURLFromString", Argsn: 2, @@ -80214,6 +94785,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Hyperlink) "Go(*widget.Hyperlink)//show": { Doc: "(*widget.Hyperlink).Show", Argsn: 1, @@ -80241,6 +94814,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * Go(fyne.size) "Go(*widget.Hyperlink)//size": { Doc: "(*widget.Hyperlink).Size", Argsn: 1, @@ -80270,6 +94847,93 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * size-name - string + // Result: + // * string + "Go(*widget.Hyperlink)//size-name!": { + Doc: "Set *widget.Hyperlink SizeName value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Hyperlink + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Hyperlink); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name!: arg 1: " + "expected native of type *widget.Hyperlink, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal fyne.ThemeSizeName + { + nat, natOk := arg1.(env.Native) + var natValOk bool + var natVal fyne.ThemeSizeName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeSizeName) + } + if natValOk { + newVal = natVal + } else { + var u string + if vc, ok := arg1.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name!: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + newVal = fyne.ThemeSizeName(u) + } + } + self.SizeName = newVal + return arg0 + }, + }, + // Result: + // * string + "Go(*widget.Hyperlink)//size-name?": { + Doc: "Get *widget.Hyperlink SizeName value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Hyperlink + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Hyperlink); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name?: arg 1: " + "expected native of type *widget.Hyperlink, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//size-name?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewString(string(self.SizeName)) + return resObj + }, + }, + // tapped is called when a pointer tapped event is captured and triggers any change handler + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * e - Go(*fyne.PointEvent) "Go(*widget.Hyperlink)//tapped": { Doc: "(*widget.Hyperlink).Tapped", Argsn: 2, @@ -80316,6 +94980,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.Hyperlink)//text!": { Doc: "Set *widget.Hyperlink Text value", Argsn: 2, @@ -80350,6 +95018,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) "Go(*widget.Hyperlink)//text-style!": { Doc: "Set *widget.Hyperlink TextStyle value", Argsn: 2, @@ -80396,6 +95068,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.TextStyle) "Go(*widget.Hyperlink)//text-style?": { Doc: "Get *widget.Hyperlink TextStyle value", Argsn: 1, @@ -80424,6 +95098,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "Go(*widget.Hyperlink)//text?": { Doc: "Get *widget.Hyperlink Text value", Argsn: 1, @@ -80452,6 +95128,126 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * Go(fyne.theme) + "Go(*widget.Hyperlink)//theme": { + Doc: "(*widget.Hyperlink).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Hyperlink + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Hyperlink); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//theme: arg 1: " + "expected native of type *widget.Hyperlink, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * truncation - integer + // Result: + // * integer + "Go(*widget.Hyperlink)//truncation!": { + Doc: "Set *widget.Hyperlink Truncation value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Hyperlink + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Hyperlink); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation!: arg 1: " + "expected native of type *widget.Hyperlink, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal fyne.TextTruncation + { + nat, natOk := arg1.(env.Native) + var natValOk bool + var natVal fyne.TextTruncation + if natOk { + natVal, natValOk = nat.Value.(fyne.TextTruncation) + } + if natValOk { + newVal = natVal + } else { + var u int + if vc, ok := arg1.(env.Integer); ok { + u = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + newVal = fyne.TextTruncation(u) + } + } + self.Truncation = newVal + return arg0 + }, + }, + // Result: + // * integer + "Go(*widget.Hyperlink)//truncation?": { + Doc: "Get *widget.Hyperlink Truncation value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Hyperlink + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Hyperlink); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation?: arg 1: " + "expected native of type *widget.Hyperlink, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Hyperlink)//truncation?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(int64(int(self.Truncation))) + return resObj + }, + }, + // typed-key is a hook called by the input handling logic on key events if this object is focused. + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * ev - Go(*fyne.KeyEvent) "Go(*widget.Hyperlink)//typed-key": { Doc: "(*widget.Hyperlink).TypedKey", Argsn: 2, @@ -80498,6 +95294,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is a hook called by the input handling logic on text input events if this object is focused. + // + // Args: + // * recv - Go(*widget.Hyperlink) + // * 1 - Go(rune) "Go(*widget.Hyperlink)//typed-rune": { Doc: "(*widget.Hyperlink).TypedRune", Argsn: 2, @@ -80538,6 +95339,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * url - *Go(url.URL) + // Result: + // * *Go(url.URL) "Go(*widget.Hyperlink)//url!": { Doc: "Set *widget.Hyperlink URL value", Argsn: 2, @@ -80584,6 +95389,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * *Go(url.URL) "Go(*widget.Hyperlink)//url?": { Doc: "Get *widget.Hyperlink URL value", Argsn: 1, @@ -80612,6 +95419,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Hyperlink) + // Result: + // * bool "Go(*widget.Hyperlink)//visible": { Doc: "(*widget.Hyperlink).Visible", Argsn: 1, @@ -80641,6 +95452,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * wrapping - integer + // Result: + // * integer "Go(*widget.Hyperlink)//wrapping!": { Doc: "Set *widget.Hyperlink Wrapping value", Argsn: 2, @@ -80689,6 +95504,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Hyperlink)//wrapping?": { Doc: "Get *widget.Hyperlink Wrapping value", Argsn: 1, @@ -80717,6 +95534,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.HyperlinkSegment)//alignment!": { Doc: "Set *widget.HyperlinkSegment Alignment value", Argsn: 2, @@ -80765,6 +95586,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.HyperlinkSegment)//alignment?": { Doc: "Get *widget.HyperlinkSegment Alignment value", Argsn: 1, @@ -80793,6 +95616,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // inline returns true as hyperlinks are inside other elements. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) + // Result: + // * bool "Go(*widget.HyperlinkSegment)//inline": { Doc: "(*widget.HyperlinkSegment).Inline", Argsn: 1, @@ -80822,6 +95651,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * on-tapped - fn { } + // Result: + // * fn { } "Go(*widget.HyperlinkSegment)//on-tapped!": { Doc: "Set *widget.HyperlinkSegment OnTapped value", Argsn: 2, @@ -80871,6 +95704,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.HyperlinkSegment)//on-tapped?": { Doc: "Get *widget.HyperlinkSegment OnTapped value", Argsn: 1, @@ -80902,6 +95737,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // select tells the segment that the user is selecting the content between the two positions. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) + // * begin - Go(fyne.Position) + // * end - Go(fyne.Position) "Go(*widget.HyperlinkSegment)//select": { Doc: "(*widget.HyperlinkSegment).Select", Argsn: 3, @@ -80955,6 +95796,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text should return the text representation of any content currently selected through the Select call. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) + // Result: + // * string "Go(*widget.HyperlinkSegment)//selected-text": { Doc: "(*widget.HyperlinkSegment).SelectedText", Argsn: 1, @@ -80984,6 +95831,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.HyperlinkSegment)//text!": { Doc: "Set *widget.HyperlinkSegment Text value", Argsn: 2, @@ -81018,6 +95869,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.HyperlinkSegment)//text?": { Doc: "Get *widget.HyperlinkSegment Text value", Argsn: 1, @@ -81046,6 +95899,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // textual returns the content of this segment rendered to plain text. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) + // Result: + // * string "Go(*widget.HyperlinkSegment)//textual": { Doc: "(*widget.HyperlinkSegment).Textual", Argsn: 1, @@ -81075,6 +95934,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // unselect tells the segment that the user is has cancelled the previous selection. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) "Go(*widget.HyperlinkSegment)//unselect": { Doc: "(*widget.HyperlinkSegment).Unselect", Argsn: 1, @@ -81102,6 +95965,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // update applies the current state of this hyperlink segment to an existing visual. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) + // * o - Go(fyne.CanvasObject) "Go(*widget.HyperlinkSegment)//update": { Doc: "(*widget.HyperlinkSegment).Update", Argsn: 2, @@ -81155,6 +96023,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * url - *Go(url.URL) + // Result: + // * *Go(url.URL) "Go(*widget.HyperlinkSegment)//url!": { Doc: "Set *widget.HyperlinkSegment URL value", Argsn: 2, @@ -81201,6 +96073,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * *Go(url.URL) "Go(*widget.HyperlinkSegment)//url?": { Doc: "Get *widget.HyperlinkSegment URL value", Argsn: 1, @@ -81229,6 +96103,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // visual returns the hyperlink widget required to render this segment. + // + // Args: + // * recv - Go(*widget.HyperlinkSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.HyperlinkSegment)//visual": { Doc: "(*widget.HyperlinkSegment).Visual", Argsn: 1, @@ -81258,6 +96138,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Icon)//base-widget!": { Doc: "Set *widget.Icon BaseWidget value", Argsn: 2, @@ -81304,6 +96188,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Icon)//base-widget?": { Doc: "Get *widget.Icon BaseWidget value", Argsn: 1, @@ -81332,6 +96218,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Icon) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Icon)//create-renderer": { Doc: "(*widget.Icon).CreateRenderer", Argsn: 1, @@ -81361,6 +96253,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Icon) + // * wid - Go(fyne.Widget) "Go(*widget.Icon)//extend-base-widget": { Doc: "(*widget.Icon).ExtendBaseWidget", Argsn: 2, @@ -81414,6 +96309,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Icon)//hidden!": { Doc: "Set *widget.Icon Hidden value", Argsn: 2, @@ -81448,6 +96347,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Icon)//hidden?": { Doc: "Get *widget.Icon Hidden value", Argsn: 1, @@ -81476,6 +96377,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Icon) "Go(*widget.Icon)//hide": { Doc: "(*widget.Icon).Hide", Argsn: 1, @@ -81503,6 +96406,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Icon) + // Result: + // * Go(fyne.Size) "Go(*widget.Icon)//min-size": { Doc: "(*widget.Icon).MinSize", Argsn: 1, @@ -81532,6 +96441,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Icon) + // * pos - Go(fyne.Position) "Go(*widget.Icon)//move": { Doc: "(*widget.Icon).Move", Argsn: 2, @@ -81572,6 +96484,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Icon) + // Result: + // * Go(fyne.position) "Go(*widget.Icon)//position": { Doc: "(*widget.Icon).Position", Argsn: 1, @@ -81601,6 +96517,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Icon) "Go(*widget.Icon)//refresh": { Doc: "(*widget.Icon).Refresh", Argsn: 1, @@ -81628,6 +96546,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Icon) + // * size - Go(fyne.Size) "Go(*widget.Icon)//resize": { Doc: "(*widget.Icon).Resize", Argsn: 2, @@ -81668,6 +96589,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * resource - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*widget.Icon)//resource!": { Doc: "Set *widget.Icon Resource value", Argsn: 2, @@ -81721,6 +96646,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Resource) "Go(*widget.Icon)//resource?": { Doc: "Get *widget.Icon Resource value", Argsn: 1, @@ -81749,6 +96676,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-resource updates the resource rendered in this icon widget + // + // Args: + // * recv - Go(*widget.Icon) + // * res - Go(fyne.Resource) "Go(*widget.Icon)//set-resource": { Doc: "(*widget.Icon).SetResource", Argsn: 2, @@ -81802,6 +96734,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Icon) "Go(*widget.Icon)//show": { Doc: "(*widget.Icon).Show", Argsn: 1, @@ -81829,6 +96763,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Icon) + // Result: + // * Go(fyne.size) "Go(*widget.Icon)//size": { Doc: "(*widget.Icon).Size", Argsn: 1, @@ -81858,6 +96796,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Icon) + // Result: + // * Go(fyne.theme) + "Go(*widget.Icon)//theme": { + Doc: "(*widget.Icon).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Icon + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Icon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Icon)//theme: arg 1: " + "expected native of type *widget.Icon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Icon)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Icon)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Icon) + // Result: + // * bool "Go(*widget.Icon)//visible": { Doc: "(*widget.Icon).Visible", Argsn: 1, @@ -81887,6 +96862,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.ImageSegment)//alignment!": { Doc: "Set *widget.ImageSegment Alignment value", Argsn: 2, @@ -81935,6 +96914,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.ImageSegment)//alignment?": { Doc: "Get *widget.ImageSegment Alignment value", Argsn: 1, @@ -81963,6 +96944,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // inline returns false as images in rich text are blocks. + // + // Args: + // * recv - Go(*widget.ImageSegment) + // Result: + // * bool "Go(*widget.ImageSegment)//inline": { Doc: "(*widget.ImageSegment).Inline", Argsn: 1, @@ -81992,6 +96979,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select tells the segment that the user is selecting the content between the two positions. + // + // Args: + // * recv - Go(*widget.ImageSegment) + // * begin - Go(fyne.Position) + // * end - Go(fyne.Position) "Go(*widget.ImageSegment)//select": { Doc: "(*widget.ImageSegment).Select", Argsn: 3, @@ -82045,6 +97038,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text should return the text representation of any content currently selected through the Select call. + // + // Args: + // * recv - Go(*widget.ImageSegment) + // Result: + // * string "Go(*widget.ImageSegment)//selected-text": { Doc: "(*widget.ImageSegment).SelectedText", Argsn: 1, @@ -82074,6 +97073,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * source - Go(fyne.URI) + // Result: + // * Go(fyne.URI) "Go(*widget.ImageSegment)//source!": { Doc: "Set *widget.ImageSegment Source value", Argsn: 2, @@ -82127,6 +97130,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.URI) "Go(*widget.ImageSegment)//source?": { Doc: "Get *widget.ImageSegment Source value", Argsn: 1, @@ -82155,6 +97160,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // textual returns the content of this segment rendered to plain text. + // + // Args: + // * recv - Go(*widget.ImageSegment) + // Result: + // * string "Go(*widget.ImageSegment)//textual": { Doc: "(*widget.ImageSegment).Textual", Argsn: 1, @@ -82184,6 +97195,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * title - string + // Result: + // * string "Go(*widget.ImageSegment)//title!": { Doc: "Set *widget.ImageSegment Title value", Argsn: 2, @@ -82218,6 +97233,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.ImageSegment)//title?": { Doc: "Get *widget.ImageSegment Title value", Argsn: 1, @@ -82246,6 +97263,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // unselect tells the segment that the user is has cancelled the previous selection. + // + // Args: + // * recv - Go(*widget.ImageSegment) "Go(*widget.ImageSegment)//unselect": { Doc: "(*widget.ImageSegment).Unselect", Argsn: 1, @@ -82273,6 +97294,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // update applies the current state of this image segment to an existing visual. + // + // Args: + // * recv - Go(*widget.ImageSegment) + // * o - Go(fyne.CanvasObject) "Go(*widget.ImageSegment)//update": { Doc: "(*widget.ImageSegment).Update", Argsn: 2, @@ -82326,6 +97352,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // visual returns the image widget required to render this segment. + // + // Args: + // * recv - Go(*widget.ImageSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.ImageSegment)//visual": { Doc: "(*widget.ImageSegment).Visual", Argsn: 1, @@ -82355,6 +97387,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.Label)//alignment!": { Doc: "Set *widget.Label Alignment value", Argsn: 2, @@ -82403,6 +97439,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Label)//alignment?": { Doc: "Get *widget.Label Alignment value", Argsn: 1, @@ -82431,6 +97469,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Label)//base-widget!": { Doc: "Set *widget.Label BaseWidget value", Argsn: 2, @@ -82477,6 +97519,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Label)//base-widget?": { Doc: "Get *widget.Label BaseWidget value", Argsn: 1, @@ -82505,6 +97549,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // bind connects the specified data source to this Label. + // The current value will be displayed and any changes in the data will cause the widget to update. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Label) + // * data - Go(binding.String) "Go(*widget.Label)//bind": { Doc: "(*widget.Label).Bind", Argsn: 2, @@ -82558,6 +97610,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Label) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Label)//create-renderer": { Doc: "(*widget.Label).CreateRenderer", Argsn: 1, @@ -82587,6 +97645,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Label) + // * wid - Go(fyne.Widget) "Go(*widget.Label)//extend-base-widget": { Doc: "(*widget.Label).ExtendBaseWidget", Argsn: 2, @@ -82640,6 +97701,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Label)//hidden!": { Doc: "Set *widget.Label Hidden value", Argsn: 2, @@ -82674,6 +97739,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Label)//hidden?": { Doc: "Get *widget.Label Hidden value", Argsn: 1, @@ -82702,6 +97769,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Label) "Go(*widget.Label)//hide": { Doc: "(*widget.Label).Hide", Argsn: 1, @@ -82729,6 +97798,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * importance - integer + // Result: + // * integer "Go(*widget.Label)//importance!": { Doc: "Set *widget.Label Importance value", Argsn: 2, @@ -82777,6 +97850,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Label)//importance?": { Doc: "Get *widget.Label Importance value", Argsn: 1, @@ -82805,6 +97880,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this label should not shrink below. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Label) + // Result: + // * Go(fyne.Size) "Go(*widget.Label)//min-size": { Doc: "(*widget.Label).MinSize", Argsn: 1, @@ -82834,6 +97917,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Label) + // * pos - Go(fyne.Position) "Go(*widget.Label)//move": { Doc: "(*widget.Label).Move", Argsn: 2, @@ -82874,6 +97960,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Label) + // Result: + // * Go(fyne.position) "Go(*widget.Label)//position": { Doc: "(*widget.Label).Position", Argsn: 1, @@ -82903,6 +97993,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh triggers a redraw of the label. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Label) "Go(*widget.Label)//refresh": { Doc: "(*widget.Label).Refresh", Argsn: 1, @@ -82930,6 +98026,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for the label. + // This should only be called if it is not in a container with a layout manager. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Label) + // * s - Go(fyne.Size) "Go(*widget.Label)//resize": { Doc: "(*widget.Label).Resize", Argsn: 2, @@ -82970,6 +98074,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text sets the text of the label + // + // Args: + // * recv - Go(*widget.Label) + // * text - string "Go(*widget.Label)//set-text": { Doc: "(*widget.Label).SetText", Argsn: 2, @@ -83004,6 +98113,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Label) "Go(*widget.Label)//show": { Doc: "(*widget.Label).Show", Argsn: 1, @@ -83031,6 +98142,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Label) + // Result: + // * Go(fyne.size) "Go(*widget.Label)//size": { Doc: "(*widget.Label).Size", Argsn: 1, @@ -83060,6 +98175,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.Label)//text!": { Doc: "Set *widget.Label Text value", Argsn: 2, @@ -83094,6 +98213,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) "Go(*widget.Label)//text-style!": { Doc: "Set *widget.Label TextStyle value", Argsn: 2, @@ -83140,6 +98263,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.TextStyle) "Go(*widget.Label)//text-style?": { Doc: "Get *widget.Label TextStyle value", Argsn: 1, @@ -83168,6 +98293,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "Go(*widget.Label)//text?": { Doc: "Get *widget.Label Text value", Argsn: 1, @@ -83196,6 +98323,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Label) + // Result: + // * Go(fyne.theme) + "Go(*widget.Label)//theme": { + Doc: "(*widget.Label).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Label + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Label); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Label)//theme: arg 1: " + "expected native of type *widget.Label, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Label)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Label)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * truncation - integer + // Result: + // * integer "Go(*widget.Label)//truncation!": { Doc: "Set *widget.Label Truncation value", Argsn: 2, @@ -83244,6 +98408,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Label)//truncation?": { Doc: "Get *widget.Label Truncation value", Argsn: 1, @@ -83272,6 +98438,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // unbind disconnects any configured data source from this Label. + // The current value will remain at the last value of the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Label) "Go(*widget.Label)//unbind": { Doc: "(*widget.Label).Unbind", Argsn: 1, @@ -83299,6 +98472,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Label) + // Result: + // * bool "Go(*widget.Label)//visible": { Doc: "(*widget.Label).Visible", Argsn: 1, @@ -83328,6 +98505,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * wrapping - integer + // Result: + // * integer "Go(*widget.Label)//wrapping!": { Doc: "Set *widget.Label Wrapping value", Argsn: 2, @@ -83376,6 +98557,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Label)//wrapping?": { Doc: "Get *widget.Label Wrapping value", Argsn: 1, @@ -83404,6 +98587,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.List)//base-widget!": { Doc: "Set *widget.List BaseWidget value", Argsn: 2, @@ -83450,6 +98637,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.List)//base-widget?": { Doc: "Get *widget.List BaseWidget value", Argsn: 1, @@ -83478,6 +98667,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * create-item - fn { } -> Go(fyne.CanvasObject) + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.List)//create-item!": { Doc: "Set *widget.List CreateItem value", Argsn: 2, @@ -83574,6 +98767,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.List)//create-item?": { Doc: "Get *widget.List CreateItem value", Argsn: 1, @@ -83607,6 +98802,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer. + // + // Args: + // * recv - Go(*widget.List) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.List)//create-renderer": { Doc: "(*widget.List).CreateRenderer", Argsn: 1, @@ -83636,6 +98837,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.List) + // * wid - Go(fyne.Widget) "Go(*widget.List)//extend-base-widget": { Doc: "(*widget.List).ExtendBaseWidget", Argsn: 2, @@ -83689,6 +98893,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called after this List has gained focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//focus-gained": { Doc: "(*widget.List).FocusGained", Argsn: 1, @@ -83716,6 +98926,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called after this List has lost focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//focus-lost": { Doc: "(*widget.List).FocusLost", Argsn: 1, @@ -83743,6 +98959,47 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // get-scroll-offset returns the current scroll offset position + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.List) + // Result: + // * decimal + "Go(*widget.List)//get-scroll-offset": { + Doc: "(*widget.List).GetScrollOffset", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.List + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.List); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//get-scroll-offset: arg 1: " + "expected native of type *widget.List, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//get-scroll-offset: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//get-scroll-offset: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.GetScrollOffset() + var res0Obj env.Object + res0Obj = *env.NewDecimal(float64(res0)) + return res0Obj + }, + }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.List)//hidden!": { Doc: "Set *widget.List Hidden value", Argsn: 2, @@ -83777,6 +99034,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.List)//hidden?": { Doc: "Get *widget.List Hidden value", Argsn: 1, @@ -83805,6 +99064,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//hide": { Doc: "(*widget.List).Hide", Argsn: 1, @@ -83832,6 +99093,78 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hide-separators - bool + // Result: + // * bool + "Go(*widget.List)//hide-separators!": { + Doc: "Set *widget.List HideSeparators value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.List + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.List); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators!: arg 1: " + "expected native of type *widget.List, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.HideSeparators = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*widget.List)//hide-separators?": { + Doc: "Get *widget.List HideSeparators value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.List + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.List); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators?: arg 1: " + "expected native of type *widget.List, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//hide-separators?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.HideSeparators)) + return resObj + }, + }, + // Args: + // * length - fn { } -> integer + // Result: + // * fn { } -> integer "Go(*widget.List)//length!": { Doc: "Set *widget.List Length value", Argsn: 2, @@ -83894,6 +99227,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> integer "Go(*widget.List)//length?": { Doc: "Get *widget.List Length value", Argsn: 1, @@ -83927,6 +99262,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below. + // + // Args: + // * recv - Go(*widget.List) + // Result: + // * Go(fyne.Size) "Go(*widget.List)//min-size": { Doc: "(*widget.List).MinSize", Argsn: 1, @@ -83956,6 +99297,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.List) + // * pos - Go(fyne.Position) "Go(*widget.List)//move": { Doc: "(*widget.List).Move", Argsn: 2, @@ -83996,6 +99340,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-selected - fn { integer } + // Result: + // * fn { integer } "Go(*widget.List)//on-selected!": { Doc: "Set *widget.List OnSelected value", Argsn: 2, @@ -84047,6 +99395,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer } "Go(*widget.List)//on-selected?": { Doc: "Get *widget.List OnSelected value", Argsn: 1, @@ -84099,6 +99449,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-unselected - fn { integer } + // Result: + // * fn { integer } "Go(*widget.List)//on-unselected!": { Doc: "Set *widget.List OnUnselected value", Argsn: 2, @@ -84150,6 +99504,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer } "Go(*widget.List)//on-unselected?": { Doc: "Get *widget.List OnUnselected value", Argsn: 1, @@ -84202,6 +99558,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.List) + // Result: + // * Go(fyne.position) "Go(*widget.List)//position": { Doc: "(*widget.List).Position", Argsn: 1, @@ -84231,6 +99591,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//refresh": { Doc: "(*widget.List).Refresh", Argsn: 1, @@ -84258,6 +99620,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh-item refreshes a single item, specified by the item ID passed in. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.List) + // * id - integer "Go(*widget.List)//refresh-item": { Doc: "(*widget.List).RefreshItem", Argsn: 2, @@ -84306,6 +99675,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize is called when this list should change size. We refresh to ensure invisible items are drawn. + // + // Args: + // * recv - Go(*widget.List) + // * s - Go(fyne.Size) "Go(*widget.List)//resize": { Doc: "(*widget.List).Resize", Argsn: 2, @@ -84346,6 +99720,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to scrolls to the item represented by id + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.List) + // * id - integer "Go(*widget.List)//scroll-to": { Doc: "(*widget.List).ScrollTo", Argsn: 2, @@ -84394,6 +99775,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-bottom scrolls to the end of the list + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//scroll-to-bottom": { Doc: "(*widget.List).ScrollToBottom", Argsn: 1, @@ -84421,6 +99808,53 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-offset scrolls the list to the given offset position. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.List) + // * offset - decimal + "Go(*widget.List)//scroll-to-offset": { + Doc: "(*widget.List).ScrollToOffset", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.List + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.List); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//scroll-to-offset: arg 1: " + "expected native of type *widget.List, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//scroll-to-offset: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//scroll-to-offset: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val float32 + if vc, ok := arg1.(env.Decimal); ok { + arg1Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//scroll-to-offset: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + arg0Val.ScrollToOffset(arg1Val) + return arg0 + }, + }, + // scroll-to-top scrolls to the start of the list + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//scroll-to-top": { Doc: "(*widget.List).ScrollToTop", Argsn: 1, @@ -84448,6 +99882,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select add the item identified by the given ID to the selection. + // + // Args: + // * recv - Go(*widget.List) + // * id - integer "Go(*widget.List)//select": { Doc: "(*widget.List).Select", Argsn: 2, @@ -84496,6 +99935,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-item-height supports changing the height of the specified list item. Items normally take the height of the template + // returned from the CreateItem callback. The height parameter uses the same units as a fyne.Size type and refers + // to the internal content height not including the divider size. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*widget.List) + // * id - integer + // * height - decimal "Go(*widget.List)//set-item-height": { Doc: "(*widget.List).SetItemHeight", Argsn: 3, @@ -84551,6 +100000,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//show": { Doc: "(*widget.List).Show", Argsn: 1, @@ -84578,6 +100029,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.List) + // Result: + // * Go(fyne.size) "Go(*widget.List)//size": { Doc: "(*widget.List).Size", Argsn: 1, @@ -84607,6 +100062,46 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.List) + // Result: + // * Go(fyne.theme) + "Go(*widget.List)//theme": { + Doc: "(*widget.List).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.List + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.List); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//theme: arg 1: " + "expected native of type *widget.List, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.List)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // typed-key is called if a key event happens while this List is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.List) + // * event - Go(*fyne.KeyEvent) "Go(*widget.List)//typed-key": { Doc: "(*widget.List).TypedKey", Argsn: 2, @@ -84653,6 +100148,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is called if a text event happens while this List is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.List) + // * - - Go(rune) "Go(*widget.List)//typed-rune": { Doc: "(*widget.List).TypedRune", Argsn: 2, @@ -84693,6 +100195,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect removes the item identified by the given ID from the selection. + // + // Args: + // * recv - Go(*widget.List) + // * id - integer "Go(*widget.List)//unselect": { Doc: "(*widget.List).Unselect", Argsn: 2, @@ -84741,6 +100248,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect-all removes all items from the selection. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.List) "Go(*widget.List)//unselect-all": { Doc: "(*widget.List).UnselectAll", Argsn: 1, @@ -84768,6 +100281,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * update-item - fn { integer Go(fyne.CanvasObject) } + // Result: + // * fn { integer Go(fyne.CanvasObject) } "Go(*widget.List)//update-item!": { Doc: "Set *widget.List UpdateItem value", Argsn: 2, @@ -84820,6 +100337,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { integer Go(fyne.CanvasObject) } "Go(*widget.List)//update-item?": { Doc: "Get *widget.List UpdateItem value", Argsn: 1, @@ -84898,6 +100417,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.List) + // Result: + // * bool "Go(*widget.List)//visible": { Doc: "(*widget.List).Visible", Argsn: 1, @@ -84927,6 +100450,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // inline returns false as a list should be in a block. + // + // Args: + // * recv - Go(*widget.ListSegment) + // Result: + // * bool "Go(*widget.ListSegment)//inline": { Doc: "(*widget.ListSegment).Inline", Argsn: 1, @@ -84956,6 +100485,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * items - block[Go(widget.RichTextSegment)] + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.ListSegment)//items!": { Doc: "Set *widget.ListSegment Items value", Argsn: 2, @@ -84984,17 +100517,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]widget.RichTextSegment, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_widget_RichTextSegment(ps, v) + (*iv), err = ctxTo_widget_RichTextSegment(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*widget.ListSegment)//items!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(widget.RichTextSegment); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.ListSegment)//items!: arg 2: " + "block item: " + "expected native of type widget.RichTextSegment, but got " + objectDebugString(ps.Idx, v)) @@ -85004,7 +100538,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.ListSegment)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.ListSegment)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -85024,6 +100558,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.ListSegment)//items?": { Doc: "Get *widget.ListSegment Items value", Argsn: 1, @@ -85058,6 +100594,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * ordered - bool + // Result: + // * bool "Go(*widget.ListSegment)//ordered!": { Doc: "Set *widget.ListSegment Ordered value", Argsn: 2, @@ -85092,6 +100632,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.ListSegment)//ordered?": { Doc: "Get *widget.ListSegment Ordered value", Argsn: 1, @@ -85120,6 +100662,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // segments returns the segments required to draw bullets before each item + // + // Args: + // * recv - Go(*widget.ListSegment) + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.ListSegment)//segments": { Doc: "(*widget.ListSegment).Segments", Argsn: 1, @@ -85155,6 +100703,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select does nothing for a list container. + // + // Args: + // * recv - Go(*widget.ListSegment) + // * - - Go(fyne.Position) + // * - - Go(fyne.Position) "Go(*widget.ListSegment)//select": { Doc: "(*widget.ListSegment).Select", Argsn: 3, @@ -85208,6 +100762,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text returns the empty string for this list. + // + // Args: + // * recv - Go(*widget.ListSegment) + // Result: + // * string "Go(*widget.ListSegment)//selected-text": { Doc: "(*widget.ListSegment).SelectedText", Argsn: 1, @@ -85237,6 +100797,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // textual returns no content for a list as the content is in sub-segments. + // + // Args: + // * recv - Go(*widget.ListSegment) + // Result: + // * string "Go(*widget.ListSegment)//textual": { Doc: "(*widget.ListSegment).Textual", Argsn: 1, @@ -85266,6 +100832,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // unselect does nothing for a list container. + // + // Args: + // * recv - Go(*widget.ListSegment) "Go(*widget.ListSegment)//unselect": { Doc: "(*widget.ListSegment).Unselect", Argsn: 1, @@ -85293,6 +100863,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // update doesnt need to change a list visual. + // + // Args: + // * recv - Go(*widget.ListSegment) + // * 1 - Go(fyne.CanvasObject) "Go(*widget.ListSegment)//update": { Doc: "(*widget.ListSegment).Update", Argsn: 2, @@ -85346,6 +100921,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // visual returns no additional elements for this segment. + // + // Args: + // * recv - Go(*widget.ListSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.ListSegment)//visual": { Doc: "(*widget.ListSegment).Visual", Argsn: 1, @@ -85375,6 +100956,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // activate-last-submenu finds the last active menu item traversing through the open submenus + // and activates its submenu if any. + // It returns `true` if there was a submenu and it was activated and `false` elsewhere. + // Activating a submenu does show it and activate its first item. + // + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * bool "Go(*widget.Menu)//activate-last-submenu": { Doc: "(*widget.Menu).ActivateLastSubmenu", Argsn: 1, @@ -85404,6 +100994,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // activate-next activates the menu item following the currently active menu item. + // If there is no menu item active, it activates the first menu item. + // If there is no menu item after the current active one, it does nothing. + // If a submenu is open, it delegates the activation to this submenu. + // + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//activate-next": { Doc: "(*widget.Menu).ActivateNext", Argsn: 1, @@ -85431,6 +101028,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // activate-previous activates the menu item preceding the currently active menu item. + // If there is no menu item active, it activates the last menu item. + // If there is no menu item before the current active one, it does nothing. + // If a submenu is open, it delegates the activation to this submenu. + // + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//activate-previous": { Doc: "(*widget.Menu).ActivatePrevious", Argsn: 1, @@ -85458,6 +101062,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Menu)//base-widget!": { Doc: "Set *widget.Menu BaseWidget value", Argsn: 2, @@ -85504,6 +101112,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Menu)//base-widget?": { Doc: "Get *widget.Menu BaseWidget value", Argsn: 1, @@ -85532,6 +101142,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer returns a new renderer for the menu. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Menu)//create-renderer": { Doc: "(*widget.Menu).CreateRenderer", Argsn: 1, @@ -85561,6 +101179,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // deactivate-child deactivates the active menu item and hides its submenu if any. + // + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//deactivate-child": { Doc: "(*widget.Menu).DeactivateChild", Argsn: 1, @@ -85588,6 +101210,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // deactivate-last-submenu finds the last open submenu traversing through the open submenus, + // deactivates its active item and hides it. + // This also deactivates any submenus of the deactivated submenu. + // It returns `true` if there was a submenu open and closed and `false` elsewhere. + // + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * bool "Go(*widget.Menu)//deactivate-last-submenu": { Doc: "(*widget.Menu).DeactivateLastSubmenu", Argsn: 1, @@ -85617,6 +101248,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // dismiss dismisses the menu by dismissing and hiding the active child and performing Ondismiss. + // + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//dismiss": { Doc: "(*widget.Menu).Dismiss", Argsn: 1, @@ -85644,6 +101279,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Menu) + // * wid - Go(fyne.Widget) "Go(*widget.Menu)//extend-base-widget": { Doc: "(*widget.Menu).ExtendBaseWidget", Argsn: 2, @@ -85697,6 +101335,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Menu)//hidden!": { Doc: "Set *widget.Menu Hidden value", Argsn: 2, @@ -85731,6 +101373,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Menu)//hidden?": { Doc: "Get *widget.Menu Hidden value", Argsn: 1, @@ -85759,6 +101403,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//hide": { Doc: "(*widget.Menu).Hide", Argsn: 1, @@ -85786,6 +101432,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(fyne.CanvasObject)] + // Result: + // * block[Go(fyne.CanvasObject)] "Go(*widget.Menu)//items!": { Doc: "Set *widget.Menu Items value", Argsn: 2, @@ -85814,17 +101464,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*widget.Menu)//items!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.Menu)//items!: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -85834,7 +101485,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.Menu)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.Menu)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -85854,6 +101505,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(fyne.CanvasObject)] "Go(*widget.Menu)//items?": { Doc: "Get *widget.Menu Items value", Argsn: 1, @@ -85888,6 +101541,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the minimal size of the menu. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * Go(fyne.Size) "Go(*widget.Menu)//min-size": { Doc: "(*widget.Menu).MinSize", Argsn: 1, @@ -85917,6 +101578,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Menu) + // * pos - Go(fyne.Position) "Go(*widget.Menu)//move": { Doc: "(*widget.Menu).Move", Argsn: 2, @@ -85957,6 +101621,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-dismiss - fn { } + // Result: + // * fn { } "Go(*widget.Menu)//on-dismiss!": { Doc: "Set *widget.Menu OnDismiss value", Argsn: 2, @@ -86006,6 +101674,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.Menu)//on-dismiss?": { Doc: "Get *widget.Menu OnDismiss value", Argsn: 1, @@ -86037,6 +101707,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * Go(fyne.position) "Go(*widget.Menu)//position": { Doc: "(*widget.Menu).Position", Argsn: 1, @@ -86066,6 +101740,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh updates the menu to reflect changes in the data. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//refresh": { Doc: "(*widget.Menu).Refresh", Argsn: 1, @@ -86093,6 +101773,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Menu) + // * size - Go(fyne.Size) "Go(*widget.Menu)//resize": { Doc: "(*widget.Menu).Resize", Argsn: 2, @@ -86133,6 +101816,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//show": { Doc: "(*widget.Menu).Show", Argsn: 1, @@ -86160,6 +101845,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * Go(fyne.size) "Go(*widget.Menu)//size": { Doc: "(*widget.Menu).Size", Argsn: 1, @@ -86189,6 +101878,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tapped catches taps on separators and the menu background. It doesn't perform any action. + // + // Implements: fyne.Tappable + // + // Args: + // * recv - Go(*widget.Menu) + // * 1 - Go(*fyne.PointEvent) "Go(*widget.Menu)//tapped": { Doc: "(*widget.Menu).Tapped", Argsn: 2, @@ -86235,6 +101931,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * Go(fyne.theme) + "Go(*widget.Menu)//theme": { + Doc: "(*widget.Menu).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Menu + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Menu); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Menu)//theme: arg 1: " + "expected native of type *widget.Menu, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Menu)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Menu)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // trigger-last finds the last active menu item traversing through the open submenus and triggers it. + // + // Args: + // * recv - Go(*widget.Menu) "Go(*widget.Menu)//trigger-last": { Doc: "(*widget.Menu).TriggerLast", Argsn: 1, @@ -86262,6 +101995,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Menu) + // Result: + // * bool "Go(*widget.Menu)//visible": { Doc: "(*widget.Menu).Visible", Argsn: 1, @@ -86291,6 +102028,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // inline returns false as a paragraph should be in a block. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // Result: + // * bool "Go(*widget.ParagraphSegment)//inline": { Doc: "(*widget.ParagraphSegment).Inline", Argsn: 1, @@ -86320,6 +102063,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // segments returns the list of text elements in this paragraph. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.ParagraphSegment)//segments": { Doc: "(*widget.ParagraphSegment).Segments", Argsn: 1, @@ -86355,6 +102104,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select does nothing for a paragraph container. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // * - - Go(fyne.Position) + // * - - Go(fyne.Position) "Go(*widget.ParagraphSegment)//select": { Doc: "(*widget.ParagraphSegment).Select", Argsn: 3, @@ -86408,6 +102163,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text returns the empty string for this paragraph container. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // Result: + // * string "Go(*widget.ParagraphSegment)//selected-text": { Doc: "(*widget.ParagraphSegment).SelectedText", Argsn: 1, @@ -86437,6 +102198,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * texts - block[Go(widget.RichTextSegment)] + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.ParagraphSegment)//texts!": { Doc: "Set *widget.ParagraphSegment Texts value", Argsn: 2, @@ -86465,17 +102230,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]widget.RichTextSegment, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_widget_RichTextSegment(ps, v) + (*iv), err = ctxTo_widget_RichTextSegment(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*widget.ParagraphSegment)//texts!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(widget.RichTextSegment); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.ParagraphSegment)//texts!: arg 2: " + "block item: " + "expected native of type widget.RichTextSegment, but got " + objectDebugString(ps.Idx, v)) @@ -86485,7 +102251,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.ParagraphSegment)//texts!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.ParagraphSegment)//texts!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -86505,6 +102271,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.ParagraphSegment)//texts?": { Doc: "Get *widget.ParagraphSegment Texts value", Argsn: 1, @@ -86539,6 +102307,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // textual returns no content for a paragraph container. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // Result: + // * string "Go(*widget.ParagraphSegment)//textual": { Doc: "(*widget.ParagraphSegment).Textual", Argsn: 1, @@ -86568,6 +102342,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // unselect does nothing for a paragraph container. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) "Go(*widget.ParagraphSegment)//unselect": { Doc: "(*widget.ParagraphSegment).Unselect", Argsn: 1, @@ -86595,6 +102373,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // update doesnt need to change a paragraph container. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // * 1 - Go(fyne.CanvasObject) "Go(*widget.ParagraphSegment)//update": { Doc: "(*widget.ParagraphSegment).Update", Argsn: 2, @@ -86648,6 +102431,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // visual returns the no extra elements. + // + // Args: + // * recv - Go(*widget.ParagraphSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.ParagraphSegment)//visual": { Doc: "(*widget.ParagraphSegment).Visual", Argsn: 1, @@ -86677,6 +102466,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.PopUp)//base-widget!": { Doc: "Set *widget.PopUp BaseWidget value", Argsn: 2, @@ -86723,6 +102516,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.PopUp)//base-widget?": { Doc: "Get *widget.PopUp BaseWidget value", Argsn: 1, @@ -86751,6 +102546,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * canvas - Go(fyne.Canvas) + // Result: + // * Go(fyne.Canvas) "Go(*widget.PopUp)//canvas!": { Doc: "Set *widget.PopUp Canvas value", Argsn: 2, @@ -86804,6 +102603,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Canvas) "Go(*widget.PopUp)//canvas?": { Doc: "Get *widget.PopUp Canvas value", Argsn: 1, @@ -86832,6 +102633,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.PopUp)//content!": { Doc: "Set *widget.PopUp Content value", Argsn: 2, @@ -86885,6 +102690,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.PopUp)//content?": { Doc: "Get *widget.PopUp Content value", Argsn: 1, @@ -86913,6 +102720,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.PopUp) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.PopUp)//create-renderer": { Doc: "(*widget.PopUp).CreateRenderer", Argsn: 1, @@ -86942,6 +102755,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUp) + // * wid - Go(fyne.Widget) "Go(*widget.PopUp)//extend-base-widget": { Doc: "(*widget.PopUp).ExtendBaseWidget", Argsn: 2, @@ -86995,6 +102811,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.PopUp)//hidden!": { Doc: "Set *widget.PopUp Hidden value", Argsn: 2, @@ -87029,6 +102849,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.PopUp)//hidden?": { Doc: "Get *widget.PopUp Hidden value", Argsn: 1, @@ -87057,6 +102879,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide this widget, if it was previously visible + // + // Args: + // * recv - Go(*widget.PopUp) "Go(*widget.PopUp)//hide": { Doc: "(*widget.PopUp).Hide", Argsn: 1, @@ -87084,6 +102910,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.PopUp) + // Result: + // * Go(fyne.Size) "Go(*widget.PopUp)//min-size": { Doc: "(*widget.PopUp).MinSize", Argsn: 1, @@ -87113,6 +102945,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move the widget to a new position. A PopUp position is absolute to the top, left of its canvas. + // For PopUp this actually moves the content so checking Position() will not return the same value as is set here. + // + // Args: + // * recv - Go(*widget.PopUp) + // * pos - Go(fyne.Position) "Go(*widget.PopUp)//move": { Doc: "(*widget.PopUp).Move", Argsn: 2, @@ -87153,6 +102991,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUp) + // Result: + // * Go(fyne.position) "Go(*widget.PopUp)//position": { Doc: "(*widget.PopUp).Position", Argsn: 1, @@ -87182,6 +103024,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUp) "Go(*widget.PopUp)//refresh": { Doc: "(*widget.PopUp).Refresh", Argsn: 1, @@ -87209,6 +103053,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize changes the size of the PopUp's content. + // PopUps always have the size of their canvas, but this call updates the + // size of the content portion. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.PopUp) + // * size - Go(fyne.Size) "Go(*widget.PopUp)//resize": { Doc: "(*widget.PopUp).Resize", Argsn: 2, @@ -87249,6 +103102,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show this pop-up as overlay if not already shown. + // + // Args: + // * recv - Go(*widget.PopUp) "Go(*widget.PopUp)//show": { Doc: "(*widget.PopUp).Show", Argsn: 1, @@ -87276,6 +103133,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show-at-position shows this pop-up at the given position. + // + // Args: + // * recv - Go(*widget.PopUp) + // * pos - Go(fyne.Position) "Go(*widget.PopUp)//show-at-position": { Doc: "(*widget.PopUp).ShowAtPosition", Argsn: 2, @@ -87316,6 +103178,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show-at-relative-position shows this pop-up at the given position relative to stated object. + // + // Since 2.4 + // + // Args: + // * recv - Go(*widget.PopUp) + // * rel - Go(fyne.Position) + // * to - Go(fyne.CanvasObject) "Go(*widget.PopUp)//show-at-relative-position": { Doc: "(*widget.PopUp).ShowAtRelativePosition", Argsn: 3, @@ -87382,6 +103252,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUp) + // Result: + // * Go(fyne.size) "Go(*widget.PopUp)//size": { Doc: "(*widget.PopUp).Size", Argsn: 1, @@ -87411,6 +103285,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tapped is called when the user taps the popUp background - if not modal then dismiss this widget + // + // Args: + // * recv - Go(*widget.PopUp) + // * - - Go(*fyne.PointEvent) "Go(*widget.PopUp)//tapped": { Doc: "(*widget.PopUp).Tapped", Argsn: 2, @@ -87457,6 +103336,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // tapped-secondary is called when the user right/alt taps the background - if not modal then dismiss this widget + // + // Args: + // * recv - Go(*widget.PopUp) + // * - - Go(*fyne.PointEvent) "Go(*widget.PopUp)//tapped-secondary": { Doc: "(*widget.PopUp).TappedSecondary", Argsn: 2, @@ -87503,6 +103387,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUp) + // Result: + // * Go(fyne.theme) + "Go(*widget.PopUp)//theme": { + Doc: "(*widget.PopUp).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.PopUp + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.PopUp); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.PopUp)//theme: arg 1: " + "expected native of type *widget.PopUp, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.PopUp)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.PopUp)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.PopUp) + // Result: + // * bool "Go(*widget.PopUp)//visible": { Doc: "(*widget.PopUp).Visible", Argsn: 1, @@ -87532,6 +103453,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * bool "Go(*widget.PopUpMenu)//activate-last-submenu": { Doc: "(*widget.PopUpMenu).ActivateLastSubmenu", Argsn: 1, @@ -87561,6 +103486,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//activate-next": { Doc: "(*widget.PopUpMenu).ActivateNext", Argsn: 1, @@ -87588,6 +103515,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//activate-previous": { Doc: "(*widget.PopUpMenu).ActivatePrevious", Argsn: 1, @@ -87615,6 +103544,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.PopUpMenu)//base-widget!": { Doc: "Set *widget.PopUpMenu BaseWidget value", Argsn: 2, @@ -87661,6 +103594,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.PopUpMenu)//base-widget?": { Doc: "Get *widget.PopUpMenu BaseWidget value", Argsn: 1, @@ -87689,6 +103624,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.PopUpMenu)//create-renderer": { Doc: "(*widget.PopUpMenu).CreateRenderer", Argsn: 1, @@ -87718,6 +103657,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//deactivate-child": { Doc: "(*widget.PopUpMenu).DeactivateChild", Argsn: 1, @@ -87745,6 +103686,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * bool "Go(*widget.PopUpMenu)//deactivate-last-submenu": { Doc: "(*widget.PopUpMenu).DeactivateLastSubmenu", Argsn: 1, @@ -87774,6 +103719,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//dismiss": { Doc: "(*widget.PopUpMenu).Dismiss", Argsn: 1, @@ -87801,6 +103748,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // * wid - Go(fyne.Widget) "Go(*widget.PopUpMenu)//extend-base-widget": { Doc: "(*widget.PopUpMenu).ExtendBaseWidget", Argsn: 2, @@ -87854,6 +103804,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is triggered when the object gained focus. For the pop-up menu it does nothing. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//focus-gained": { Doc: "(*widget.PopUpMenu).FocusGained", Argsn: 1, @@ -87881,6 +103837,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is triggered when the object lost focus. For the pop-up menu it does nothing. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//focus-lost": { Doc: "(*widget.PopUpMenu).FocusLost", Argsn: 1, @@ -87908,6 +103870,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.PopUpMenu)//hidden!": { Doc: "Set *widget.PopUpMenu Hidden value", Argsn: 2, @@ -87942,6 +103908,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.PopUpMenu)//hidden?": { Doc: "Get *widget.PopUpMenu Hidden value", Argsn: 1, @@ -87970,6 +103938,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide hides the pop-up menu. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//hide": { Doc: "(*widget.PopUpMenu).Hide", Argsn: 1, @@ -87997,6 +103971,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(fyne.CanvasObject)] + // Result: + // * block[Go(fyne.CanvasObject)] "Go(*widget.PopUpMenu)//items!": { Doc: "Set *widget.PopUpMenu Items value", Argsn: 2, @@ -88025,17 +104003,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*widget.PopUpMenu)//items!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.PopUpMenu)//items!: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -88045,7 +104024,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.PopUpMenu)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.PopUpMenu)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -88065,6 +104044,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(fyne.CanvasObject)] "Go(*widget.PopUpMenu)//items?": { Doc: "Get *widget.PopUpMenu Items value", Argsn: 1, @@ -88099,6 +104080,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * menu - Go(*widget.Menu) + // Result: + // * Go(*widget.Menu) "Go(*widget.PopUpMenu)//menu!": { Doc: "Set *widget.PopUpMenu Menu value", Argsn: 2, @@ -88145,6 +104130,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(*widget.Menu) "Go(*widget.PopUpMenu)//menu?": { Doc: "Get *widget.PopUpMenu Menu value", Argsn: 1, @@ -88173,6 +104160,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * Go(fyne.Size) "Go(*widget.PopUpMenu)//min-size": { Doc: "(*widget.PopUpMenu).MinSize", Argsn: 1, @@ -88202,6 +104193,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move moves the pop-up menu. + // The position is absolute because pop-up menus are shown in an overlay which covers the whole canvas. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.PopUpMenu) + // * pos - Go(fyne.Position) "Go(*widget.PopUpMenu)//move": { Doc: "(*widget.PopUpMenu).Move", Argsn: 2, @@ -88242,6 +104241,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-dismiss - fn { } + // Result: + // * fn { } "Go(*widget.PopUpMenu)//on-dismiss!": { Doc: "Set *widget.PopUpMenu OnDismiss value", Argsn: 2, @@ -88291,6 +104294,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.PopUpMenu)//on-dismiss?": { Doc: "Get *widget.PopUpMenu OnDismiss value", Argsn: 1, @@ -88322,6 +104327,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * Go(fyne.position) "Go(*widget.PopUpMenu)//position": { Doc: "(*widget.PopUpMenu).Position", Argsn: 1, @@ -88351,6 +104360,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//refresh": { Doc: "(*widget.PopUpMenu).Refresh", Argsn: 1, @@ -88378,6 +104389,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize changes the size of the pop-up menu. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.PopUpMenu) + // * size - Go(fyne.Size) "Go(*widget.PopUpMenu)//resize": { Doc: "(*widget.PopUpMenu).Resize", Argsn: 2, @@ -88418,6 +104436,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show makes the pop-up menu visible. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//show": { Doc: "(*widget.PopUpMenu).Show", Argsn: 1, @@ -88445,6 +104469,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show-at-position shows the pop-up menu at the specified position. + // + // Args: + // * recv - Go(*widget.PopUpMenu) + // * pos - Go(fyne.Position) "Go(*widget.PopUpMenu)//show-at-position": { Doc: "(*widget.PopUpMenu).ShowAtPosition", Argsn: 2, @@ -88485,6 +104514,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // show-at-relative-position shows the pop-up menu at the position relative to given object. + // + // Since 2.4 + // + // Args: + // * recv - Go(*widget.PopUpMenu) + // * rel - Go(fyne.Position) + // * to - Go(fyne.CanvasObject) "Go(*widget.PopUpMenu)//show-at-relative-position": { Doc: "(*widget.PopUpMenu).ShowAtRelativePosition", Argsn: 3, @@ -88551,6 +104588,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * Go(fyne.size) "Go(*widget.PopUpMenu)//size": { Doc: "(*widget.PopUpMenu).Size", Argsn: 1, @@ -88580,6 +104621,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // * 1 - Go(*fyne.PointEvent) "Go(*widget.PopUpMenu)//tapped": { Doc: "(*widget.PopUpMenu).Tapped", Argsn: 2, @@ -88626,6 +104670,41 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * Go(fyne.theme) + "Go(*widget.PopUpMenu)//theme": { + Doc: "(*widget.PopUpMenu).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.PopUpMenu + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.PopUpMenu); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.PopUpMenu)//theme: arg 1: " + "expected native of type *widget.PopUpMenu, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.PopUpMenu)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.PopUpMenu)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.PopUpMenu) "Go(*widget.PopUpMenu)//trigger-last": { Doc: "(*widget.PopUpMenu).TriggerLast", Argsn: 1, @@ -88653,6 +104732,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-key handles key events. It allows keyboard control of the pop-up menu. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.PopUpMenu) + // * e - Go(*fyne.KeyEvent) "Go(*widget.PopUpMenu)//typed-key": { Doc: "(*widget.PopUpMenu).TypedKey", Argsn: 2, @@ -88699,6 +104785,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune handles text events. For pop-up menus this does nothing. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.PopUpMenu) + // * 1 - Go(rune) "Go(*widget.PopUpMenu)//typed-rune": { Doc: "(*widget.PopUpMenu).TypedRune", Argsn: 2, @@ -88739,6 +104832,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.PopUpMenu) + // Result: + // * bool "Go(*widget.PopUpMenu)//visible": { Doc: "(*widget.PopUpMenu).Visible", Argsn: 1, @@ -88768,6 +104865,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.ProgressBar)//base-widget!": { Doc: "Set *widget.ProgressBar BaseWidget value", Argsn: 2, @@ -88814,6 +104915,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.ProgressBar)//base-widget?": { Doc: "Get *widget.ProgressBar BaseWidget value", Argsn: 1, @@ -88842,6 +104945,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // bind connects the specified data source to this ProgressBar. + // The current value will be displayed and any changes in the data will cause the widget to update. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.ProgressBar) + // * data - Go(binding.Float) "Go(*widget.ProgressBar)//bind": { Doc: "(*widget.ProgressBar).Bind", Argsn: 2, @@ -88895,6 +105006,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.ProgressBar) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.ProgressBar)//create-renderer": { Doc: "(*widget.ProgressBar).CreateRenderer", Argsn: 1, @@ -88924,6 +105041,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // * wid - Go(fyne.Widget) "Go(*widget.ProgressBar)//extend-base-widget": { Doc: "(*widget.ProgressBar).ExtendBaseWidget", Argsn: 2, @@ -88977,6 +105097,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.ProgressBar)//hidden!": { Doc: "Set *widget.ProgressBar Hidden value", Argsn: 2, @@ -89011,6 +105135,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.ProgressBar)//hidden?": { Doc: "Get *widget.ProgressBar Hidden value", Argsn: 1, @@ -89039,6 +105165,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.ProgressBar) "Go(*widget.ProgressBar)//hide": { Doc: "(*widget.ProgressBar).Hide", Argsn: 1, @@ -89066,6 +105194,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * max - decimal + // Result: + // * decimal "Go(*widget.ProgressBar)//max!": { Doc: "Set *widget.ProgressBar Max value", Argsn: 2, @@ -89100,6 +105232,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*widget.ProgressBar)//max?": { Doc: "Get *widget.ProgressBar Max value", Argsn: 1, @@ -89128,6 +105262,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * min - decimal + // Result: + // * decimal "Go(*widget.ProgressBar)//min!": { Doc: "Set *widget.ProgressBar Min value", Argsn: 2, @@ -89162,6 +105300,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.ProgressBar) + // Result: + // * Go(fyne.Size) "Go(*widget.ProgressBar)//min-size": { Doc: "(*widget.ProgressBar).MinSize", Argsn: 1, @@ -89191,6 +105335,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * decimal "Go(*widget.ProgressBar)//min?": { Doc: "Get *widget.ProgressBar Min value", Argsn: 1, @@ -89219,6 +105365,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // * pos - Go(fyne.Position) "Go(*widget.ProgressBar)//move": { Doc: "(*widget.ProgressBar).Move", Argsn: 2, @@ -89259,6 +105408,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // Result: + // * Go(fyne.position) "Go(*widget.ProgressBar)//position": { Doc: "(*widget.ProgressBar).Position", Argsn: 1, @@ -89288,6 +105441,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.ProgressBar) "Go(*widget.ProgressBar)//refresh": { Doc: "(*widget.ProgressBar).Refresh", Argsn: 1, @@ -89315,6 +105470,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // * size - Go(fyne.Size) "Go(*widget.ProgressBar)//resize": { Doc: "(*widget.ProgressBar).Resize", Argsn: 2, @@ -89355,6 +105513,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-value changes the current value of this progress bar (from p.Min to p.Max). + // The widget will be refreshed to indicate the change. + // + // Args: + // * recv - Go(*widget.ProgressBar) + // * v - decimal "Go(*widget.ProgressBar)//set-value": { Doc: "(*widget.ProgressBar).SetValue", Argsn: 2, @@ -89389,6 +105553,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBar) "Go(*widget.ProgressBar)//show": { Doc: "(*widget.ProgressBar).Show", Argsn: 1, @@ -89416,6 +105582,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // Result: + // * Go(fyne.size) "Go(*widget.ProgressBar)//size": { Doc: "(*widget.ProgressBar).Size", Argsn: 1, @@ -89445,6 +105615,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * text-formatter - fn { } -> string + // Result: + // * fn { } -> string "Go(*widget.ProgressBar)//text-formatter!": { Doc: "Set *widget.ProgressBar TextFormatter value", Argsn: 2, @@ -89507,6 +105681,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> string "Go(*widget.ProgressBar)//text-formatter?": { Doc: "Get *widget.ProgressBar TextFormatter value", Argsn: 1, @@ -89540,6 +105716,46 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // Result: + // * Go(fyne.theme) + "Go(*widget.ProgressBar)//theme": { + Doc: "(*widget.ProgressBar).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.ProgressBar + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.ProgressBar); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.ProgressBar)//theme: arg 1: " + "expected native of type *widget.ProgressBar, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.ProgressBar)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.ProgressBar)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // unbind disconnects any configured data source from this ProgressBar. + // The current value will remain at the last value of the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.ProgressBar) "Go(*widget.ProgressBar)//unbind": { Doc: "(*widget.ProgressBar).Unbind", Argsn: 1, @@ -89567,6 +105783,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * value - decimal + // Result: + // * decimal "Go(*widget.ProgressBar)//value!": { Doc: "Set *widget.ProgressBar Value value", Argsn: 2, @@ -89601,6 +105821,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*widget.ProgressBar)//value?": { Doc: "Get *widget.ProgressBar Value value", Argsn: 1, @@ -89629,6 +105851,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.ProgressBar) + // Result: + // * bool "Go(*widget.ProgressBar)//visible": { Doc: "(*widget.ProgressBar).Visible", Argsn: 1, @@ -89658,6 +105884,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.ProgressBarInfinite)//base-widget!": { Doc: "Set *widget.ProgressBarInfinite BaseWidget value", Argsn: 2, @@ -89704,6 +105934,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.ProgressBarInfinite)//base-widget?": { Doc: "Get *widget.ProgressBarInfinite BaseWidget value", Argsn: 1, @@ -89732,6 +105964,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.ProgressBarInfinite)//create-renderer": { Doc: "(*widget.ProgressBarInfinite).CreateRenderer", Argsn: 1, @@ -89761,6 +105999,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // * wid - Go(fyne.Widget) "Go(*widget.ProgressBarInfinite)//extend-base-widget": { Doc: "(*widget.ProgressBarInfinite).ExtendBaseWidget", Argsn: 2, @@ -89814,6 +106055,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.ProgressBarInfinite)//hidden!": { Doc: "Set *widget.ProgressBarInfinite Hidden value", Argsn: 2, @@ -89848,6 +106093,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.ProgressBarInfinite)//hidden?": { Doc: "Get *widget.ProgressBarInfinite Hidden value", Argsn: 1, @@ -89876,6 +106123,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide this widget, if it was previously visible + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) "Go(*widget.ProgressBarInfinite)//hide": { Doc: "(*widget.ProgressBarInfinite).Hide", Argsn: 1, @@ -89903,6 +106154,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * Go(fyne.Size) "Go(*widget.ProgressBarInfinite)//min-size": { Doc: "(*widget.ProgressBarInfinite).MinSize", Argsn: 1, @@ -89932,6 +106189,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // * pos - Go(fyne.Position) "Go(*widget.ProgressBarInfinite)//move": { Doc: "(*widget.ProgressBarInfinite).Move", Argsn: 2, @@ -89972,6 +106232,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * Go(fyne.position) "Go(*widget.ProgressBarInfinite)//position": { Doc: "(*widget.ProgressBarInfinite).Position", Argsn: 1, @@ -90001,6 +106265,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) "Go(*widget.ProgressBarInfinite)//refresh": { Doc: "(*widget.ProgressBarInfinite).Refresh", Argsn: 1, @@ -90028,6 +106294,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // * size - Go(fyne.Size) "Go(*widget.ProgressBarInfinite)//resize": { Doc: "(*widget.ProgressBarInfinite).Resize", Argsn: 2, @@ -90068,6 +106337,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // running returns the current state of the infinite progress animation + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * bool "Go(*widget.ProgressBarInfinite)//running": { Doc: "(*widget.ProgressBarInfinite).Running", Argsn: 1, @@ -90097,6 +106372,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // show this widget, if it was previously hidden + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) "Go(*widget.ProgressBarInfinite)//show": { Doc: "(*widget.ProgressBarInfinite).Show", Argsn: 1, @@ -90124,6 +106403,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * Go(fyne.size) "Go(*widget.ProgressBarInfinite)//size": { Doc: "(*widget.ProgressBarInfinite).Size", Argsn: 1, @@ -90153,6 +106436,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // start the infinite progress bar animation + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) "Go(*widget.ProgressBarInfinite)//start": { Doc: "(*widget.ProgressBarInfinite).Start", Argsn: 1, @@ -90180,6 +106467,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // stop the infinite progress bar animation + // + // Args: + // * recv - Go(*widget.ProgressBarInfinite) "Go(*widget.ProgressBarInfinite)//stop": { Doc: "(*widget.ProgressBarInfinite).Stop", Argsn: 1, @@ -90207,6 +106498,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * Go(fyne.theme) + "Go(*widget.ProgressBarInfinite)//theme": { + Doc: "(*widget.ProgressBarInfinite).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.ProgressBarInfinite + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.ProgressBarInfinite); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.ProgressBarInfinite)//theme: arg 1: " + "expected native of type *widget.ProgressBarInfinite, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.ProgressBarInfinite)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.ProgressBarInfinite)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.ProgressBarInfinite) + // Result: + // * bool "Go(*widget.ProgressBarInfinite)//visible": { Doc: "(*widget.ProgressBarInfinite).Visible", Argsn: 1, @@ -90236,6 +106564,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // append adds a new option to the end of a RadioGroup widget. + // + // Args: + // * recv - Go(*widget.RadioGroup) + // * option - string "Go(*widget.RadioGroup)//append": { Doc: "(*widget.RadioGroup).Append", Argsn: 2, @@ -90270,6 +106603,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.RadioGroup)//base-widget!": { Doc: "Set *widget.RadioGroup BaseWidget value", Argsn: 2, @@ -90316,6 +106653,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.RadioGroup)//base-widget?": { Doc: "Get *widget.RadioGroup BaseWidget value", Argsn: 1, @@ -90344,6 +106683,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.RadioGroup)//create-renderer": { Doc: "(*widget.RadioGroup).CreateRenderer", Argsn: 1, @@ -90373,6 +106718,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) "Go(*widget.RadioGroup)//disable": { Doc: "(*widget.RadioGroup).Disable", Argsn: 1, @@ -90400,6 +106747,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.RadioGroup)//disableable-widget!": { Doc: "Set *widget.RadioGroup DisableableWidget value", Argsn: 2, @@ -90446,6 +106797,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.RadioGroup)//disableable-widget?": { Doc: "Get *widget.RadioGroup DisableableWidget value", Argsn: 1, @@ -90474,6 +106827,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * bool "Go(*widget.RadioGroup)//disabled": { Doc: "(*widget.RadioGroup).Disabled", Argsn: 1, @@ -90503,6 +106860,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) "Go(*widget.RadioGroup)//enable": { Doc: "(*widget.RadioGroup).Enable", Argsn: 1, @@ -90530,6 +106889,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // * wid - Go(fyne.Widget) "Go(*widget.RadioGroup)//extend-base-widget": { Doc: "(*widget.RadioGroup).ExtendBaseWidget", Argsn: 2, @@ -90583,6 +106945,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.RadioGroup)//hidden!": { Doc: "Set *widget.RadioGroup Hidden value", Argsn: 2, @@ -90617,6 +106983,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.RadioGroup)//hidden?": { Doc: "Get *widget.RadioGroup Hidden value", Argsn: 1, @@ -90645,6 +107013,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) "Go(*widget.RadioGroup)//hide": { Doc: "(*widget.RadioGroup).Hide", Argsn: 1, @@ -90672,6 +107042,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * horizontal - bool + // Result: + // * bool "Go(*widget.RadioGroup)//horizontal!": { Doc: "Set *widget.RadioGroup Horizontal value", Argsn: 2, @@ -90706,6 +107080,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.RadioGroup)//horizontal?": { Doc: "Get *widget.RadioGroup Horizontal value", Argsn: 1, @@ -90734,6 +107110,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * Go(fyne.Size) "Go(*widget.RadioGroup)//min-size": { Doc: "(*widget.RadioGroup).MinSize", Argsn: 1, @@ -90763,6 +107145,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // * pos - Go(fyne.Position) "Go(*widget.RadioGroup)//move": { Doc: "(*widget.RadioGroup).Move", Argsn: 2, @@ -90803,6 +107188,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-changed - fn { string } + // Result: + // * fn { string } "Go(*widget.RadioGroup)//on-changed!": { Doc: "Set *widget.RadioGroup OnChanged value", Argsn: 2, @@ -90854,6 +107243,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.RadioGroup)//on-changed?": { Doc: "Get *widget.RadioGroup OnChanged value", Argsn: 1, @@ -90892,6 +107283,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * options - block[string] + // Result: + // * block[string] "Go(*widget.RadioGroup)//options!": { Doc: "Set *widget.RadioGroup Options value", Argsn: 2, @@ -90920,8 +107315,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] if vc, ok := it.(env.String); ok { - newVal[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.RadioGroup)//options!: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -90941,6 +107337,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[string] "Go(*widget.RadioGroup)//options?": { Doc: "Get *widget.RadioGroup Options value", Argsn: 1, @@ -90975,6 +107373,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * Go(fyne.position) "Go(*widget.RadioGroup)//position": { Doc: "(*widget.RadioGroup).Position", Argsn: 1, @@ -91004,6 +107406,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) "Go(*widget.RadioGroup)//refresh": { Doc: "(*widget.RadioGroup).Refresh", Argsn: 1, @@ -91031,6 +107435,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * required - bool + // Result: + // * bool "Go(*widget.RadioGroup)//required!": { Doc: "Set *widget.RadioGroup Required value", Argsn: 2, @@ -91065,6 +107473,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.RadioGroup)//required?": { Doc: "Get *widget.RadioGroup Required value", Argsn: 1, @@ -91093,6 +107503,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // * size - Go(fyne.Size) "Go(*widget.RadioGroup)//resize": { Doc: "(*widget.RadioGroup).Resize", Argsn: 2, @@ -91133,6 +107546,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * selected - string + // Result: + // * string "Go(*widget.RadioGroup)//selected!": { Doc: "Set *widget.RadioGroup Selected value", Argsn: 2, @@ -91167,6 +107584,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.RadioGroup)//selected?": { Doc: "Get *widget.RadioGroup Selected value", Argsn: 1, @@ -91195,6 +107614,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-selected sets the radio option, it can be used to set a default option. + // + // Args: + // * recv - Go(*widget.RadioGroup) + // * option - string "Go(*widget.RadioGroup)//set-selected": { Doc: "(*widget.RadioGroup).SetSelected", Argsn: 2, @@ -91229,6 +107653,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.RadioGroup) "Go(*widget.RadioGroup)//show": { Doc: "(*widget.RadioGroup).Show", Argsn: 1, @@ -91256,6 +107682,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * Go(fyne.size) "Go(*widget.RadioGroup)//size": { Doc: "(*widget.RadioGroup).Size", Argsn: 1, @@ -91285,6 +107715,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * Go(fyne.theme) + "Go(*widget.RadioGroup)//theme": { + Doc: "(*widget.RadioGroup).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.RadioGroup + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.RadioGroup); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.RadioGroup)//theme: arg 1: " + "expected native of type *widget.RadioGroup, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.RadioGroup)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.RadioGroup)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.RadioGroup) + // Result: + // * bool "Go(*widget.RadioGroup)//visible": { Doc: "(*widget.RadioGroup).Visible", Argsn: 1, @@ -91314,6 +107781,55 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // append-markdown parses the given markdown string and appends the + // content to the widget, with the appropriate formatting. + // This API is intended for appending complete markdown documents or + // standalone fragments, and should not be used to parse a single + // markdown document piecewise. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.RichText) + // * content - string + "Go(*widget.RichText)//append-markdown": { + Doc: "(*widget.RichText).AppendMarkdown", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.RichText + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.RichText); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//append-markdown: arg 1: " + "expected native of type *widget.RichText, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//append-markdown: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//append-markdown: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//append-markdown: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + arg0Val.AppendMarkdown(arg1Val) + return arg0 + }, + }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.RichText)//base-widget!": { Doc: "Set *widget.RichText BaseWidget value", Argsn: 2, @@ -91360,6 +107876,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.RichText)//base-widget?": { Doc: "Get *widget.RichText BaseWidget value", Argsn: 1, @@ -91388,6 +107906,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.RichText)//create-renderer": { Doc: "(*widget.RichText).CreateRenderer", Argsn: 1, @@ -91417,6 +107941,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RichText) + // * wid - Go(fyne.Widget) "Go(*widget.RichText)//extend-base-widget": { Doc: "(*widget.RichText).ExtendBaseWidget", Argsn: 2, @@ -91470,6 +107997,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.RichText)//hidden!": { Doc: "Set *widget.RichText Hidden value", Argsn: 2, @@ -91504,6 +108035,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.RichText)//hidden?": { Doc: "Get *widget.RichText Hidden value", Argsn: 1, @@ -91532,6 +108065,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RichText) "Go(*widget.RichText)//hide": { Doc: "(*widget.RichText).Hide", Argsn: 1, @@ -91559,6 +108094,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size calculates the minimum size of a rich text widget. + // This is based on the contained text with a standard amount of padding added. + // + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * Go(fyne.Size) "Go(*widget.RichText)//min-size": { Doc: "(*widget.RichText).MinSize", Argsn: 1, @@ -91588,6 +108130,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RichText) + // * pos - Go(fyne.Position) "Go(*widget.RichText)//move": { Doc: "(*widget.RichText).Move", Argsn: 2, @@ -91628,6 +108173,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // parse-markdown allows setting the content of this RichText widget from a markdown string. + // It will replace the content of this widget similarly to SetText, but with the appropriate formatting. + // + // Args: + // * recv - Go(*widget.RichText) + // * content - string "Go(*widget.RichText)//parse-markdown": { Doc: "(*widget.RichText).ParseMarkdown", Argsn: 2, @@ -91662,6 +108213,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * Go(fyne.position) "Go(*widget.RichText)//position": { Doc: "(*widget.RichText).Position", Argsn: 1, @@ -91691,6 +108246,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // refresh triggers a redraw of the rich text. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.RichText) "Go(*widget.RichText)//refresh": { Doc: "(*widget.RichText).Refresh", Argsn: 1, @@ -91718,6 +108279,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for the rich text. + // This should only be called if it is not in a container with a layout manager. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.RichText) + // * size - Go(fyne.Size) "Go(*widget.RichText)//resize": { Doc: "(*widget.RichText).Resize", Argsn: 2, @@ -91758,6 +108327,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * segments - block[Go(widget.RichTextSegment)] + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.RichText)//segments!": { Doc: "Set *widget.RichText Segments value", Argsn: 2, @@ -91786,17 +108359,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]widget.RichTextSegment, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_widget_RichTextSegment(ps, v) + (*iv), err = ctxTo_widget_RichTextSegment(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*widget.RichText)//segments!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(widget.RichTextSegment); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.RichText)//segments!: arg 2: " + "block item: " + "expected native of type widget.RichTextSegment, but got " + objectDebugString(ps.Idx, v)) @@ -91806,7 +108380,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.RichText)//segments!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.RichText)//segments!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -91826,6 +108400,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(widget.RichTextSegment)] "Go(*widget.RichText)//segments?": { Doc: "Get *widget.RichText Segments value", Argsn: 1, @@ -91860,6 +108436,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RichText) "Go(*widget.RichText)//show": { Doc: "(*widget.RichText).Show", Argsn: 1, @@ -91887,6 +108465,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * Go(fyne.size) "Go(*widget.RichText)//size": { Doc: "(*widget.RichText).Size", Argsn: 1, @@ -91916,6 +108498,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // string returns the text widget buffer as string + // + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * string "Go(*widget.RichText)//string": { Doc: "(*widget.RichText).String", Argsn: 1, @@ -91945,6 +108533,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * Go(fyne.theme) + "Go(*widget.RichText)//theme": { + Doc: "(*widget.RichText).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.RichText + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.RichText); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//theme: arg 1: " + "expected native of type *widget.RichText, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.RichText)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * truncation - integer + // Result: + // * integer "Go(*widget.RichText)//truncation!": { Doc: "Set *widget.RichText Truncation value", Argsn: 2, @@ -91993,6 +108618,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.RichText)//truncation?": { Doc: "Get *widget.RichText Truncation value", Argsn: 1, @@ -92021,6 +108648,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.RichText) + // Result: + // * bool "Go(*widget.RichText)//visible": { Doc: "(*widget.RichText).Visible", Argsn: 1, @@ -92050,6 +108681,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * wrapping - integer + // Result: + // * integer "Go(*widget.RichText)//wrapping!": { Doc: "Set *widget.RichText Wrapping value", Argsn: 2, @@ -92098,6 +108733,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.RichText)//wrapping?": { Doc: "Get *widget.RichText Wrapping value", Argsn: 1, @@ -92126,6 +108763,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.RichTextStyle)//alignment!": { Doc: "Set *widget.RichTextStyle Alignment value", Argsn: 2, @@ -92174,6 +108815,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.RichTextStyle)//alignment?": { Doc: "Get *widget.RichTextStyle Alignment value", Argsn: 1, @@ -92202,6 +108845,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * color-name - string + // Result: + // * string "Go(*widget.RichTextStyle)//color-name!": { Doc: "Set *widget.RichTextStyle ColorName value", Argsn: 2, @@ -92250,6 +108897,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.RichTextStyle)//color-name?": { Doc: "Get *widget.RichTextStyle ColorName value", Argsn: 1, @@ -92278,6 +108927,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * inline - bool + // Result: + // * bool "Go(*widget.RichTextStyle)//inline!": { Doc: "Set *widget.RichTextStyle Inline value", Argsn: 2, @@ -92312,6 +108965,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.RichTextStyle)//inline?": { Doc: "Get *widget.RichTextStyle Inline value", Argsn: 1, @@ -92340,6 +108995,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * size-name - string + // Result: + // * string "Go(*widget.RichTextStyle)//size-name!": { Doc: "Set *widget.RichTextStyle SizeName value", Argsn: 2, @@ -92388,6 +109047,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.RichTextStyle)//size-name?": { Doc: "Get *widget.RichTextStyle SizeName value", Argsn: 1, @@ -92416,6 +109077,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) "Go(*widget.RichTextStyle)//text-style!": { Doc: "Set *widget.RichTextStyle TextStyle value", Argsn: 2, @@ -92462,6 +109127,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.TextStyle) "Go(*widget.RichTextStyle)//text-style?": { Doc: "Get *widget.RichTextStyle TextStyle value", Argsn: 1, @@ -92490,6 +109157,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * alignment - integer + // Result: + // * integer "Go(*widget.Select)//alignment!": { Doc: "Set *widget.Select Alignment value", Argsn: 2, @@ -92538,6 +109209,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Select)//alignment?": { Doc: "Get *widget.Select Alignment value", Argsn: 1, @@ -92566,6 +109239,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Select)//base-widget!": { Doc: "Set *widget.Select BaseWidget value", Argsn: 2, @@ -92612,6 +109289,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Select)//base-widget?": { Doc: "Get *widget.Select BaseWidget value", Argsn: 1, @@ -92640,6 +109319,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // clear-selected clears the current option of the select widget. After + // clearing the current option, the Select widget's PlaceHolder will + // be displayed. + // + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//clear-selected": { Doc: "(*widget.Select).ClearSelected", Argsn: 1, @@ -92667,6 +109352,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Select) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Select)//create-renderer": { Doc: "(*widget.Select).CreateRenderer", Argsn: 1, @@ -92696,6 +109387,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//disable": { Doc: "(*widget.Select).Disable", Argsn: 1, @@ -92723,6 +109416,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Select)//disableable-widget!": { Doc: "Set *widget.Select DisableableWidget value", Argsn: 2, @@ -92769,6 +109466,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.Select)//disableable-widget?": { Doc: "Get *widget.Select DisableableWidget value", Argsn: 1, @@ -92797,6 +109496,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Select) + // Result: + // * bool "Go(*widget.Select)//disabled": { Doc: "(*widget.Select).Disabled", Argsn: 1, @@ -92826,6 +109529,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//enable": { Doc: "(*widget.Select).Enable", Argsn: 1, @@ -92853,6 +109558,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Select) + // * wid - Go(fyne.Widget) "Go(*widget.Select)//extend-base-widget": { Doc: "(*widget.Select).ExtendBaseWidget", Argsn: 2, @@ -92906,6 +109614,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called after this Select has gained focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//focus-gained": { Doc: "(*widget.Select).FocusGained", Argsn: 1, @@ -92933,6 +109647,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called after this Select has lost focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//focus-lost": { Doc: "(*widget.Select).FocusLost", Argsn: 1, @@ -92960,6 +109680,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Select)//hidden!": { Doc: "Set *widget.Select Hidden value", Argsn: 2, @@ -92994,6 +109718,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Select)//hidden?": { Doc: "Get *widget.Select Hidden value", Argsn: 1, @@ -93022,6 +109748,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hide hides the select. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//hide": { Doc: "(*widget.Select).Hide", Argsn: 1, @@ -93049,6 +109781,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Select) + // Result: + // * Go(fyne.Size) "Go(*widget.Select)//min-size": { Doc: "(*widget.Select).MinSize", Argsn: 1, @@ -93078,6 +109816,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mouse-in is called when a desktop pointer enters the widget + // + // Args: + // * recv - Go(*widget.Select) + // * 1 - Go(*desktop.MouseEvent) "Go(*widget.Select)//mouse-in": { Doc: "(*widget.Select).MouseIn", Argsn: 2, @@ -93124,6 +109867,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-moved is called when a desktop pointer hovers over the widget + // + // Args: + // * recv - Go(*widget.Select) + // * 1 - Go(*desktop.MouseEvent) "Go(*widget.Select)//mouse-moved": { Doc: "(*widget.Select).MouseMoved", Argsn: 2, @@ -93170,6 +109918,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-out is called when a desktop pointer exits the widget + // + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//mouse-out": { Doc: "(*widget.Select).MouseOut", Argsn: 1, @@ -93197,6 +109949,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // move changes the relative position of the select. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Select) + // * pos - Go(fyne.Position) "Go(*widget.Select)//move": { Doc: "(*widget.Select).Move", Argsn: 2, @@ -93237,6 +109996,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-changed - fn { string } + // Result: + // * fn { string } "Go(*widget.Select)//on-changed!": { Doc: "Set *widget.Select OnChanged value", Argsn: 2, @@ -93288,6 +110051,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Select)//on-changed?": { Doc: "Get *widget.Select OnChanged value", Argsn: 1, @@ -93326,6 +110091,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * options - block[string] + // Result: + // * block[string] "Go(*widget.Select)//options!": { Doc: "Set *widget.Select Options value", Argsn: 2, @@ -93354,8 +110123,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] if vc, ok := it.(env.String); ok { - newVal[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.Select)//options!: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -93375,6 +110145,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[string] "Go(*widget.Select)//options?": { Doc: "Get *widget.Select Options value", Argsn: 1, @@ -93409,6 +110181,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * place-holder - string + // Result: + // * string "Go(*widget.Select)//place-holder!": { Doc: "Set *widget.Select PlaceHolder value", Argsn: 2, @@ -93443,6 +110219,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Select)//place-holder?": { Doc: "Get *widget.Select PlaceHolder value", Argsn: 1, @@ -93471,6 +110249,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Select) + // Result: + // * Go(fyne.position) "Go(*widget.Select)//position": { Doc: "(*widget.Select).Position", Argsn: 1, @@ -93500,6 +110282,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//refresh": { Doc: "(*widget.Select).Refresh", Argsn: 1, @@ -93527,6 +110311,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for a widget. + // Note this should not be used if the widget is being managed by a Layout within a Container. + // + // Args: + // * recv - Go(*widget.Select) + // * size - Go(fyne.Size) "Go(*widget.Select)//resize": { Doc: "(*widget.Select).Resize", Argsn: 2, @@ -93567,6 +110357,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * selected - string + // Result: + // * string "Go(*widget.Select)//selected!": { Doc: "Set *widget.Select Selected value", Argsn: 2, @@ -93601,6 +110395,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-index returns the index value of the currently selected item in Options list. + // It will return -1 if there is no selection. + // + // Args: + // * recv - Go(*widget.Select) + // Result: + // * integer "Go(*widget.Select)//selected-index": { Doc: "(*widget.Select).SelectedIndex", Argsn: 1, @@ -93630,6 +110431,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * string "Go(*widget.Select)//selected?": { Doc: "Get *widget.Select Selected value", Argsn: 1, @@ -93658,6 +110461,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-options updates the list of options available and refreshes the widget + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Select) + // * options - block[string] "Go(*widget.Select)//set-options": { Doc: "(*widget.Select).SetOptions", Argsn: 2, @@ -93686,8 +110496,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.String); ok { - arg1Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.Select)//set-options: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -93707,6 +110518,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-selected sets the current option of the select widget + // + // Args: + // * recv - Go(*widget.Select) + // * text - string "Go(*widget.Select)//set-selected": { Doc: "(*widget.Select).SetSelected", Argsn: 2, @@ -93741,6 +110557,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-selected-index will set the Selected option from the value in Options list at index position. + // + // Args: + // * recv - Go(*widget.Select) + // * index - integer "Go(*widget.Select)//set-selected-index": { Doc: "(*widget.Select).SetSelectedIndex", Argsn: 2, @@ -93775,6 +110596,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Select) "Go(*widget.Select)//show": { Doc: "(*widget.Select).Show", Argsn: 1, @@ -93802,6 +110625,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Select) + // Result: + // * Go(fyne.size) "Go(*widget.Select)//size": { Doc: "(*widget.Select).Size", Argsn: 1, @@ -93831,6 +110658,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tapped is called when a pointer tapped event is captured and triggers any tap handler + // + // Args: + // * recv - Go(*widget.Select) + // * 1 - Go(*fyne.PointEvent) "Go(*widget.Select)//tapped": { Doc: "(*widget.Select).Tapped", Argsn: 2, @@ -93877,6 +110709,46 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Select) + // Result: + // * Go(fyne.theme) + "Go(*widget.Select)//theme": { + Doc: "(*widget.Select).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Select + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Select); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Select)//theme: arg 1: " + "expected native of type *widget.Select, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Select)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Select)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // typed-key is called if a key event happens while this Select is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Select) + // * event - Go(*fyne.KeyEvent) "Go(*widget.Select)//typed-key": { Doc: "(*widget.Select).TypedKey", Argsn: 2, @@ -93923,6 +110795,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is called if a text event happens while this Select is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Select) + // * - - Go(rune) "Go(*widget.Select)//typed-rune": { Doc: "(*widget.Select).TypedRune", Argsn: 2, @@ -93963,6 +110842,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Select) + // Result: + // * bool "Go(*widget.Select)//visible": { Doc: "(*widget.Select).Visible", Argsn: 1, @@ -93992,6 +110875,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * bool "Go(*widget.SelectEntry)//accepts-tab": { Doc: "(*widget.SelectEntry).AcceptsTab", Argsn: 1, @@ -94021,6 +110908,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * action-item - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.SelectEntry)//action-item!": { Doc: "Set *widget.SelectEntry ActionItem value", Argsn: 2, @@ -94074,6 +110965,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.SelectEntry)//action-item?": { Doc: "Get *widget.SelectEntry ActionItem value", Argsn: 1, @@ -94102,6 +110995,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * text - string "Go(*widget.SelectEntry)//append": { Doc: "(*widget.SelectEntry).Append", Argsn: 2, @@ -94136,6 +111032,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.SelectEntry)//base-widget!": { Doc: "Set *widget.SelectEntry BaseWidget value", Argsn: 2, @@ -94182,6 +111082,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.SelectEntry)//base-widget?": { Doc: "Get *widget.SelectEntry BaseWidget value", Argsn: 1, @@ -94210,6 +111112,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * data - Go(binding.String) "Go(*widget.SelectEntry)//bind": { Doc: "(*widget.SelectEntry).Bind", Argsn: 2, @@ -94263,6 +111168,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer returns a new renderer for this select entry. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.SelectEntry)//create-renderer": { Doc: "(*widget.SelectEntry).CreateRenderer", Argsn: 1, @@ -94292,6 +111205,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * Go(desktop.cursor) "Go(*widget.SelectEntry)//cursor": { Doc: "(*widget.SelectEntry).Cursor", Argsn: 1, @@ -94321,6 +111238,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * cursor-column - integer + // Result: + // * integer "Go(*widget.SelectEntry)//cursor-column!": { Doc: "Set *widget.SelectEntry CursorColumn value", Argsn: 2, @@ -94355,6 +111276,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.SelectEntry)//cursor-column?": { Doc: "Get *widget.SelectEntry CursorColumn value", Argsn: 1, @@ -94383,6 +111306,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * cursor-row - integer + // Result: + // * integer "Go(*widget.SelectEntry)//cursor-row!": { Doc: "Set *widget.SelectEntry CursorRow value", Argsn: 2, @@ -94417,6 +111344,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.SelectEntry)//cursor-row?": { Doc: "Get *widget.SelectEntry CursorRow value", Argsn: 1, @@ -94445,6 +111374,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // disable this widget so that it cannot be interacted with, updating any style appropriately. + // + // Implements: fyne.disableableWidget + // + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//disable": { Doc: "(*widget.SelectEntry).Disable", Argsn: 1, @@ -94472,6 +111407,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * disableable-widget - Go(widget.DisableableWidget) + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.SelectEntry)//disableable-widget!": { Doc: "Set *widget.SelectEntry DisableableWidget value", Argsn: 2, @@ -94518,6 +111457,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.DisableableWidget) "Go(*widget.SelectEntry)//disableable-widget?": { Doc: "Get *widget.SelectEntry DisableableWidget value", Argsn: 1, @@ -94546,6 +111487,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * bool "Go(*widget.SelectEntry)//disabled": { Doc: "(*widget.SelectEntry).Disabled", Argsn: 1, @@ -94575,6 +111520,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * p - Go(*fyne.PointEvent) "Go(*widget.SelectEntry)//double-tapped": { Doc: "(*widget.SelectEntry).DoubleTapped", Argsn: 2, @@ -94621,6 +111569,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//drag-end": { Doc: "(*widget.SelectEntry).DragEnd", Argsn: 1, @@ -94648,6 +111598,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * d - Go(*fyne.DragEvent) "Go(*widget.SelectEntry)//dragged": { Doc: "(*widget.SelectEntry).Dragged", Argsn: 2, @@ -94694,6 +111647,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable this widget, updating any style or features appropriately. + // + // Implements: fyne.DisableableWidget + // + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//enable": { Doc: "(*widget.SelectEntry).Enable", Argsn: 1, @@ -94721,6 +111680,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * entry - Go(widget.Entry) + // Result: + // * Go(widget.Entry) "Go(*widget.SelectEntry)//entry!": { Doc: "Set *widget.SelectEntry Entry value", Argsn: 2, @@ -94767,6 +111730,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.Entry) "Go(*widget.SelectEntry)//entry?": { Doc: "Get *widget.SelectEntry Entry value", Argsn: 1, @@ -94795,6 +111760,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * wid - Go(fyne.Widget) "Go(*widget.SelectEntry)//extend-base-widget": { Doc: "(*widget.SelectEntry).ExtendBaseWidget", Argsn: 2, @@ -94848,6 +111816,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//focus-gained": { Doc: "(*widget.SelectEntry).FocusGained", Argsn: 1, @@ -94875,6 +111845,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//focus-lost": { Doc: "(*widget.SelectEntry).FocusLost", Argsn: 1, @@ -94902,6 +111874,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.SelectEntry)//hidden!": { Doc: "Set *widget.SelectEntry Hidden value", Argsn: 2, @@ -94936,6 +111912,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.SelectEntry)//hidden?": { Doc: "Get *widget.SelectEntry Hidden value", Argsn: 1, @@ -94964,6 +111942,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//hide": { Doc: "(*widget.SelectEntry).Hide", Argsn: 1, @@ -94991,6 +111971,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * key - Go(*fyne.KeyEvent) "Go(*widget.SelectEntry)//key-down": { Doc: "(*widget.SelectEntry).KeyDown", Argsn: 2, @@ -95037,6 +112020,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * key - Go(*fyne.KeyEvent) "Go(*widget.SelectEntry)//key-up": { Doc: "(*widget.SelectEntry).KeyUp", Argsn: 2, @@ -95083,6 +112069,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * integer "Go(*widget.SelectEntry)//keyboard": { Doc: "(*widget.SelectEntry).Keyboard", Argsn: 1, @@ -95112,6 +112102,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // min-size returns the minimal size of the select entry. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * Go(fyne.Size) "Go(*widget.SelectEntry)//min-size": { Doc: "(*widget.SelectEntry).MinSize", Argsn: 1, @@ -95141,6 +112139,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * m - Go(*desktop.MouseEvent) "Go(*widget.SelectEntry)//mouse-down": { Doc: "(*widget.SelectEntry).MouseDown", Argsn: 2, @@ -95187,6 +112188,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * m - Go(*desktop.MouseEvent) "Go(*widget.SelectEntry)//mouse-up": { Doc: "(*widget.SelectEntry).MouseUp", Argsn: 2, @@ -95233,6 +112237,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // move changes the relative position of the select entry. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.SelectEntry) + // * pos - Go(fyne.Position) "Go(*widget.SelectEntry)//move": { Doc: "(*widget.SelectEntry).Move", Argsn: 2, @@ -95273,6 +112284,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * multi-line - bool + // Result: + // * bool "Go(*widget.SelectEntry)//multi-line!": { Doc: "Set *widget.SelectEntry MultiLine value", Argsn: 2, @@ -95307,6 +112322,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.SelectEntry)//multi-line?": { Doc: "Get *widget.SelectEntry MultiLine value", Argsn: 1, @@ -95335,6 +112352,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-changed - fn { string } + // Result: + // * fn { string } "Go(*widget.SelectEntry)//on-changed!": { Doc: "Set *widget.SelectEntry OnChanged value", Argsn: 2, @@ -95386,6 +112407,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.SelectEntry)//on-changed?": { Doc: "Get *widget.SelectEntry OnChanged value", Argsn: 1, @@ -95424,6 +112447,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-cursor-changed - fn { } + // Result: + // * fn { } "Go(*widget.SelectEntry)//on-cursor-changed!": { Doc: "Set *widget.SelectEntry OnCursorChanged value", Argsn: 2, @@ -95473,6 +112500,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.SelectEntry)//on-cursor-changed?": { Doc: "Get *widget.SelectEntry OnCursorChanged value", Argsn: 1, @@ -95504,6 +112533,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-submitted - fn { string } + // Result: + // * fn { string } "Go(*widget.SelectEntry)//on-submitted!": { Doc: "Set *widget.SelectEntry OnSubmitted value", Argsn: 2, @@ -95555,6 +112588,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.SelectEntry)//on-submitted?": { Doc: "Get *widget.SelectEntry OnSubmitted value", Argsn: 1, @@ -95593,6 +112628,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * password - bool + // Result: + // * bool "Go(*widget.SelectEntry)//password!": { Doc: "Set *widget.SelectEntry Password value", Argsn: 2, @@ -95627,6 +112666,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.SelectEntry)//password?": { Doc: "Get *widget.SelectEntry Password value", Argsn: 1, @@ -95655,6 +112696,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * place-holder - string + // Result: + // * string "Go(*widget.SelectEntry)//place-holder!": { Doc: "Set *widget.SelectEntry PlaceHolder value", Argsn: 2, @@ -95689,6 +112734,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.SelectEntry)//place-holder?": { Doc: "Get *widget.SelectEntry PlaceHolder value", Argsn: 1, @@ -95717,6 +112764,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * Go(fyne.position) "Go(*widget.SelectEntry)//position": { Doc: "(*widget.SelectEntry).Position", Argsn: 1, @@ -95746,6 +112797,37 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + "Go(*widget.SelectEntry)//redo": { + Doc: "(*widget.SelectEntry).Redo", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.SelectEntry + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.SelectEntry); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//redo: arg 1: " + "expected native of type *widget.SelectEntry, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//redo: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//redo: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Redo() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//refresh": { Doc: "(*widget.SelectEntry).Refresh", Argsn: 1, @@ -95773,6 +112855,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize changes the size of the select entry. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.SelectEntry) + // * size - Go(fyne.Size) "Go(*widget.SelectEntry)//resize": { Doc: "(*widget.SelectEntry).Resize", Argsn: 2, @@ -95813,6 +112902,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * string "Go(*widget.SelectEntry)//selected-text": { Doc: "(*widget.SelectEntry).SelectedText", Argsn: 1, @@ -95842,6 +112935,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * count - integer "Go(*widget.SelectEntry)//set-min-rows-visible": { Doc: "(*widget.SelectEntry).SetMinRowsVisible", Argsn: 2, @@ -95876,6 +112972,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * callback - fn { Go(error) } "Go(*widget.SelectEntry)//set-on-validation-changed": { Doc: "(*widget.SelectEntry).SetOnValidationChanged", Argsn: 2, @@ -95929,6 +113028,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-options sets the options the user might select from. + // + // Args: + // * recv - Go(*widget.SelectEntry) + // * options - block[string] "Go(*widget.SelectEntry)//set-options": { Doc: "(*widget.SelectEntry).SetOptions", Argsn: 2, @@ -95957,8 +113061,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.String); ok { - arg1Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(*widget.SelectEntry)//set-options: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -95978,6 +113083,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * text - string "Go(*widget.SelectEntry)//set-place-holder": { Doc: "(*widget.SelectEntry).SetPlaceHolder", Argsn: 2, @@ -96012,6 +113120,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * text - string "Go(*widget.SelectEntry)//set-text": { Doc: "(*widget.SelectEntry).SetText", Argsn: 2, @@ -96046,6 +113157,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * err - Go(error) "Go(*widget.SelectEntry)//set-validation-error": { Doc: "(*widget.SelectEntry).SetValidationError", Argsn: 2, @@ -96089,6 +113203,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//show": { Doc: "(*widget.SelectEntry).Show", Argsn: 1, @@ -96116,6 +113232,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * Go(fyne.size) "Go(*widget.SelectEntry)//size": { Doc: "(*widget.SelectEntry).Size", Argsn: 1, @@ -96145,6 +113265,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * ev - Go(*fyne.PointEvent) "Go(*widget.SelectEntry)//tapped": { Doc: "(*widget.SelectEntry).Tapped", Argsn: 2, @@ -96191,6 +113314,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * pe - Go(*fyne.PointEvent) "Go(*widget.SelectEntry)//tapped-secondary": { Doc: "(*widget.SelectEntry).TappedSecondary", Argsn: 2, @@ -96237,6 +113363,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.SelectEntry)//text!": { Doc: "Set *widget.SelectEntry Text value", Argsn: 2, @@ -96271,6 +113401,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * text-style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.TextStyle) "Go(*widget.SelectEntry)//text-style!": { Doc: "Set *widget.SelectEntry TextStyle value", Argsn: 2, @@ -96317,6 +113451,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.TextStyle) "Go(*widget.SelectEntry)//text-style?": { Doc: "Get *widget.SelectEntry TextStyle value", Argsn: 1, @@ -96345,6 +113481,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "Go(*widget.SelectEntry)//text?": { Doc: "Get *widget.SelectEntry Text value", Argsn: 1, @@ -96373,6 +113511,42 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * Go(fyne.theme) + "Go(*widget.SelectEntry)//theme": { + Doc: "(*widget.SelectEntry).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.SelectEntry + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.SelectEntry); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//theme: arg 1: " + "expected native of type *widget.SelectEntry, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * 1 - Go(*mobile.TouchEvent) "Go(*widget.SelectEntry)//touch-cancel": { Doc: "(*widget.SelectEntry).TouchCancel", Argsn: 2, @@ -96419,6 +113593,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * ev - Go(*mobile.TouchEvent) "Go(*widget.SelectEntry)//touch-down": { Doc: "(*widget.SelectEntry).TouchDown", Argsn: 2, @@ -96465,6 +113642,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * 1 - Go(*mobile.TouchEvent) "Go(*widget.SelectEntry)//touch-up": { Doc: "(*widget.SelectEntry).TouchUp", Argsn: 2, @@ -96511,6 +113691,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * key - Go(*fyne.KeyEvent) "Go(*widget.SelectEntry)//typed-key": { Doc: "(*widget.SelectEntry).TypedKey", Argsn: 2, @@ -96557,6 +113740,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * r - Go(rune) "Go(*widget.SelectEntry)//typed-rune": { Doc: "(*widget.SelectEntry).TypedRune", Argsn: 2, @@ -96597,6 +113783,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // * shortcut - Go(fyne.Shortcut) "Go(*widget.SelectEntry)//typed-shortcut": { Doc: "(*widget.SelectEntry).TypedShortcut", Argsn: 2, @@ -96650,6 +113839,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) "Go(*widget.SelectEntry)//unbind": { Doc: "(*widget.SelectEntry).Unbind", Argsn: 1, @@ -96677,6 +113868,39 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + "Go(*widget.SelectEntry)//undo": { + Doc: "(*widget.SelectEntry).Undo", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.SelectEntry + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.SelectEntry); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//undo: arg 1: " + "expected native of type *widget.SelectEntry, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//undo: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.SelectEntry)//undo: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Undo() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * error "Go(*widget.SelectEntry)//validate": { Doc: "(*widget.SelectEntry).Validate", Argsn: 1, @@ -96712,6 +113936,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * validator - fn { string } -> Go(error) + // Result: + // * fn { string } -> Go(error) "Go(*widget.SelectEntry)//validator!": { Doc: "Set *widget.SelectEntry Validator value", Argsn: 2, @@ -96804,6 +114032,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } -> Go(error) "Go(*widget.SelectEntry)//validator?": { Doc: "Get *widget.SelectEntry Validator value", Argsn: 1, @@ -96850,6 +114080,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.SelectEntry) + // Result: + // * bool "Go(*widget.SelectEntry)//visible": { Doc: "(*widget.SelectEntry).Visible", Argsn: 1, @@ -96879,6 +114113,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * wrapping - integer + // Result: + // * integer "Go(*widget.SelectEntry)//wrapping!": { Doc: "Set *widget.SelectEntry Wrapping value", Argsn: 2, @@ -96927,6 +114165,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.SelectEntry)//wrapping?": { Doc: "Get *widget.SelectEntry Wrapping value", Argsn: 1, @@ -96955,6 +114195,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Separator)//base-widget!": { Doc: "Set *widget.Separator BaseWidget value", Argsn: 2, @@ -97001,6 +114245,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Separator)//base-widget?": { Doc: "Get *widget.Separator BaseWidget value", Argsn: 1, @@ -97029,6 +114275,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer returns a new renderer for the separator. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Separator) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Separator)//create-renderer": { Doc: "(*widget.Separator).CreateRenderer", Argsn: 1, @@ -97058,6 +114312,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Separator) + // * wid - Go(fyne.Widget) "Go(*widget.Separator)//extend-base-widget": { Doc: "(*widget.Separator).ExtendBaseWidget", Argsn: 2, @@ -97111,6 +114368,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Separator)//hidden!": { Doc: "Set *widget.Separator Hidden value", Argsn: 2, @@ -97145,6 +114406,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Separator)//hidden?": { Doc: "Get *widget.Separator Hidden value", Argsn: 1, @@ -97173,6 +114436,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Separator) "Go(*widget.Separator)//hide": { Doc: "(*widget.Separator).Hide", Argsn: 1, @@ -97200,6 +114465,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the minimal size of the separator. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Separator) + // Result: + // * Go(fyne.Size) "Go(*widget.Separator)//min-size": { Doc: "(*widget.Separator).MinSize", Argsn: 1, @@ -97229,6 +114502,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Separator) + // * pos - Go(fyne.Position) "Go(*widget.Separator)//move": { Doc: "(*widget.Separator).Move", Argsn: 2, @@ -97269,6 +114545,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Separator) + // Result: + // * Go(fyne.position) "Go(*widget.Separator)//position": { Doc: "(*widget.Separator).Position", Argsn: 1, @@ -97298,6 +114578,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Separator) "Go(*widget.Separator)//refresh": { Doc: "(*widget.Separator).Refresh", Argsn: 1, @@ -97325,6 +114607,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Separator) + // * size - Go(fyne.Size) "Go(*widget.Separator)//resize": { Doc: "(*widget.Separator).Resize", Argsn: 2, @@ -97365,6 +114650,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Separator) "Go(*widget.Separator)//show": { Doc: "(*widget.Separator).Show", Argsn: 1, @@ -97392,6 +114679,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Separator) + // Result: + // * Go(fyne.size) "Go(*widget.Separator)//size": { Doc: "(*widget.Separator).Size", Argsn: 1, @@ -97421,6 +114712,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Separator) + // Result: + // * Go(fyne.theme) + "Go(*widget.Separator)//theme": { + Doc: "(*widget.Separator).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Separator + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Separator); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Separator)//theme: arg 1: " + "expected native of type *widget.Separator, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Separator)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Separator)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Separator) + // Result: + // * bool "Go(*widget.Separator)//visible": { Doc: "(*widget.Separator).Visible", Argsn: 1, @@ -97450,6 +114778,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // inline returns false as a separator should be full width. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) + // Result: + // * bool "Go(*widget.SeparatorSegment)//inline": { Doc: "(*widget.SeparatorSegment).Inline", Argsn: 1, @@ -97479,6 +114813,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select does nothing for a separator. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) + // * - - Go(fyne.Position) + // * - - Go(fyne.Position) "Go(*widget.SeparatorSegment)//select": { Doc: "(*widget.SeparatorSegment).Select", Argsn: 3, @@ -97532,6 +114872,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text returns the empty string for this separator. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) + // Result: + // * string "Go(*widget.SeparatorSegment)//selected-text": { Doc: "(*widget.SeparatorSegment).SelectedText", Argsn: 1, @@ -97561,6 +114907,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // textual returns no content for a separator element. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) + // Result: + // * string "Go(*widget.SeparatorSegment)//textual": { Doc: "(*widget.SeparatorSegment).Textual", Argsn: 1, @@ -97590,6 +114942,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // unselect does nothing for a separator. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) "Go(*widget.SeparatorSegment)//unselect": { Doc: "(*widget.SeparatorSegment).Unselect", Argsn: 1, @@ -97617,6 +114973,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // update doesnt need to change a separator visual. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) + // * 1 - Go(fyne.CanvasObject) "Go(*widget.SeparatorSegment)//update": { Doc: "(*widget.SeparatorSegment).Update", Argsn: 2, @@ -97670,6 +115031,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // visual returns the separator element for this segment. + // + // Args: + // * recv - Go(*widget.SeparatorSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.SeparatorSegment)//visual": { Doc: "(*widget.SeparatorSegment).Visual", Argsn: 1, @@ -97699,6 +115066,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Slider)//base-widget!": { Doc: "Set *widget.Slider BaseWidget value", Argsn: 2, @@ -97745,6 +115116,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Slider)//base-widget?": { Doc: "Get *widget.Slider BaseWidget value", Argsn: 1, @@ -97773,6 +115146,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // bind connects the specified data source to this Slider. + // The current value will be displayed and any changes in the data will cause the widget to update. + // User interactions with this Slider will set the value into the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Slider) + // * data - Go(binding.Float) "Go(*widget.Slider)//bind": { Doc: "(*widget.Slider).Bind", Argsn: 2, @@ -97826,6 +115208,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // create-renderer links this widget to its renderer. + // + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Slider)//create-renderer": { Doc: "(*widget.Slider).CreateRenderer", Argsn: 1, @@ -97855,6 +115243,80 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disable disables the slider + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.Slider) + "Go(*widget.Slider)//disable": { + Doc: "(*widget.Slider).Disable", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Slider + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Slider); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//disable: arg 1: " + "expected native of type *widget.Slider, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//disable: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//disable: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Disable() + return arg0 + }, + }, + // disabled returns true if the slider is currently disabled + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * bool + "Go(*widget.Slider)//disabled": { + Doc: "(*widget.Slider).Disabled", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Slider + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Slider); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//disabled: arg 1: " + "expected native of type *widget.Slider, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//disabled: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//disabled: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Disabled() + var res0Obj env.Object + res0Obj = *env.NewInteger(boolToInt64(res0)) + return res0Obj + }, + }, + // drag-end is called when the drag ends. + // + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//drag-end": { Doc: "(*widget.Slider).DragEnd", Argsn: 1, @@ -97882,6 +115344,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // dragged is called when a drag event occurs. + // + // Args: + // * recv - Go(*widget.Slider) + // * e - Go(*fyne.DragEvent) "Go(*widget.Slider)//dragged": { Doc: "(*widget.Slider).Dragged", Argsn: 2, @@ -97928,6 +115395,42 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // enable enables the slider + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.Slider) + "Go(*widget.Slider)//enable": { + Doc: "(*widget.Slider).Enable", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Slider + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Slider); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//enable: arg 1: " + "expected native of type *widget.Slider, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//enable: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//enable: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Enable() + return arg0 + }, + }, + // Args: + // * recv - Go(*widget.Slider) + // * wid - Go(fyne.Widget) "Go(*widget.Slider)//extend-base-widget": { Doc: "(*widget.Slider).ExtendBaseWidget", Argsn: 2, @@ -97981,6 +115484,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called when this item gained the focus. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//focus-gained": { Doc: "(*widget.Slider).FocusGained", Argsn: 1, @@ -98008,6 +115517,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called when this item lost the focus. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//focus-lost": { Doc: "(*widget.Slider).FocusLost", Argsn: 1, @@ -98035,6 +115550,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Slider)//hidden!": { Doc: "Set *widget.Slider Hidden value", Argsn: 2, @@ -98069,6 +115588,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Slider)//hidden?": { Doc: "Get *widget.Slider Hidden value", Argsn: 1, @@ -98097,6 +115618,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//hide": { Doc: "(*widget.Slider).Hide", Argsn: 1, @@ -98124,6 +115647,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * max - decimal + // Result: + // * decimal "Go(*widget.Slider)//max!": { Doc: "Set *widget.Slider Max value", Argsn: 2, @@ -98158,6 +115685,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*widget.Slider)//max?": { Doc: "Get *widget.Slider Max value", Argsn: 1, @@ -98186,6 +115715,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * min - decimal + // Result: + // * decimal "Go(*widget.Slider)//min!": { Doc: "Set *widget.Slider Min value", Argsn: 2, @@ -98220,6 +115753,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * Go(fyne.Size) "Go(*widget.Slider)//min-size": { Doc: "(*widget.Slider).MinSize", Argsn: 1, @@ -98249,6 +115788,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * decimal "Go(*widget.Slider)//min?": { Doc: "Get *widget.Slider Min value", Argsn: 1, @@ -98277,6 +115818,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // mouse-in is called when a desktop pointer enters the widget. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) + // * - - Go(*desktop.MouseEvent) "Go(*widget.Slider)//mouse-in": { Doc: "(*widget.Slider).MouseIn", Argsn: 2, @@ -98323,6 +115871,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-moved is called when a desktop pointer hovers over the widget. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) + // * - - Go(*desktop.MouseEvent) "Go(*widget.Slider)//mouse-moved": { Doc: "(*widget.Slider).MouseMoved", Argsn: 2, @@ -98369,6 +115924,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-out is called when a desktop pointer exits the widget + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//mouse-out": { Doc: "(*widget.Slider).MouseOut", Argsn: 1, @@ -98396,6 +115957,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Slider) + // * pos - Go(fyne.Position) "Go(*widget.Slider)//move": { Doc: "(*widget.Slider).Move", Argsn: 2, @@ -98436,6 +116000,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-change-ended - fn { decimal } + // Result: + // * fn { decimal } "Go(*widget.Slider)//on-change-ended!": { Doc: "Set *widget.Slider OnChangeEnded value", Argsn: 2, @@ -98487,6 +116055,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { decimal } "Go(*widget.Slider)//on-change-ended?": { Doc: "Get *widget.Slider OnChangeEnded value", Argsn: 1, @@ -98525,6 +116095,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-changed - fn { decimal } + // Result: + // * fn { decimal } "Go(*widget.Slider)//on-changed!": { Doc: "Set *widget.Slider OnChanged value", Argsn: 2, @@ -98576,6 +116150,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { decimal } "Go(*widget.Slider)//on-changed?": { Doc: "Get *widget.Slider OnChanged value", Argsn: 1, @@ -98614,6 +116190,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * orientation - integer + // Result: + // * integer "Go(*widget.Slider)//orientation!": { Doc: "Set *widget.Slider Orientation value", Argsn: 2, @@ -98662,6 +116242,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Slider)//orientation?": { Doc: "Get *widget.Slider Orientation value", Argsn: 1, @@ -98690,6 +116272,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * Go(fyne.position) "Go(*widget.Slider)//position": { Doc: "(*widget.Slider).Position", Argsn: 1, @@ -98719,6 +116305,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//refresh": { Doc: "(*widget.Slider).Refresh", Argsn: 1, @@ -98746,6 +116334,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Slider) + // * size - Go(fyne.Size) "Go(*widget.Slider)//resize": { Doc: "(*widget.Slider).Resize", Argsn: 2, @@ -98786,6 +116377,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-value updates the value of the slider and clamps the value to be within the range. + // + // Args: + // * recv - Go(*widget.Slider) + // * value - decimal "Go(*widget.Slider)//set-value": { Doc: "(*widget.Slider).SetValue", Argsn: 2, @@ -98820,6 +116416,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//show": { Doc: "(*widget.Slider).Show", Argsn: 1, @@ -98847,6 +116445,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * Go(fyne.size) "Go(*widget.Slider)//size": { Doc: "(*widget.Slider).Size", Argsn: 1, @@ -98876,6 +116478,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * step - decimal + // Result: + // * decimal "Go(*widget.Slider)//step!": { Doc: "Set *widget.Slider Step value", Argsn: 2, @@ -98910,6 +116516,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*widget.Slider)//step?": { Doc: "Get *widget.Slider Step value", Argsn: 1, @@ -98938,6 +116546,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // tapped is called when a pointer tapped event is captured. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) + // * e - Go(*fyne.PointEvent) "Go(*widget.Slider)//tapped": { Doc: "(*widget.Slider).Tapped", Argsn: 2, @@ -98984,6 +116599,46 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * Go(fyne.theme) + "Go(*widget.Slider)//theme": { + Doc: "(*widget.Slider).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Slider + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Slider); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//theme: arg 1: " + "expected native of type *widget.Slider, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Slider)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // typed-key is called when this item receives a key event. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) + // * key - Go(*fyne.KeyEvent) "Go(*widget.Slider)//typed-key": { Doc: "(*widget.Slider).TypedKey", Argsn: 2, @@ -99030,6 +116685,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is called when this item receives a char event. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Slider) + // * - - Go(rune) "Go(*widget.Slider)//typed-rune": { Doc: "(*widget.Slider).TypedRune", Argsn: 2, @@ -99070,6 +116732,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unbind disconnects any configured data source from this Slider. + // The current value will remain at the last value of the data source. + // + // Since: 2.0 + // + // Args: + // * recv - Go(*widget.Slider) "Go(*widget.Slider)//unbind": { Doc: "(*widget.Slider).Unbind", Argsn: 1, @@ -99097,6 +116766,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * value - decimal + // Result: + // * decimal "Go(*widget.Slider)//value!": { Doc: "Set *widget.Slider Value value", Argsn: 2, @@ -99131,6 +116804,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * decimal "Go(*widget.Slider)//value?": { Doc: "Get *widget.Slider Value value", Argsn: 1, @@ -99159,6 +116834,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Slider) + // Result: + // * bool "Go(*widget.Slider)//visible": { Doc: "(*widget.Slider).Visible", Argsn: 1, @@ -99188,6 +116867,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Table)//base-widget!": { Doc: "Set *widget.Table BaseWidget value", Argsn: 2, @@ -99234,6 +116917,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Table)//base-widget?": { Doc: "Get *widget.Table BaseWidget value", Argsn: 1, @@ -99262,6 +116947,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * create-cell - fn { } -> Go(fyne.CanvasObject) + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.Table)//create-cell!": { Doc: "Set *widget.Table CreateCell value", Argsn: 2, @@ -99358,6 +117047,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.Table)//create-cell?": { Doc: "Get *widget.Table CreateCell value", Argsn: 1, @@ -99391,6 +117082,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * create-header - fn { } -> Go(fyne.CanvasObject) + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.Table)//create-header!": { Doc: "Set *widget.Table CreateHeader value", Argsn: 2, @@ -99487,6 +117182,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> Go(fyne.CanvasObject) "Go(*widget.Table)//create-header?": { Doc: "Get *widget.Table CreateHeader value", Argsn: 1, @@ -99520,6 +117217,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer returns a new renderer for the table. + // + // Implements: fyne.Widget + // + // Args: + // * recv - Go(*widget.Table) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Table)//create-renderer": { Doc: "(*widget.Table).CreateRenderer", Argsn: 1, @@ -99549,6 +117254,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Table) + // Result: + // * Go(desktop.cursor) "Go(*widget.Table)//cursor": { Doc: "(*widget.Table).Cursor", Argsn: 1, @@ -99578,6 +117287,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//drag-end": { Doc: "(*widget.Table).DragEnd", Argsn: 1, @@ -99605,6 +117316,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // * e - Go(*fyne.DragEvent) "Go(*widget.Table)//dragged": { Doc: "(*widget.Table).Dragged", Argsn: 2, @@ -99651,6 +117365,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // * wid - Go(fyne.Widget) "Go(*widget.Table)//extend-base-widget": { Doc: "(*widget.Table).ExtendBaseWidget", Argsn: 2, @@ -99704,6 +117421,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called after this table has gained focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//focus-gained": { Doc: "(*widget.Table).FocusGained", Argsn: 1, @@ -99731,6 +117454,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called after this Table has lost focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//focus-lost": { Doc: "(*widget.Table).FocusLost", Argsn: 1, @@ -99758,6 +117487,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Table)//hidden!": { Doc: "Set *widget.Table Hidden value", Argsn: 2, @@ -99792,6 +117525,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Table)//hidden?": { Doc: "Get *widget.Table Hidden value", Argsn: 1, @@ -99820,6 +117555,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//hide": { Doc: "(*widget.Table).Hide", Argsn: 1, @@ -99847,6 +117584,78 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hide-separators - bool + // Result: + // * bool + "Go(*widget.Table)//hide-separators!": { + Doc: "Set *widget.Table HideSeparators value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Table + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Table); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators!: arg 1: " + "expected native of type *widget.Table, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.HideSeparators = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*widget.Table)//hide-separators?": { + Doc: "Get *widget.Table HideSeparators value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Table + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Table); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators?: arg 1: " + "expected native of type *widget.Table, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//hide-separators?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.HideSeparators)) + return resObj + }, + }, + // Args: + // * length - fn { } -> [ integer integer ] + // Result: + // * fn { } -> [ integer integer ] "Go(*widget.Table)//length!": { Doc: "Set *widget.Table Length value", Argsn: 2, @@ -99940,6 +117749,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } -> [ integer integer ] "Go(*widget.Table)//length?": { Doc: "Get *widget.Table Length value", Argsn: 1, @@ -99978,6 +117789,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Table) + // Result: + // * Go(fyne.Size) "Go(*widget.Table)//min-size": { Doc: "(*widget.Table).MinSize", Argsn: 1, @@ -100007,6 +117822,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mouse-down response to desktop mouse event + // + // Args: + // * recv - Go(*widget.Table) + // * e - Go(*desktop.MouseEvent) "Go(*widget.Table)//mouse-down": { Doc: "(*widget.Table).MouseDown", Argsn: 2, @@ -100053,6 +117873,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // * ev - Go(*desktop.MouseEvent) "Go(*widget.Table)//mouse-in": { Doc: "(*widget.Table).MouseIn", Argsn: 2, @@ -100099,6 +117922,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // * ev - Go(*desktop.MouseEvent) "Go(*widget.Table)//mouse-moved": { Doc: "(*widget.Table).MouseMoved", Argsn: 2, @@ -100145,6 +117971,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//mouse-out": { Doc: "(*widget.Table).MouseOut", Argsn: 1, @@ -100172,6 +118000,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // mouse-up response to desktop mouse event + // + // Args: + // * recv - Go(*widget.Table) + // * 1 - Go(*desktop.MouseEvent) "Go(*widget.Table)//mouse-up": { Doc: "(*widget.Table).MouseUp", Argsn: 2, @@ -100218,6 +118051,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // * pos - Go(fyne.Position) "Go(*widget.Table)//move": { Doc: "(*widget.Table).Move", Argsn: 2, @@ -100258,6 +118094,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-selected - fn { Go(widget.TableCellID) } + // Result: + // * fn { Go(widget.TableCellID) } "Go(*widget.Table)//on-selected!": { Doc: "Set *widget.Table OnSelected value", Argsn: 2, @@ -100309,6 +118149,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(widget.TableCellID) } "Go(*widget.Table)//on-selected?": { Doc: "Get *widget.Table OnSelected value", Argsn: 1, @@ -100353,6 +118195,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-unselected - fn { Go(widget.TableCellID) } + // Result: + // * fn { Go(widget.TableCellID) } "Go(*widget.Table)//on-unselected!": { Doc: "Set *widget.Table OnUnselected value", Argsn: 2, @@ -100404,6 +118250,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(widget.TableCellID) } "Go(*widget.Table)//on-unselected?": { Doc: "Get *widget.Table OnUnselected value", Argsn: 1, @@ -100448,6 +118296,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Table) + // Result: + // * Go(fyne.position) "Go(*widget.Table)//position": { Doc: "(*widget.Table).Position", Argsn: 1, @@ -100477,6 +118329,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//refresh": { Doc: "(*widget.Table).Refresh", Argsn: 1, @@ -100504,6 +118358,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh-item refreshes a single item, specified by the item ID passed in. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Table) + // * id - Go(widget.TableCellID) "Go(*widget.Table)//refresh-item": { Doc: "(*widget.Table).RefreshItem", Argsn: 2, @@ -100544,6 +118405,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // * size - Go(fyne.Size) "Go(*widget.Table)//resize": { Doc: "(*widget.Table).Resize", Argsn: 2, @@ -100584,6 +118448,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to will scroll to the given cell without changing the selection. + // Attempting to scroll beyond the limits of the table will scroll to + // the edge of the table instead. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Table) + // * id - Go(widget.TableCellID) "Go(*widget.Table)//scroll-to": { Doc: "(*widget.Table).ScrollTo", Argsn: 2, @@ -100624,6 +118497,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-bottom scrolls to the last row in the table + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//scroll-to-bottom": { Doc: "(*widget.Table).ScrollToBottom", Argsn: 1, @@ -100651,6 +118530,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-leading scrolls horizontally to the leading edge of the table + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//scroll-to-leading": { Doc: "(*widget.Table).ScrollToLeading", Argsn: 1, @@ -100678,6 +118563,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-top scrolls to the first row in the table + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//scroll-to-top": { Doc: "(*widget.Table).ScrollToTop", Argsn: 1, @@ -100705,6 +118596,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-trailing scrolls horizontally to the trailing edge of the table + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//scroll-to-trailing": { Doc: "(*widget.Table).ScrollToTrailing", Argsn: 1, @@ -100732,6 +118629,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select will mark the specified cell as selected. + // + // Args: + // * recv - Go(*widget.Table) + // * id - Go(widget.TableCellID) "Go(*widget.Table)//select": { Doc: "(*widget.Table).Select", Argsn: 2, @@ -100772,6 +118674,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-column-width supports changing the width of the specified column. Columns normally take the width of the template + // cell returned from the CreateCell callback. The width parameter uses the same units as a fyne.Size type and refers + // to the internal content width not including the divider size. + // + // Since: 1.4.1 + // + // Args: + // * recv - Go(*widget.Table) + // * id - integer + // * width - decimal "Go(*widget.Table)//set-column-width": { Doc: "(*widget.Table).SetColumnWidth", Argsn: 3, @@ -100813,6 +118725,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-row-height supports changing the height of the specified row. Rows normally take the height of the template + // cell returned from the CreateCell callback. The height parameter uses the same units as a fyne.Size type and refers + // to the internal content height not including the divider size. + // + // Since: 2.3 + // + // Args: + // * recv - Go(*widget.Table) + // * id - integer + // * height - decimal "Go(*widget.Table)//set-row-height": { Doc: "(*widget.Table).SetRowHeight", Argsn: 3, @@ -100854,6 +118776,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//show": { Doc: "(*widget.Table).Show", Argsn: 1, @@ -100881,6 +118805,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * show-header-column - bool + // Result: + // * bool "Go(*widget.Table)//show-header-column!": { Doc: "Set *widget.Table ShowHeaderColumn value", Argsn: 2, @@ -100915,6 +118843,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Table)//show-header-column?": { Doc: "Get *widget.Table ShowHeaderColumn value", Argsn: 1, @@ -100943,6 +118873,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * show-header-row - bool + // Result: + // * bool "Go(*widget.Table)//show-header-row!": { Doc: "Set *widget.Table ShowHeaderRow value", Argsn: 2, @@ -100977,6 +118911,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Table)//show-header-row?": { Doc: "Get *widget.Table ShowHeaderRow value", Argsn: 1, @@ -101005,6 +118941,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Table) + // Result: + // * Go(fyne.size) "Go(*widget.Table)//size": { Doc: "(*widget.Table).Size", Argsn: 1, @@ -101034,6 +118974,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * sticky-column-count - integer + // Result: + // * integer "Go(*widget.Table)//sticky-column-count!": { Doc: "Set *widget.Table StickyColumnCount value", Argsn: 2, @@ -101068,6 +119012,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Table)//sticky-column-count?": { Doc: "Get *widget.Table StickyColumnCount value", Argsn: 1, @@ -101096,6 +119042,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * sticky-row-count - integer + // Result: + // * integer "Go(*widget.Table)//sticky-row-count!": { Doc: "Set *widget.Table StickyRowCount value", Argsn: 2, @@ -101130,6 +119080,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.Table)//sticky-row-count?": { Doc: "Get *widget.Table StickyRowCount value", Argsn: 1, @@ -101158,6 +119110,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Table) + // * e - Go(*fyne.PointEvent) "Go(*widget.Table)//tapped": { Doc: "(*widget.Table).Tapped", Argsn: 2, @@ -101204,6 +119159,44 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Table) + // Result: + // * Go(fyne.theme) + "Go(*widget.Table)//theme": { + Doc: "(*widget.Table).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Table + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Table); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//theme: arg 1: " + "expected native of type *widget.Table, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Table)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // touch-cancel response to mobile touch event + // + // Args: + // * recv - Go(*widget.Table) + // * 1 - Go(*mobile.TouchEvent) "Go(*widget.Table)//touch-cancel": { Doc: "(*widget.Table).TouchCancel", Argsn: 2, @@ -101250,6 +119243,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // touch-down response to mobile touch event + // + // Args: + // * recv - Go(*widget.Table) + // * e - Go(*mobile.TouchEvent) "Go(*widget.Table)//touch-down": { Doc: "(*widget.Table).TouchDown", Argsn: 2, @@ -101296,6 +119294,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // touch-up response to mobile touch event + // + // Args: + // * recv - Go(*widget.Table) + // * 1 - Go(*mobile.TouchEvent) "Go(*widget.Table)//touch-up": { Doc: "(*widget.Table).TouchUp", Argsn: 2, @@ -101342,6 +119345,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-key is called if a key event happens while this Table is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Table) + // * event - Go(*fyne.KeyEvent) "Go(*widget.Table)//typed-key": { Doc: "(*widget.Table).TypedKey", Argsn: 2, @@ -101388,6 +119398,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is called if a text event happens while this Table is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Table) + // * - - Go(rune) "Go(*widget.Table)//typed-rune": { Doc: "(*widget.Table).TypedRune", Argsn: 2, @@ -101428,6 +119445,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect will mark the cell provided by id as unselected. + // + // Args: + // * recv - Go(*widget.Table) + // * id - Go(widget.TableCellID) "Go(*widget.Table)//unselect": { Doc: "(*widget.Table).Unselect", Argsn: 2, @@ -101468,6 +119490,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect-all will mark all cells as unselected. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Table) "Go(*widget.Table)//unselect-all": { Doc: "(*widget.Table).UnselectAll", Argsn: 1, @@ -101495,6 +119523,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * update-cell - fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } + // Result: + // * fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } "Go(*widget.Table)//update-cell!": { Doc: "Set *widget.Table UpdateCell value", Argsn: 2, @@ -101547,6 +119579,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } "Go(*widget.Table)//update-cell?": { Doc: "Get *widget.Table UpdateCell value", Argsn: 1, @@ -101617,6 +119651,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * update-header - fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } + // Result: + // * fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } "Go(*widget.Table)//update-header!": { Doc: "Set *widget.Table UpdateHeader value", Argsn: 2, @@ -101669,6 +119707,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } "Go(*widget.Table)//update-header?": { Doc: "Get *widget.Table UpdateHeader value", Argsn: 1, @@ -101739,6 +119779,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Table) + // Result: + // * bool "Go(*widget.Table)//visible": { Doc: "(*widget.Table).Visible", Argsn: 1, @@ -101768,6 +119812,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * col - integer + // Result: + // * integer "Go(*widget.TableCellID)//col!": { Doc: "Set *widget.TableCellID Col value", Argsn: 2, @@ -101802,6 +119850,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.TableCellID)//col?": { Doc: "Get *widget.TableCellID Col value", Argsn: 1, @@ -101830,6 +119880,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * row - integer + // Result: + // * integer "Go(*widget.TableCellID)//row!": { Doc: "Set *widget.TableCellID Row value", Argsn: 2, @@ -101864,6 +119918,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.TableCellID)//row?": { Doc: "Get *widget.TableCellID Row value", Argsn: 1, @@ -101892,6 +119948,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.TextGrid)//base-widget!": { Doc: "Set *widget.TextGrid BaseWidget value", Argsn: 2, @@ -101938,6 +119998,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.TextGrid)//base-widget?": { Doc: "Get *widget.TextGrid BaseWidget value", Argsn: 1, @@ -101966,6 +120028,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to it's renderer + // + // Args: + // * recv - Go(*widget.TextGrid) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.TextGrid)//create-renderer": { Doc: "(*widget.TextGrid).CreateRenderer", Argsn: 1, @@ -101995,6 +120063,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.TextGrid) + // * wid - Go(fyne.Widget) "Go(*widget.TextGrid)//extend-base-widget": { Doc: "(*widget.TextGrid).ExtendBaseWidget", Argsn: 2, @@ -102048,6 +120119,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.TextGrid)//hidden!": { Doc: "Set *widget.TextGrid Hidden value", Argsn: 2, @@ -102082,6 +120157,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.TextGrid)//hidden?": { Doc: "Get *widget.TextGrid Hidden value", Argsn: 1, @@ -102110,6 +120187,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.TextGrid) "Go(*widget.TextGrid)//hide": { Doc: "(*widget.TextGrid).Hide", Argsn: 1, @@ -102137,6 +120216,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // min-size returns the smallest size this widget can shrink to + // + // Args: + // * recv - Go(*widget.TextGrid) + // Result: + // * Go(fyne.Size) "Go(*widget.TextGrid)//min-size": { Doc: "(*widget.TextGrid).MinSize", Argsn: 1, @@ -102166,6 +120251,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.TextGrid) + // * pos - Go(fyne.Position) "Go(*widget.TextGrid)//move": { Doc: "(*widget.TextGrid).Move", Argsn: 2, @@ -102206,6 +120294,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.TextGrid) + // Result: + // * Go(fyne.position) "Go(*widget.TextGrid)//position": { Doc: "(*widget.TextGrid).Position", Argsn: 1, @@ -102235,6 +120327,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.TextGrid) "Go(*widget.TextGrid)//refresh": { Doc: "(*widget.TextGrid).Refresh", Argsn: 1, @@ -102262,6 +120356,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize is called when this widget changes size. We should make sure that we refresh cells. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * size - Go(fyne.Size) "Go(*widget.TextGrid)//resize": { Doc: "(*widget.TextGrid).Resize", Argsn: 2, @@ -102302,6 +120401,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // row returns a copy of the content in a specified row as a TextGridrow. + // If the index is out of bounds it returns an empty row object. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // Result: + // * Go(widget.TextGridrow) "Go(*widget.TextGrid)//row": { Doc: "(*widget.TextGrid).Row", Argsn: 2, @@ -102338,6 +120445,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // row-text returns a string representation of the content at the row specified. + // If the index is out of bounds it returns an empty string. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // Result: + // * string "Go(*widget.TextGrid)//row-text": { Doc: "(*widget.TextGrid).RowText", Argsn: 2, @@ -102374,6 +120489,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * rows - block[Go(widget.TextGridRow)] + // Result: + // * block[Go(widget.TextGridRow)] "Go(*widget.TextGrid)//rows!": { Doc: "Set *widget.TextGrid Rows value", Argsn: 2, @@ -102402,10 +120521,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]widget.TextGridRow, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*widget.TextGridRow); ok { - newVal[i] = *vc + (*iv) = *vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.TextGrid)//rows!: arg 2: " + "block item: " + "expected native of type *widget.TextGridRow, but got " + objectDebugString(ps.Idx, v)) @@ -102429,6 +120549,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(widget.TextGridRow)] "Go(*widget.TextGrid)//rows?": { Doc: "Get *widget.TextGrid Rows value", Argsn: 1, @@ -102463,6 +120585,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-cell sets a grid data to the cell at named row and column. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // * col - integer + // * cell - Go(widget.TextGridCell) "Go(*widget.TextGrid)//set-cell": { Doc: "(*widget.TextGrid).SetCell", Argsn: 4, @@ -102517,6 +120646,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-row updates the specified row of the grid's contents using the specified content and style and then refreshes. + // If the row is beyond the end of the current buffer it will be expanded. + // Tab characters are not padded with spaces. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // * content - Go(widget.TextGridRow) "Go(*widget.TextGrid)//set-row": { Doc: "(*widget.TextGrid).SetRow", Argsn: 3, @@ -102564,6 +120701,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-row-style sets a grid style to all the cells cell at the specified row. + // Any cells in this row with their own style will override this value when displayed. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // * style - Go(widget.TextGridStyle) "Go(*widget.TextGrid)//set-row-style": { Doc: "(*widget.TextGrid).SetRowStyle", Argsn: 3, @@ -102624,6 +120768,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-rune sets a character to the cell at named row and column. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // * col - integer + // * r - Go(rune) "Go(*widget.TextGrid)//set-rune": { Doc: "(*widget.TextGrid).SetRune", Argsn: 4, @@ -102678,6 +120829,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-style sets a grid style to the cell at named row and column. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * row - integer + // * col - integer + // * style - Go(widget.TextGridStyle) "Go(*widget.TextGrid)//set-style": { Doc: "(*widget.TextGrid).SetStyle", Argsn: 4, @@ -102745,6 +120903,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // set-text updates the buffer of this textgrid to contain the specified text. + // New lines and columns will be added as required. Lines are separated by '\n'. + // The grid will use default text style and any previous content and style will be removed. + // Tab characters are padded with spaces to the next tab stop. + // + // Args: + // * recv - Go(*widget.TextGrid) + // * text - string "Go(*widget.TextGrid)//set-text": { Doc: "(*widget.TextGrid).SetText", Argsn: 2, @@ -102779,6 +120945,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.TextGrid) "Go(*widget.TextGrid)//show": { Doc: "(*widget.TextGrid).Show", Argsn: 1, @@ -102806,6 +120974,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * show-line-numbers - bool + // Result: + // * bool "Go(*widget.TextGrid)//show-line-numbers!": { Doc: "Set *widget.TextGrid ShowLineNumbers value", Argsn: 2, @@ -102840,6 +121012,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.TextGrid)//show-line-numbers?": { Doc: "Get *widget.TextGrid ShowLineNumbers value", Argsn: 1, @@ -102868,6 +121042,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * show-whitespace - bool + // Result: + // * bool "Go(*widget.TextGrid)//show-whitespace!": { Doc: "Set *widget.TextGrid ShowWhitespace value", Argsn: 2, @@ -102902,6 +121080,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.TextGrid)//show-whitespace?": { Doc: "Get *widget.TextGrid ShowWhitespace value", Argsn: 1, @@ -102930,6 +121110,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.TextGrid) + // Result: + // * Go(fyne.size) "Go(*widget.TextGrid)//size": { Doc: "(*widget.TextGrid).Size", Argsn: 1, @@ -102959,6 +121143,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * tab-width - integer + // Result: + // * integer "Go(*widget.TextGrid)//tab-width!": { Doc: "Set *widget.TextGrid TabWidth value", Argsn: 2, @@ -102993,6 +121181,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * integer "Go(*widget.TextGrid)//tab-width?": { Doc: "Get *widget.TextGrid TabWidth value", Argsn: 1, @@ -103021,6 +121211,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // text returns the contents of the buffer as a single string (with no style information). + // It reconstructs the lines by joining with a `\n` character. + // Tab characters have padded spaces removed. + // + // Args: + // * recv - Go(*widget.textGrid) + // Result: + // * string "Go(*widget.TextGrid)//text": { Doc: "(*widget.TextGrid).Text", Argsn: 1, @@ -103050,6 +121248,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.TextGrid) + // Result: + // * Go(fyne.theme) + "Go(*widget.TextGrid)//theme": { + Doc: "(*widget.TextGrid).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.TextGrid + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.TextGrid); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.TextGrid)//theme: arg 1: " + "expected native of type *widget.TextGrid, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.TextGrid)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.TextGrid)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.TextGrid) + // Result: + // * bool "Go(*widget.TextGrid)//visible": { Doc: "(*widget.TextGrid).Visible", Argsn: 1, @@ -103079,6 +121314,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * rune - Go(rune) + // Result: + // * Go(rune) "Go(*widget.TextGridCell)//rune!": { Doc: "Set *widget.TextGridCell Rune value", Argsn: 2, @@ -103119,6 +121358,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(rune) "Go(*widget.TextGridCell)//rune?": { Doc: "Get *widget.TextGridCell Rune value", Argsn: 1, @@ -103147,6 +121388,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * style - Go(widget.TextGridStyle) + // Result: + // * Go(widget.TextGridStyle) "Go(*widget.TextGridCell)//style!": { Doc: "Set *widget.TextGridCell Style value", Argsn: 2, @@ -103200,6 +121445,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.TextGridStyle) "Go(*widget.TextGridCell)//style?": { Doc: "Get *widget.TextGridCell Style value", Argsn: 1, @@ -103228,6 +121475,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * cells - block[Go(widget.TextGridCell)] + // Result: + // * block[Go(widget.TextGridCell)] "Go(*widget.TextGridRow)//cells!": { Doc: "Set *widget.TextGridRow Cells value", Argsn: 2, @@ -103256,10 +121507,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]widget.TextGridCell, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*widget.TextGridCell); ok { - newVal[i] = *vc + (*iv) = *vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.TextGridRow)//cells!: arg 2: " + "block item: " + "expected native of type *widget.TextGridCell, but got " + objectDebugString(ps.Idx, v)) @@ -103283,6 +121535,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(widget.TextGridCell)] "Go(*widget.TextGridRow)//cells?": { Doc: "Get *widget.TextGridRow Cells value", Argsn: 1, @@ -103317,6 +121571,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * style - Go(widget.TextGridStyle) + // Result: + // * Go(widget.TextGridStyle) "Go(*widget.TextGridRow)//style!": { Doc: "Set *widget.TextGridRow Style value", Argsn: 2, @@ -103370,6 +121628,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.TextGridStyle) "Go(*widget.TextGridRow)//style?": { Doc: "Get *widget.TextGridRow Style value", Argsn: 1, @@ -103398,6 +121658,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // inline should return true if this text can be included within other elements, or false if it creates a new block. + // + // Args: + // * recv - Go(*widget.TextSegment) + // Result: + // * bool "Go(*widget.TextSegment)//inline": { Doc: "(*widget.TextSegment).Inline", Argsn: 1, @@ -103427,6 +121693,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select tells the segment that the user is selecting the content between the two positions. + // + // Args: + // * recv - Go(*widget.TextSegment) + // * begin - Go(fyne.Position) + // * end - Go(fyne.Position) "Go(*widget.TextSegment)//select": { Doc: "(*widget.TextSegment).Select", Argsn: 3, @@ -103480,6 +121752,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // selected-text should return the text representation of any content currently selected through the Select call. + // + // Args: + // * recv - Go(*widget.TextSegment) + // Result: + // * string "Go(*widget.TextSegment)//selected-text": { Doc: "(*widget.TextSegment).SelectedText", Argsn: 1, @@ -103509,6 +121787,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * style - Go(widget.RichTextStyle) + // Result: + // * Go(widget.RichTextStyle) "Go(*widget.TextSegment)//style!": { Doc: "Set *widget.TextSegment Style value", Argsn: 2, @@ -103555,6 +121837,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.RichTextStyle) "Go(*widget.TextSegment)//style?": { Doc: "Get *widget.TextSegment Style value", Argsn: 1, @@ -103583,6 +121867,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * text - string + // Result: + // * string "Go(*widget.TextSegment)//text!": { Doc: "Set *widget.TextSegment Text value", Argsn: 2, @@ -103617,6 +121905,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.TextSegment)//text?": { Doc: "Get *widget.TextSegment Text value", Argsn: 1, @@ -103645,6 +121935,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // textual returns the content of this segment rendered to plain text. + // + // Args: + // * recv - Go(*widget.TextSegment) + // Result: + // * string "Go(*widget.TextSegment)//textual": { Doc: "(*widget.TextSegment).Textual", Argsn: 1, @@ -103674,6 +121970,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // unselect tells the segment that the user is has cancelled the previous selection. + // + // Args: + // * recv - Go(*widget.TextSegment) "Go(*widget.TextSegment)//unselect": { Doc: "(*widget.TextSegment).Unselect", Argsn: 1, @@ -103701,6 +122001,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // update applies the current state of this text segment to an existing visual. + // + // Args: + // * recv - Go(*widget.TextSegment) + // * o - Go(fyne.CanvasObject) "Go(*widget.TextSegment)//update": { Doc: "(*widget.TextSegment).Update", Argsn: 2, @@ -103754,6 +122059,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // visual returns the graphical elements required to render this segment. + // + // Args: + // * recv - Go(*widget.TextSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.TextSegment)//visual": { Doc: "(*widget.TextSegment).Visual", Argsn: 1, @@ -103783,6 +122094,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // append a new ToolbarItem to the end of this Toolbar + // + // Args: + // * recv - Go(*widget.Toolbar) + // * item - Go(widget.ToolbarItem) "Go(*widget.Toolbar)//append": { Doc: "(*widget.Toolbar).Append", Argsn: 2, @@ -103836,6 +122152,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Toolbar)//base-widget!": { Doc: "Set *widget.Toolbar BaseWidget value", Argsn: 2, @@ -103882,6 +122202,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Toolbar)//base-widget?": { Doc: "Get *widget.Toolbar BaseWidget value", Argsn: 1, @@ -103910,6 +122232,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer + // + // Args: + // * recv - Go(*widget.Toolbar) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Toolbar)//create-renderer": { Doc: "(*widget.Toolbar).CreateRenderer", Argsn: 1, @@ -103939,6 +122267,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Toolbar) + // * wid - Go(fyne.Widget) "Go(*widget.Toolbar)//extend-base-widget": { Doc: "(*widget.Toolbar).ExtendBaseWidget", Argsn: 2, @@ -103992,6 +122323,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Toolbar)//hidden!": { Doc: "Set *widget.Toolbar Hidden value", Argsn: 2, @@ -104026,6 +122361,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Toolbar)//hidden?": { Doc: "Get *widget.Toolbar Hidden value", Argsn: 1, @@ -104054,6 +122391,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Toolbar) "Go(*widget.Toolbar)//hide": { Doc: "(*widget.Toolbar).Hide", Argsn: 1, @@ -104081,6 +122420,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * items - block[Go(widget.ToolbarItem)] + // Result: + // * block[Go(widget.ToolbarItem)] "Go(*widget.Toolbar)//items!": { Doc: "Set *widget.Toolbar Items value", Argsn: 2, @@ -104109,17 +122452,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: newVal = make([]widget.ToolbarItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &newVal[i] switch v := it.(type) { case env.RyeCtx: var err error - newVal[i], err = ctxTo_widget_ToolbarItem(ps, v) + (*iv), err = ctxTo_widget_ToolbarItem(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(*widget.Toolbar)//items!: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(widget.ToolbarItem); ok { - newVal[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(*widget.Toolbar)//items!: arg 2: " + "block item: " + "expected native of type widget.ToolbarItem, but got " + objectDebugString(ps.Idx, v)) @@ -104129,7 +122473,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(*widget.Toolbar)//items!: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - newVal[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(*widget.Toolbar)//items!: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -104149,6 +122493,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * block[Go(widget.ToolbarItem)] "Go(*widget.Toolbar)//items?": { Doc: "Get *widget.Toolbar Items value", Argsn: 1, @@ -104183,6 +122529,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below + // + // Args: + // * recv - Go(*widget.Toolbar) + // Result: + // * Go(fyne.Size) "Go(*widget.Toolbar)//min-size": { Doc: "(*widget.Toolbar).MinSize", Argsn: 1, @@ -104212,6 +122564,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Toolbar) + // * pos - Go(fyne.Position) "Go(*widget.Toolbar)//move": { Doc: "(*widget.Toolbar).Move", Argsn: 2, @@ -104252,6 +122607,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Toolbar) + // Result: + // * Go(fyne.position) "Go(*widget.Toolbar)//position": { Doc: "(*widget.Toolbar).Position", Argsn: 1, @@ -104281,6 +122640,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // prepend a new ToolbarItem to the start of this Toolbar + // + // Args: + // * recv - Go(*widget.Toolbar) + // * item - Go(widget.ToolbarItem) "Go(*widget.Toolbar)//prepend": { Doc: "(*widget.Toolbar).Prepend", Argsn: 2, @@ -104334,6 +122698,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Toolbar) "Go(*widget.Toolbar)//refresh": { Doc: "(*widget.Toolbar).Refresh", Argsn: 1, @@ -104361,6 +122727,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Toolbar) + // * size - Go(fyne.Size) "Go(*widget.Toolbar)//resize": { Doc: "(*widget.Toolbar).Resize", Argsn: 2, @@ -104401,6 +122770,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Toolbar) "Go(*widget.Toolbar)//show": { Doc: "(*widget.Toolbar).Show", Argsn: 1, @@ -104428,6 +122799,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Toolbar) + // Result: + // * Go(fyne.size) "Go(*widget.Toolbar)//size": { Doc: "(*widget.Toolbar).Size", Argsn: 1, @@ -104457,6 +122832,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Toolbar) + // Result: + // * Go(fyne.theme) + "Go(*widget.Toolbar)//theme": { + Doc: "(*widget.Toolbar).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Toolbar + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Toolbar); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Toolbar)//theme: arg 1: " + "expected native of type *widget.Toolbar, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Toolbar)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Toolbar)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // Args: + // * recv - Go(*widget.Toolbar) + // Result: + // * bool "Go(*widget.Toolbar)//visible": { Doc: "(*widget.Toolbar).Visible", Argsn: 1, @@ -104486,6 +122898,113 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disable this ToolbarAction so that it cannot be interacted with, updating any style appropriately. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.ToolbarAction) + "Go(*widget.ToolbarAction)//disable": { + Doc: "(*widget.ToolbarAction).Disable", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.ToolbarAction + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.ToolbarAction); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//disable: arg 1: " + "expected native of type *widget.ToolbarAction, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//disable: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//disable: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Disable() + return arg0 + }, + }, + // disabled returns true if this ToolbarAction is currently disabled or false if it can currently be interacted with. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.ToolbarAction) + // Result: + // * bool + "Go(*widget.ToolbarAction)//disabled": { + Doc: "(*widget.ToolbarAction).Disabled", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.ToolbarAction + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.ToolbarAction); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//disabled: arg 1: " + "expected native of type *widget.ToolbarAction, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//disabled: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//disabled: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Disabled() + var res0Obj env.Object + res0Obj = *env.NewInteger(boolToInt64(res0)) + return res0Obj + }, + }, + // enable this ToolbarAction, updating any style or features appropriately. + // + // Since: 2.5 + // + // Args: + // * recv - Go(*widget.ToolbarAction) + "Go(*widget.ToolbarAction)//enable": { + Doc: "(*widget.ToolbarAction).Enable", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.ToolbarAction + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.ToolbarAction); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//enable: arg 1: " + "expected native of type *widget.ToolbarAction, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//enable: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.ToolbarAction)//enable: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.Enable() + return arg0 + }, + }, + // Args: + // * icon - Go(fyne.Resource) + // Result: + // * Go(fyne.Resource) "Go(*widget.ToolbarAction)//icon!": { Doc: "Set *widget.ToolbarAction Icon value", Argsn: 2, @@ -104539,6 +123058,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(fyne.Resource) "Go(*widget.ToolbarAction)//icon?": { Doc: "Get *widget.ToolbarAction Icon value", Argsn: 1, @@ -104567,6 +123088,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-activated - fn { } + // Result: + // * fn { } "Go(*widget.ToolbarAction)//on-activated!": { Doc: "Set *widget.ToolbarAction OnActivated value", Argsn: 2, @@ -104616,6 +123141,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { } "Go(*widget.ToolbarAction)//on-activated?": { Doc: "Get *widget.ToolbarAction OnActivated value", Argsn: 1, @@ -104647,6 +123174,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-icon updates the icon on a ToolbarItem + // + // Since: 2.2 + // + // Args: + // * recv - Go(*widget.ToolbarAction) + // * icon - Go(fyne.Resource) "Go(*widget.ToolbarAction)//set-icon": { Doc: "(*widget.ToolbarAction).SetIcon", Argsn: 2, @@ -104700,6 +123234,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // toolbar-object gets a button to render this ToolbarAction + // + // Args: + // * recv - Go(*widget.ToolbarAction) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.ToolbarAction)//toolbar-object": { Doc: "(*widget.ToolbarAction).ToolbarObject", Argsn: 1, @@ -104729,6 +123269,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // toolbar-object gets the visible line object for this ToolbarSeparator + // + // Args: + // * recv - Go(*widget.ToolbarSeparator) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.ToolbarSeparator)//toolbar-object": { Doc: "(*widget.ToolbarSeparator).ToolbarObject", Argsn: 1, @@ -104758,6 +123304,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // toolbar-object gets the actual spacer object for this ToolbarSpacer + // + // Args: + // * recv - Go(*widget.ToolbarSpacer) + // Result: + // * Go(fyne.CanvasObject) "Go(*widget.ToolbarSpacer)//toolbar-object": { Doc: "(*widget.ToolbarSpacer).ToolbarObject", Argsn: 1, @@ -104787,6 +123339,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * base-widget - Go(widget.BaseWidget) + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Tree)//base-widget!": { Doc: "Set *widget.Tree BaseWidget value", Argsn: 2, @@ -104833,6 +123389,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * Go(widget.BaseWidget) "Go(*widget.Tree)//base-widget?": { Doc: "Get *widget.Tree BaseWidget value", Argsn: 1, @@ -104861,6 +123419,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * child-ui-ds - fn { string } -> block[string] + // Result: + // * fn { string } -> block[string] "Go(*widget.Tree)//child-ui-ds!": { Doc: "Set *widget.Tree ChildUIDs value", Argsn: 2, @@ -104902,6 +123464,7 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: res = make([]widget.TreeNodeID, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] { nat, natOk := it.(env.Native) var natValOk bool @@ -104910,7 +123473,7 @@ var builtinsGenerated = map[string]*env.Builtin{ natVal, natValOk = nat.Value.(widget.TreeNodeID) } if natValOk { - res[i] = natVal + (*iv) = natVal } else { var u string if vc, ok := it.(env.String); ok { @@ -104924,7 +123487,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ) return res } - res[i] = widget.TreeNodeID(u) + (*iv) = widget.TreeNodeID(u) } } } @@ -104964,6 +123527,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } -> block[string] "Go(*widget.Tree)//child-ui-ds?": { Doc: "Get *widget.Tree ChildUIDs value", Argsn: 1, @@ -105024,6 +123589,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // close-all-branches closes all branches in the tree. + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//close-all-branches": { Doc: "(*widget.Tree).CloseAllBranches", Argsn: 1, @@ -105051,6 +123620,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // close-branch closes the branch with the given TreeNodeID. + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string "Go(*widget.Tree)//close-branch": { Doc: "(*widget.Tree).CloseBranch", Argsn: 2, @@ -105099,6 +123673,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * create-node - fn { bool } -> Go(fyne.CanvasObject) + // Result: + // * fn { bool } -> Go(fyne.CanvasObject) "Go(*widget.Tree)//create-node!": { Doc: "Set *widget.Tree CreateNode value", Argsn: 2, @@ -105197,6 +123775,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { bool } -> Go(fyne.CanvasObject) "Go(*widget.Tree)//create-node?": { Doc: "Get *widget.Tree CreateNode value", Argsn: 1, @@ -105237,6 +123817,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // create-renderer is a private method to Fyne which links this widget to its renderer. + // + // Args: + // * recv - Go(*widget.Tree) + // Result: + // * Go(fyne.WidgetRenderer) "Go(*widget.Tree)//create-renderer": { Doc: "(*widget.Tree).CreateRenderer", Argsn: 1, @@ -105266,6 +123852,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Tree) + // * wid - Go(fyne.Widget) "Go(*widget.Tree)//extend-base-widget": { Doc: "(*widget.Tree).ExtendBaseWidget", Argsn: 2, @@ -105319,6 +123908,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-gained is called after this Tree has gained focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//focus-gained": { Doc: "(*widget.Tree).FocusGained", Argsn: 1, @@ -105346,6 +123941,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // focus-lost is called after this Tree has lost focus. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//focus-lost": { Doc: "(*widget.Tree).FocusLost", Argsn: 1, @@ -105373,6 +123974,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hidden - bool + // Result: + // * bool "Go(*widget.Tree)//hidden!": { Doc: "Set *widget.Tree Hidden value", Argsn: 2, @@ -105407,6 +124012,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * bool "Go(*widget.Tree)//hidden?": { Doc: "Get *widget.Tree Hidden value", Argsn: 1, @@ -105435,6 +124042,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//hide": { Doc: "(*widget.Tree).Hide", Argsn: 1, @@ -105462,6 +124071,78 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * hide-separators - bool + // Result: + // * bool + "Go(*widget.Tree)//hide-separators!": { + Doc: "Set *widget.Tree HideSeparators value", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Tree + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Tree); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators!: arg 1: " + "expected native of type *widget.Tree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators!: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators!: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var newVal bool + if vc, ok := arg1.(env.Integer); ok { + newVal = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators!: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + self.HideSeparators = newVal + return arg0 + }, + }, + // Result: + // * bool + "Go(*widget.Tree)//hide-separators?": { + Doc: "Get *widget.Tree HideSeparators value", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var self *widget.Tree + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Tree); ok { + self = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators?: arg 1: " + "expected native of type *widget.Tree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators?: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + self = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//hide-separators?: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var resObj env.Object + resObj = *env.NewInteger(boolToInt64(self.HideSeparators)) + return resObj + }, + }, + // Args: + // * is-branch - fn { string } -> bool + // Result: + // * fn { string } -> bool "Go(*widget.Tree)//is-branch!": { Doc: "Set *widget.Tree IsBranch value", Argsn: 2, @@ -105526,6 +124207,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // is-branch-open returns true if the branch with the given TreeNodeID is expanded. + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string + // Result: + // * bool "Go(*widget.Tree)//is-branch-open": { Doc: "(*widget.Tree).IsBranchOpen", Argsn: 2, @@ -105576,6 +124264,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * fn { string } -> bool "Go(*widget.Tree)//is-branch?": { Doc: "Get *widget.Tree IsBranch value", Argsn: 1, @@ -105630,6 +124320,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // min-size returns the size that this widget should not shrink below. + // + // Args: + // * recv - Go(*widget.Tree) + // Result: + // * Go(fyne.Size) "Go(*widget.Tree)//min-size": { Doc: "(*widget.Tree).MinSize", Argsn: 1, @@ -105659,6 +124355,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Tree) + // * pos - Go(fyne.Position) "Go(*widget.Tree)//move": { Doc: "(*widget.Tree).Move", Argsn: 2, @@ -105699,6 +124398,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * on-branch-closed - fn { string } + // Result: + // * fn { string } "Go(*widget.Tree)//on-branch-closed!": { Doc: "Set *widget.Tree OnBranchClosed value", Argsn: 2, @@ -105750,6 +124453,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Tree)//on-branch-closed?": { Doc: "Get *widget.Tree OnBranchClosed value", Argsn: 1, @@ -105802,6 +124507,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-branch-opened - fn { string } + // Result: + // * fn { string } "Go(*widget.Tree)//on-branch-opened!": { Doc: "Set *widget.Tree OnBranchOpened value", Argsn: 2, @@ -105853,6 +124562,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Tree)//on-branch-opened?": { Doc: "Get *widget.Tree OnBranchOpened value", Argsn: 1, @@ -105905,6 +124616,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-selected - fn { string } + // Result: + // * fn { string } "Go(*widget.Tree)//on-selected!": { Doc: "Set *widget.Tree OnSelected value", Argsn: 2, @@ -105956,6 +124671,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Tree)//on-selected?": { Doc: "Get *widget.Tree OnSelected value", Argsn: 1, @@ -106008,6 +124725,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * on-unselected - fn { string } + // Result: + // * fn { string } "Go(*widget.Tree)//on-unselected!": { Doc: "Set *widget.Tree OnUnselected value", Argsn: 2, @@ -106059,6 +124780,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string } "Go(*widget.Tree)//on-unselected?": { Doc: "Get *widget.Tree OnUnselected value", Argsn: 1, @@ -106111,6 +124834,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // open-all-branches opens all branches in the tree. + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//open-all-branches": { Doc: "(*widget.Tree).OpenAllBranches", Argsn: 1, @@ -106138,6 +124865,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // open-branch opens the branch with the given TreeNodeID. + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string "Go(*widget.Tree)//open-branch": { Doc: "(*widget.Tree).OpenBranch", Argsn: 2, @@ -106186,6 +124918,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Tree) + // Result: + // * Go(fyne.position) "Go(*widget.Tree)//position": { Doc: "(*widget.Tree).Position", Argsn: 1, @@ -106215,6 +124951,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//refresh": { Doc: "(*widget.Tree).Refresh", Argsn: 1, @@ -106242,6 +124980,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // refresh-item refreshes a single item, specified by the item ID passed in. + // + // Since: 2.4 + // + // Args: + // * recv - Go(*widget.Tree) + // * id - string "Go(*widget.Tree)//refresh-item": { Doc: "(*widget.Tree).RefreshItem", Argsn: 2, @@ -106290,6 +125035,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // resize sets a new size for a widget. + // + // Args: + // * recv - Go(*widget.Tree) + // * size - Go(fyne.Size) "Go(*widget.Tree)//resize": { Doc: "(*widget.Tree).Resize", Argsn: 2, @@ -106330,6 +125080,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * root - string + // Result: + // * string "Go(*widget.Tree)//root!": { Doc: "Set *widget.Tree Root value", Argsn: 2, @@ -106378,6 +125132,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * string "Go(*widget.Tree)//root?": { Doc: "Get *widget.Tree Root value", Argsn: 1, @@ -106406,6 +125162,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // scroll-to scrolls to the node with the given id. + // + // Since 2.1 + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string "Go(*widget.Tree)//scroll-to": { Doc: "(*widget.Tree).ScrollTo", Argsn: 2, @@ -106454,6 +125217,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-bottom scrolls to the bottom of the tree. + // + // Since 2.1 + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//scroll-to-bottom": { Doc: "(*widget.Tree).ScrollToBottom", Argsn: 1, @@ -106481,6 +125250,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // scroll-to-top scrolls to the top of the tree. + // + // Since 2.1 + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//scroll-to-top": { Doc: "(*widget.Tree).ScrollToTop", Argsn: 1, @@ -106508,6 +125283,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // select marks the specified node to be selected. + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string "Go(*widget.Tree)//select": { Doc: "(*widget.Tree).Select", Argsn: 2, @@ -106556,6 +125336,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//show": { Doc: "(*widget.Tree).Show", Argsn: 1, @@ -106583,6 +125365,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(*widget.Tree) + // Result: + // * Go(fyne.size) "Go(*widget.Tree)//size": { Doc: "(*widget.Tree).Size", Argsn: 1, @@ -106612,6 +125398,44 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(*widget.Tree) + // Result: + // * Go(fyne.theme) + "Go(*widget.Tree)//theme": { + Doc: "(*widget.Tree).Theme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *widget.Tree + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*widget.Tree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//theme: arg 1: " + "expected native of type *widget.Tree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//theme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(*widget.Tree)//theme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Theme() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // toggle-branch flips the state of the branch with the given TreeNodeID. + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string "Go(*widget.Tree)//toggle-branch": { Doc: "(*widget.Tree).ToggleBranch", Argsn: 2, @@ -106646,6 +125470,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-key is called if a key event happens while this Tree is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Tree) + // * event - Go(*fyne.KeyEvent) "Go(*widget.Tree)//typed-key": { Doc: "(*widget.Tree).TypedKey", Argsn: 2, @@ -106692,6 +125523,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // typed-rune is called if a text event happens while this Tree is focused. + // + // Implements: fyne.Focusable + // + // Args: + // * recv - Go(*widget.Tree) + // * - - Go(rune) "Go(*widget.Tree)//typed-rune": { Doc: "(*widget.Tree).TypedRune", Argsn: 2, @@ -106732,6 +125570,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect marks the specified node to be not selected. + // + // Args: + // * recv - Go(*widget.Tree) + // * uid - string "Go(*widget.Tree)//unselect": { Doc: "(*widget.Tree).Unselect", Argsn: 2, @@ -106780,6 +125623,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // unselect-all sets all nodes to be not selected. + // + // Since: 2.1 + // + // Args: + // * recv - Go(*widget.Tree) "Go(*widget.Tree)//unselect-all": { Doc: "(*widget.Tree).UnselectAll", Argsn: 1, @@ -106807,6 +125656,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * update-node - fn { string bool Go(fyne.CanvasObject) } + // Result: + // * fn { string bool Go(fyne.CanvasObject) } "Go(*widget.Tree)//update-node!": { Doc: "Set *widget.Tree UpdateNode value", Argsn: 2, @@ -106860,6 +125713,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Result: + // * fn { string bool Go(fyne.CanvasObject) } "Go(*widget.Tree)//update-node?": { Doc: "Get *widget.Tree UpdateNode value", Argsn: 1, @@ -106945,6 +125800,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Args: + // * recv - Go(*widget.Tree) + // Result: + // * bool "Go(*widget.Tree)//visible": { Doc: "(*widget.Tree).Visible", Argsn: 1, @@ -106974,6 +125833,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Bool) + // * 1 - Go(binding.DataListener) "Go(binding.Bool)//add-listener": { Doc: "binding.Bool.AddListener", Argsn: 2, @@ -107034,6 +125896,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Bool) + // Result: + // * bool + // * error "Go(binding.Bool)//get": { Doc: "binding.Bool.Get", Argsn: 1, @@ -107078,6 +125945,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Bool) + // * 1 - Go(binding.DataListener) "Go(binding.Bool)//remove-listener": { Doc: "binding.Bool.RemoveListener", Argsn: 2, @@ -107138,6 +126008,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Bool) + // * 1 - bool + // Result: + // * error "Go(binding.Bool)//set": { Doc: "binding.Bool.Set", Argsn: 2, @@ -107187,6 +126062,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolList) + // * 1 - Go(binding.DataListener) "Go(binding.BoolList)//add-listener": { Doc: "binding.BoolList.AddListener", Argsn: 2, @@ -107247,6 +126125,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolList) + // * value - bool + // Result: + // * error "Go(binding.BoolList)//append": { Doc: "binding.BoolList.Append", Argsn: 2, @@ -107296,6 +126179,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolList) + // Result: + // * block[bool] + // * error "Go(binding.BoolList)//get": { Doc: "binding.BoolList.Get", Argsn: 1, @@ -107346,6 +126234,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.BoolList)//get-item": { Doc: "binding.BoolList.GetItem", Argsn: 2, @@ -107397,6 +126291,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolList) + // * index - integer + // Result: + // * bool + // * error "Go(binding.BoolList)//get-value": { Doc: "binding.BoolList.GetValue", Argsn: 2, @@ -107448,6 +126348,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolList) + // Result: + // * integer "Go(binding.BoolList)//length": { Doc: "binding.BoolList.Length", Argsn: 1, @@ -107484,6 +126388,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolList) + // * value - bool + // Result: + // * error "Go(binding.BoolList)//prepend": { Doc: "binding.BoolList.Prepend", Argsn: 2, @@ -107533,6 +126442,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolList) + // * value - bool + // Result: + // * error + "Go(binding.BoolList)//remove": { + Doc: "binding.BoolList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.BoolList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_BoolList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.BoolList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolList)//remove: arg 1: " + "expected native of type binding.BoolList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.BoolList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val bool + if vc, ok := arg1.(env.Integer); ok { + arg1Val = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolList)//remove: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.BoolList) + // * 1 - Go(binding.DataListener) "Go(binding.BoolList)//remove-listener": { Doc: "binding.BoolList.RemoveListener", Argsn: 2, @@ -107593,6 +126559,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolList) + // * list - block[bool] + // Result: + // * error "Go(binding.BoolList)//set": { Doc: "binding.BoolList.Set", Argsn: 2, @@ -107628,8 +126599,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.Integer); ok { - arg1Val[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true return env.NewError("Go(binding.BoolList)//set: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -107657,6 +126629,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolList) + // * index - integer + // * value - bool + // Result: + // * error "Go(binding.BoolList)//set-value": { Doc: "binding.BoolList.SetValue", Argsn: 3, @@ -107713,6 +126691,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * 1 - Go(binding.DataListener) "Go(binding.BoolTree)//add-listener": { Doc: "binding.BoolTree.AddListener", Argsn: 2, @@ -107773,6 +126754,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * parent - string + // * id - string + // * value - bool + // Result: + // * error "Go(binding.BoolTree)//append": { Doc: "binding.BoolTree.Append", Argsn: 4, @@ -107836,6 +126824,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.BoolTree)//child-i-ds": { Doc: "binding.BoolTree.ChildIDs", Argsn: 2, @@ -107885,6 +126878,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, bool] + // ] + // * error "Go(binding.BoolTree)//get": { Doc: "binding.BoolTree.Get", Argsn: 1, @@ -107956,6 +126957,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.BoolTree)//get-item": { Doc: "binding.BoolTree.GetItem", Argsn: 2, @@ -108007,6 +127014,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * id - string + // Result: + // * bool + // * error "Go(binding.BoolTree)//get-value": { Doc: "binding.BoolTree.GetValue", Argsn: 2, @@ -108058,6 +127071,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * parent - string + // * id - string + // * value - bool + // Result: + // * error "Go(binding.BoolTree)//prepend": { Doc: "binding.BoolTree.Prepend", Argsn: 4, @@ -108121,6 +127141,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * id - string + // Result: + // * error + "Go(binding.BoolTree)//remove": { + Doc: "binding.BoolTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.BoolTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_BoolTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.BoolTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolTree)//remove: arg 1: " + "expected native of type binding.BoolTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.BoolTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BoolTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.BoolTree) + // * 1 - Go(binding.DataListener) "Go(binding.BoolTree)//remove-listener": { Doc: "binding.BoolTree.RemoveListener", Argsn: 2, @@ -108181,6 +127258,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * ids - dict[string, block[string]] + // * values - dict[string, bool] + // Result: + // * error "Go(binding.BoolTree)//set": { Doc: "binding.BoolTree.Set", Argsn: 3, @@ -108232,8 +127315,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.BoolTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -108260,8 +127344,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.BoolTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -108349,6 +127434,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BoolTree) + // * id - string + // * value - bool + // Result: + // * error "Go(binding.BoolTree)//set-value": { Doc: "binding.BoolTree.SetValue", Argsn: 3, @@ -108405,6 +127496,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Bytes) + // * 1 - Go(binding.DataListener) "Go(binding.Bytes)//add-listener": { Doc: "binding.Bytes.AddListener", Argsn: 2, @@ -108465,6 +127559,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Bytes) + // Result: + // * block[integer] + // * error "Go(binding.Bytes)//get": { Doc: "binding.Bytes.Get", Argsn: 1, @@ -108500,7 +127599,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -108515,6 +127614,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Bytes) + // * 1 - Go(binding.DataListener) "Go(binding.Bytes)//remove-listener": { Doc: "binding.Bytes.RemoveListener", Argsn: 2, @@ -108575,6 +127677,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Bytes) + // * 1 - block[integer] + // Result: + // * error "Go(binding.Bytes)//set": { Doc: "binding.Bytes.Set", Argsn: 2, @@ -108610,17 +127717,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.Bytes)//set: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.Bytes)//set: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.Bytes)//set: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -108645,6 +127747,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesList) + // * 1 - Go(binding.DataListener) "Go(binding.BytesList)//add-listener": { Doc: "binding.BytesList.AddListener", Argsn: 2, @@ -108705,6 +127810,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesList) + // * value - block[integer] + // Result: + // * error "Go(binding.BytesList)//append": { Doc: "binding.BytesList.Append", Argsn: 2, @@ -108740,17 +127850,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//append: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//append: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesList)//append: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -108775,6 +127880,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesList) + // Result: + // * block[block[integer]] + // * error "Go(binding.BytesList)//get": { Doc: "binding.BytesList.Get", Argsn: 1, @@ -108813,7 +127923,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(it)) for i, it := range it { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } items[i] = *env.NewBlock(*env.NewTSeries(items)) } @@ -108831,6 +127941,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.BytesList)//get-item": { Doc: "binding.BytesList.GetItem", Argsn: 2, @@ -108882,6 +127998,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesList) + // * index - integer + // Result: + // * block[integer] + // * error "Go(binding.BytesList)//get-value": { Doc: "binding.BytesList.GetValue", Argsn: 2, @@ -108924,7 +128046,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -108939,6 +128061,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesList) + // Result: + // * integer "Go(binding.BytesList)//length": { Doc: "binding.BytesList.Length", Argsn: 1, @@ -108975,6 +128101,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesList) + // * value - block[integer] + // Result: + // * error "Go(binding.BytesList)//prepend": { Doc: "binding.BytesList.Prepend", Argsn: 2, @@ -109010,17 +128141,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//prepend: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//prepend: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesList)//prepend: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109045,6 +128171,79 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesList) + // * value - block[integer] + // Result: + // * error + "Go(binding.BytesList)//remove": { + Doc: "binding.BytesList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.BytesList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_BytesList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.BytesList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 1: " + "expected native of type binding.BytesList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val []byte + switch v := arg1.(type) { + case env.Block: + arg1Val = make([]byte, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.BytesList)//remove: arg 2: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.BytesList) + // * 1 - Go(binding.DataListener) "Go(binding.BytesList)//remove-listener": { Doc: "binding.BytesList.RemoveListener", Argsn: 2, @@ -109105,6 +128304,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesList) + // * list - block[block[integer]] + // Result: + // * error "Go(binding.BytesList)//set": { Doc: "binding.BytesList.Set", Argsn: 2, @@ -109140,21 +128344,17 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([][]byte, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Block: - arg1Val[i] = make([]byte, len(v.Series.S)) + (*iv) = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i][i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//set: arg 2: " + "block item: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &(*iv)[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//set: arg 2: " + "block item: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesList)//set: arg 2: " + "block item: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109162,7 +128362,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.BytesList)//set: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(binding.BytesList)//set: arg 2: " + "block item: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) @@ -109190,6 +128390,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesList) + // * index - integer + // * value - block[integer] + // Result: + // * error "Go(binding.BytesList)//set-value": { Doc: "binding.BytesList.SetValue", Argsn: 3, @@ -109232,17 +128438,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg2Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//set-value: arg 3: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg2Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesList)//set-value: arg 3: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesList)//set-value: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109267,6 +128468,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * 1 - Go(binding.DataListener) "Go(binding.BytesTree)//add-listener": { Doc: "binding.BytesTree.AddListener", Argsn: 2, @@ -109327,6 +128531,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * parent - string + // * id - string + // * value - block[integer] + // Result: + // * error "Go(binding.BytesTree)//append": { Doc: "binding.BytesTree.Append", Argsn: 4, @@ -109376,17 +128587,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg3Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg3Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//append: arg 4: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg3Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//append: arg 4: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesTree)//append: arg 4: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109411,6 +128617,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.BytesTree)//child-i-ds": { Doc: "binding.BytesTree.ChildIDs", Argsn: 2, @@ -109460,6 +128671,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, block[integer]] + // ] + // * error "Go(binding.BytesTree)//get": { Doc: "binding.BytesTree.Get", Argsn: 1, @@ -109515,7 +128734,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(mVal)) for i, it := range mVal { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } dVal = *env.NewBlock(*env.NewTSeries(items)) } @@ -109537,6 +128756,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.BytesTree)//get-item": { Doc: "binding.BytesTree.GetItem", Argsn: 2, @@ -109588,6 +128813,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * id - string + // Result: + // * block[integer] + // * error "Go(binding.BytesTree)//get-value": { Doc: "binding.BytesTree.GetValue", Argsn: 2, @@ -109630,7 +128861,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -109645,6 +128876,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * parent - string + // * id - string + // * value - block[integer] + // Result: + // * error "Go(binding.BytesTree)//prepend": { Doc: "binding.BytesTree.Prepend", Argsn: 4, @@ -109694,17 +128932,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg3Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg3Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//prepend: arg 4: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg3Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//prepend: arg 4: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesTree)//prepend: arg 4: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109729,6 +128962,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * id - string + // Result: + // * error + "Go(binding.BytesTree)//remove": { + Doc: "binding.BytesTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.BytesTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_BytesTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.BytesTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesTree)//remove: arg 1: " + "expected native of type binding.BytesTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.BytesTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.BytesTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.BytesTree) + // * 1 - Go(binding.DataListener) "Go(binding.BytesTree)//remove-listener": { Doc: "binding.BytesTree.RemoveListener", Argsn: 2, @@ -109789,6 +129079,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * ids - dict[string, block[string]] + // * values - dict[string, block[integer]] + // Result: + // * error "Go(binding.BytesTree)//set": { Doc: "binding.BytesTree.Set", Argsn: 3, @@ -109840,8 +129136,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.BytesTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -109868,8 +129165,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.BytesTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -109918,17 +129216,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109952,17 +129245,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -109999,6 +129287,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.BytesTree) + // * id - string + // * value - block[integer] + // Result: + // * error "Go(binding.BytesTree)//set-value": { Doc: "binding.BytesTree.SetValue", Argsn: 3, @@ -110041,17 +129335,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg2Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//set-value: arg 3: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg2Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.BytesTree)//set-value: arg 3: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.BytesTree)//set-value: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -110076,6 +129365,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataItem) + // * 1 - Go(binding.DataListener) "Go(binding.DataItem)//add-listener": { Doc: "binding.DataItem.AddListener", Argsn: 2, @@ -110136,6 +129428,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataItem) + // * 1 - Go(binding.DataListener) "Go(binding.DataItem)//remove-listener": { Doc: "binding.DataItem.RemoveListener", Argsn: 2, @@ -110196,6 +129491,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataList) + // * 1 - Go(binding.DataListener) "Go(binding.DataList)//add-listener": { Doc: "binding.DataList.AddListener", Argsn: 2, @@ -110256,6 +129554,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.DataList)//get-item": { Doc: "binding.DataList.GetItem", Argsn: 2, @@ -110307,6 +129611,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.DataList) + // Result: + // * integer "Go(binding.DataList)//length": { Doc: "binding.DataList.Length", Argsn: 1, @@ -110343,6 +129651,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.DataList) + // * 1 - Go(binding.DataListener) "Go(binding.DataList)//remove-listener": { Doc: "binding.DataList.RemoveListener", Argsn: 2, @@ -110403,6 +129714,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataListener) "Go(binding.DataListener)//data-changed": { Doc: "binding.DataListener.DataChanged", Argsn: 1, @@ -110437,6 +129750,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataMap) + // * 1 - Go(binding.DataListener) "Go(binding.DataMap)//add-listener": { Doc: "binding.DataMap.AddListener", Argsn: 2, @@ -110497,6 +129813,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataMap) + // * 1 - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.DataMap)//get-item": { Doc: "binding.DataMap.GetItem", Argsn: 2, @@ -110548,6 +129870,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.DataMap) + // Result: + // * block[string] "Go(binding.DataMap)//keys": { Doc: "binding.DataMap.Keys", Argsn: 1, @@ -110590,6 +129916,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.DataMap) + // * 1 - Go(binding.DataListener) "Go(binding.DataMap)//remove-listener": { Doc: "binding.DataMap.RemoveListener", Argsn: 2, @@ -110650,6 +129979,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataTree) + // * 1 - Go(binding.DataListener) "Go(binding.DataTree)//add-listener": { Doc: "binding.DataTree.AddListener", Argsn: 2, @@ -110710,6 +130042,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.DataTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.DataTree)//child-i-ds": { Doc: "binding.DataTree.ChildIDs", Argsn: 2, @@ -110759,6 +130096,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.DataTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.DataTree)//get-item": { Doc: "binding.DataTree.GetItem", Argsn: 2, @@ -110810,6 +130153,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.DataTree) + // * 1 - Go(binding.DataListener) "Go(binding.DataTree)//remove-listener": { Doc: "binding.DataTree.RemoveListener", Argsn: 2, @@ -110870,6 +130216,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBool) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBool)//add-listener": { Doc: "binding.ExternalBool.AddListener", Argsn: 2, @@ -110930,6 +130279,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBool) + // Result: + // * bool + // * error "Go(binding.ExternalBool)//get": { Doc: "binding.ExternalBool.Get", Argsn: 1, @@ -110974,6 +130328,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBool) + // Result: + // * error "Go(binding.ExternalBool)//reload": { Doc: "binding.ExternalBool.Reload", Argsn: 1, @@ -111016,6 +130374,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBool) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBool)//remove-listener": { Doc: "binding.ExternalBool.RemoveListener", Argsn: 2, @@ -111076,6 +130437,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBool) + // * 1 - bool + // Result: + // * error "Go(binding.ExternalBool)//set": { Doc: "binding.ExternalBool.Set", Argsn: 2, @@ -111125,6 +130491,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBoolList)//add-listener": { Doc: "binding.ExternalBoolList.AddListener", Argsn: 2, @@ -111185,6 +130554,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * value - bool + // Result: + // * error "Go(binding.ExternalBoolList)//append": { Doc: "binding.ExternalBoolList.Append", Argsn: 2, @@ -111234,6 +130608,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // Result: + // * block[bool] + // * error "Go(binding.ExternalBoolList)//get": { Doc: "binding.ExternalBoolList.Get", Argsn: 1, @@ -111284,6 +130663,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalBoolList)//get-item": { Doc: "binding.ExternalBoolList.GetItem", Argsn: 2, @@ -111335,6 +130720,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * index - integer + // Result: + // * bool + // * error "Go(binding.ExternalBoolList)//get-value": { Doc: "binding.ExternalBoolList.GetValue", Argsn: 2, @@ -111386,6 +130777,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // Result: + // * integer "Go(binding.ExternalBoolList)//length": { Doc: "binding.ExternalBoolList.Length", Argsn: 1, @@ -111422,6 +130817,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * value - bool + // Result: + // * error "Go(binding.ExternalBoolList)//prepend": { Doc: "binding.ExternalBoolList.Prepend", Argsn: 2, @@ -111471,6 +130871,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // Result: + // * error "Go(binding.ExternalBoolList)//reload": { Doc: "binding.ExternalBoolList.Reload", Argsn: 1, @@ -111513,6 +130917,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * value - bool + // Result: + // * error + "Go(binding.ExternalBoolList)//remove": { + Doc: "binding.ExternalBoolList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalBoolList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalBoolList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalBoolList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolList)//remove: arg 1: " + "expected native of type binding.ExternalBoolList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val bool + if vc, ok := arg1.(env.Integer); ok { + arg1Val = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolList)//remove: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBoolList)//remove-listener": { Doc: "binding.ExternalBoolList.RemoveListener", Argsn: 2, @@ -111573,6 +131034,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * list - block[bool] + // Result: + // * error "Go(binding.ExternalBoolList)//set": { Doc: "binding.ExternalBoolList.Set", Argsn: 2, @@ -111608,8 +131074,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.Integer); ok { - arg1Val[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalBoolList)//set: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -111637,6 +131104,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolList) + // * index - integer + // * value - bool + // Result: + // * error "Go(binding.ExternalBoolList)//set-value": { Doc: "binding.ExternalBoolList.SetValue", Argsn: 3, @@ -111693,6 +131166,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBoolTree)//add-listener": { Doc: "binding.ExternalBoolTree.AddListener", Argsn: 2, @@ -111753,6 +131229,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * parent - string + // * id - string + // * value - bool + // Result: + // * error "Go(binding.ExternalBoolTree)//append": { Doc: "binding.ExternalBoolTree.Append", Argsn: 4, @@ -111816,6 +131299,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalBoolTree)//child-i-ds": { Doc: "binding.ExternalBoolTree.ChildIDs", Argsn: 2, @@ -111865,6 +131353,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, bool] + // ] + // * error "Go(binding.ExternalBoolTree)//get": { Doc: "binding.ExternalBoolTree.Get", Argsn: 1, @@ -111936,6 +131432,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalBoolTree)//get-item": { Doc: "binding.ExternalBoolTree.GetItem", Argsn: 2, @@ -111987,6 +131489,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * id - string + // Result: + // * bool + // * error "Go(binding.ExternalBoolTree)//get-value": { Doc: "binding.ExternalBoolTree.GetValue", Argsn: 2, @@ -112038,6 +131546,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * parent - string + // * id - string + // * value - bool + // Result: + // * error "Go(binding.ExternalBoolTree)//prepend": { Doc: "binding.ExternalBoolTree.Prepend", Argsn: 4, @@ -112101,6 +131616,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // Result: + // * error "Go(binding.ExternalBoolTree)//reload": { Doc: "binding.ExternalBoolTree.Reload", Argsn: 1, @@ -112143,6 +131662,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalBoolTree)//remove": { + Doc: "binding.ExternalBoolTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalBoolTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalBoolTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalBoolTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolTree)//remove: arg 1: " + "expected native of type binding.ExternalBoolTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBoolTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBoolTree)//remove-listener": { Doc: "binding.ExternalBoolTree.RemoveListener", Argsn: 2, @@ -112203,6 +131779,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * ids - dict[string, block[string]] + // * values - dict[string, bool] + // Result: + // * error "Go(binding.ExternalBoolTree)//set": { Doc: "binding.ExternalBoolTree.Set", Argsn: 3, @@ -112254,8 +131836,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalBoolTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -112282,8 +131865,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalBoolTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -112371,6 +131955,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBoolTree) + // * id - string + // * value - bool + // Result: + // * error "Go(binding.ExternalBoolTree)//set-value": { Doc: "binding.ExternalBoolTree.SetValue", Argsn: 3, @@ -112427,6 +132017,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytes) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBytes)//add-listener": { Doc: "binding.ExternalBytes.AddListener", Argsn: 2, @@ -112487,6 +132080,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytes) + // Result: + // * block[integer] + // * error "Go(binding.ExternalBytes)//get": { Doc: "binding.ExternalBytes.Get", Argsn: 1, @@ -112522,7 +132120,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -112537,6 +132135,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytes) + // Result: + // * error "Go(binding.ExternalBytes)//reload": { Doc: "binding.ExternalBytes.Reload", Argsn: 1, @@ -112579,6 +132181,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytes) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBytes)//remove-listener": { Doc: "binding.ExternalBytes.RemoveListener", Argsn: 2, @@ -112639,6 +132244,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytes) + // * 1 - block[integer] + // Result: + // * error "Go(binding.ExternalBytes)//set": { Doc: "binding.ExternalBytes.Set", Argsn: 2, @@ -112674,17 +132284,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytes)//set: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytes)//set: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytes)//set: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -112709,6 +132314,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBytesList)//add-listener": { Doc: "binding.ExternalBytesList.AddListener", Argsn: 2, @@ -112769,6 +132377,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * value - block[integer] + // Result: + // * error "Go(binding.ExternalBytesList)//append": { Doc: "binding.ExternalBytesList.Append", Argsn: 2, @@ -112804,17 +132417,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//append: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//append: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesList)//append: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -112839,6 +132447,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // Result: + // * block[block[integer]] + // * error "Go(binding.ExternalBytesList)//get": { Doc: "binding.ExternalBytesList.Get", Argsn: 1, @@ -112877,7 +132490,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(it)) for i, it := range it { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } items[i] = *env.NewBlock(*env.NewTSeries(items)) } @@ -112895,6 +132508,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalBytesList)//get-item": { Doc: "binding.ExternalBytesList.GetItem", Argsn: 2, @@ -112946,6 +132565,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * index - integer + // Result: + // * block[integer] + // * error "Go(binding.ExternalBytesList)//get-value": { Doc: "binding.ExternalBytesList.GetValue", Argsn: 2, @@ -112988,7 +132613,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -113003,6 +132628,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // Result: + // * integer "Go(binding.ExternalBytesList)//length": { Doc: "binding.ExternalBytesList.Length", Argsn: 1, @@ -113039,6 +132668,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * value - block[integer] + // Result: + // * error "Go(binding.ExternalBytesList)//prepend": { Doc: "binding.ExternalBytesList.Prepend", Argsn: 2, @@ -113074,17 +132708,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//prepend: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//prepend: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesList)//prepend: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -113109,6 +132738,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // Result: + // * error "Go(binding.ExternalBytesList)//reload": { Doc: "binding.ExternalBytesList.Reload", Argsn: 1, @@ -113151,6 +132784,79 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * value - block[integer] + // Result: + // * error + "Go(binding.ExternalBytesList)//remove": { + Doc: "binding.ExternalBytesList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalBytesList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalBytesList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalBytesList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 1: " + "expected native of type binding.ExternalBytesList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val []byte + switch v := arg1.(type) { + case env.Block: + arg1Val = make([]byte, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesList)//remove: arg 2: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBytesList)//remove-listener": { Doc: "binding.ExternalBytesList.RemoveListener", Argsn: 2, @@ -113211,6 +132917,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * list - block[block[integer]] + // Result: + // * error "Go(binding.ExternalBytesList)//set": { Doc: "binding.ExternalBytesList.Set", Argsn: 2, @@ -113246,21 +132957,17 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([][]byte, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Block: - arg1Val[i] = make([]byte, len(v.Series.S)) + (*iv) = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i][i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//set: arg 2: " + "block item: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &(*iv)[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//set: arg 2: " + "block item: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesList)//set: arg 2: " + "block item: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -113268,7 +132975,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalBytesList)//set: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(binding.ExternalBytesList)//set: arg 2: " + "block item: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) @@ -113296,6 +133003,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesList) + // * index - integer + // * value - block[integer] + // Result: + // * error "Go(binding.ExternalBytesList)//set-value": { Doc: "binding.ExternalBytesList.SetValue", Argsn: 3, @@ -113338,17 +133051,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg2Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//set-value: arg 3: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg2Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesList)//set-value: arg 3: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesList)//set-value: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -113373,6 +133081,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBytesTree)//add-listener": { Doc: "binding.ExternalBytesTree.AddListener", Argsn: 2, @@ -113433,6 +133144,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * parent - string + // * id - string + // * value - block[integer] + // Result: + // * error "Go(binding.ExternalBytesTree)//append": { Doc: "binding.ExternalBytesTree.Append", Argsn: 4, @@ -113482,17 +133200,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg3Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg3Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//append: arg 4: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg3Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//append: arg 4: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesTree)//append: arg 4: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -113517,6 +133230,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalBytesTree)//child-i-ds": { Doc: "binding.ExternalBytesTree.ChildIDs", Argsn: 2, @@ -113566,6 +133284,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, block[integer]] + // ] + // * error "Go(binding.ExternalBytesTree)//get": { Doc: "binding.ExternalBytesTree.Get", Argsn: 1, @@ -113621,7 +133347,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(mVal)) for i, it := range mVal { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } dVal = *env.NewBlock(*env.NewTSeries(items)) } @@ -113643,6 +133369,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalBytesTree)//get-item": { Doc: "binding.ExternalBytesTree.GetItem", Argsn: 2, @@ -113694,6 +133426,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * id - string + // Result: + // * block[integer] + // * error "Go(binding.ExternalBytesTree)//get-value": { Doc: "binding.ExternalBytesTree.GetValue", Argsn: 2, @@ -113736,7 +133474,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -113751,6 +133489,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * parent - string + // * id - string + // * value - block[integer] + // Result: + // * error "Go(binding.ExternalBytesTree)//prepend": { Doc: "binding.ExternalBytesTree.Prepend", Argsn: 4, @@ -113800,17 +133545,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg3Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg3Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//prepend: arg 4: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg3Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//prepend: arg 4: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesTree)//prepend: arg 4: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -113835,6 +133575,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // Result: + // * error "Go(binding.ExternalBytesTree)//reload": { Doc: "binding.ExternalBytesTree.Reload", Argsn: 1, @@ -113877,6 +133621,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalBytesTree)//remove": { + Doc: "binding.ExternalBytesTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalBytesTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalBytesTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalBytesTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesTree)//remove: arg 1: " + "expected native of type binding.ExternalBytesTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalBytesTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalBytesTree)//remove-listener": { Doc: "binding.ExternalBytesTree.RemoveListener", Argsn: 2, @@ -113937,6 +133738,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * ids - dict[string, block[string]] + // * values - dict[string, block[integer]] + // Result: + // * error "Go(binding.ExternalBytesTree)//set": { Doc: "binding.ExternalBytesTree.Set", Argsn: 3, @@ -113988,8 +133795,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalBytesTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -114016,8 +133824,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalBytesTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -114066,17 +133875,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -114100,17 +133904,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - mapV[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &mapV[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesTree)//set: arg 3: " + "map value: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -114147,6 +133946,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalBytesTree) + // * id - string + // * value - block[integer] + // Result: + // * error "Go(binding.ExternalBytesTree)//set-value": { Doc: "binding.ExternalBytesTree.SetValue", Argsn: 3, @@ -114189,17 +133994,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg2Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//set-value: arg 3: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg2Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalBytesTree)//set-value: arg 3: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalBytesTree)//set-value: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -114224,6 +134024,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloat) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalFloat)//add-listener": { Doc: "binding.ExternalFloat.AddListener", Argsn: 2, @@ -114284,6 +134087,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloat) + // Result: + // * decimal + // * error "Go(binding.ExternalFloat)//get": { Doc: "binding.ExternalFloat.Get", Argsn: 1, @@ -114328,6 +134136,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloat) + // Result: + // * error "Go(binding.ExternalFloat)//reload": { Doc: "binding.ExternalFloat.Reload", Argsn: 1, @@ -114370,6 +134182,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloat) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalFloat)//remove-listener": { Doc: "binding.ExternalFloat.RemoveListener", Argsn: 2, @@ -114430,6 +134245,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloat) + // * 1 - decimal + // Result: + // * error "Go(binding.ExternalFloat)//set": { Doc: "binding.ExternalFloat.Set", Argsn: 2, @@ -114479,6 +134299,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalFloatList)//add-listener": { Doc: "binding.ExternalFloatList.AddListener", Argsn: 2, @@ -114539,6 +134362,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * value - decimal + // Result: + // * error "Go(binding.ExternalFloatList)//append": { Doc: "binding.ExternalFloatList.Append", Argsn: 2, @@ -114588,6 +134416,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // Result: + // * block[decimal] + // * error "Go(binding.ExternalFloatList)//get": { Doc: "binding.ExternalFloatList.Get", Argsn: 1, @@ -114638,6 +134471,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalFloatList)//get-item": { Doc: "binding.ExternalFloatList.GetItem", Argsn: 2, @@ -114689,6 +134528,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * index - integer + // Result: + // * decimal + // * error "Go(binding.ExternalFloatList)//get-value": { Doc: "binding.ExternalFloatList.GetValue", Argsn: 2, @@ -114740,6 +134585,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // Result: + // * integer "Go(binding.ExternalFloatList)//length": { Doc: "binding.ExternalFloatList.Length", Argsn: 1, @@ -114776,6 +134625,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * value - decimal + // Result: + // * error "Go(binding.ExternalFloatList)//prepend": { Doc: "binding.ExternalFloatList.Prepend", Argsn: 2, @@ -114825,6 +134679,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // Result: + // * error "Go(binding.ExternalFloatList)//reload": { Doc: "binding.ExternalFloatList.Reload", Argsn: 1, @@ -114867,6 +134725,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * value - decimal + // Result: + // * error + "Go(binding.ExternalFloatList)//remove": { + Doc: "binding.ExternalFloatList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalFloatList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalFloatList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalFloatList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatList)//remove: arg 1: " + "expected native of type binding.ExternalFloatList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val float64 + if vc, ok := arg1.(env.Decimal); ok { + arg1Val = float64(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatList)//remove: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalFloatList)//remove-listener": { Doc: "binding.ExternalFloatList.RemoveListener", Argsn: 2, @@ -114927,6 +134842,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * list - block[decimal] + // Result: + // * error "Go(binding.ExternalFloatList)//set": { Doc: "binding.ExternalFloatList.Set", Argsn: 2, @@ -114962,8 +134882,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.Decimal); ok { - arg1Val[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalFloatList)//set: arg 2: " + "block item: " + "expected decimal, but got " + objectDebugString(ps.Idx, it)) @@ -114991,6 +134912,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatList) + // * index - integer + // * value - decimal + // Result: + // * error "Go(binding.ExternalFloatList)//set-value": { Doc: "binding.ExternalFloatList.SetValue", Argsn: 3, @@ -115047,6 +134974,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalFloatTree)//add-listener": { Doc: "binding.ExternalFloatTree.AddListener", Argsn: 2, @@ -115107,6 +135037,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * parent - string + // * id - string + // * value - decimal + // Result: + // * error "Go(binding.ExternalFloatTree)//append": { Doc: "binding.ExternalFloatTree.Append", Argsn: 4, @@ -115170,6 +135107,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalFloatTree)//child-i-ds": { Doc: "binding.ExternalFloatTree.ChildIDs", Argsn: 2, @@ -115219,6 +135161,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, decimal] + // ] + // * error "Go(binding.ExternalFloatTree)//get": { Doc: "binding.ExternalFloatTree.Get", Argsn: 1, @@ -115290,6 +135240,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalFloatTree)//get-item": { Doc: "binding.ExternalFloatTree.GetItem", Argsn: 2, @@ -115341,6 +135297,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * id - string + // Result: + // * decimal + // * error "Go(binding.ExternalFloatTree)//get-value": { Doc: "binding.ExternalFloatTree.GetValue", Argsn: 2, @@ -115392,6 +135354,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * parent - string + // * id - string + // * value - decimal + // Result: + // * error "Go(binding.ExternalFloatTree)//prepend": { Doc: "binding.ExternalFloatTree.Prepend", Argsn: 4, @@ -115455,6 +135424,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // Result: + // * error "Go(binding.ExternalFloatTree)//reload": { Doc: "binding.ExternalFloatTree.Reload", Argsn: 1, @@ -115497,6 +135470,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalFloatTree)//remove": { + Doc: "binding.ExternalFloatTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalFloatTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalFloatTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalFloatTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatTree)//remove: arg 1: " + "expected native of type binding.ExternalFloatTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalFloatTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalFloatTree)//remove-listener": { Doc: "binding.ExternalFloatTree.RemoveListener", Argsn: 2, @@ -115557,6 +135587,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * ids - dict[string, block[string]] + // * values - dict[string, decimal] + // Result: + // * error "Go(binding.ExternalFloatTree)//set": { Doc: "binding.ExternalFloatTree.Set", Argsn: 3, @@ -115608,8 +135644,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalFloatTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -115636,8 +135673,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalFloatTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -115725,6 +135763,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalFloatTree) + // * id - string + // * value - decimal + // Result: + // * error "Go(binding.ExternalFloatTree)//set-value": { Doc: "binding.ExternalFloatTree.SetValue", Argsn: 3, @@ -115781,6 +135825,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalInt) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalInt)//add-listener": { Doc: "binding.ExternalInt.AddListener", Argsn: 2, @@ -115841,6 +135888,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalInt) + // Result: + // * integer + // * error "Go(binding.ExternalInt)//get": { Doc: "binding.ExternalInt.Get", Argsn: 1, @@ -115885,6 +135937,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalInt) + // Result: + // * error "Go(binding.ExternalInt)//reload": { Doc: "binding.ExternalInt.Reload", Argsn: 1, @@ -115927,6 +135983,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalInt) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalInt)//remove-listener": { Doc: "binding.ExternalInt.RemoveListener", Argsn: 2, @@ -115987,6 +136046,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalInt) + // * 1 - integer + // Result: + // * error "Go(binding.ExternalInt)//set": { Doc: "binding.ExternalInt.Set", Argsn: 2, @@ -116036,6 +136100,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalIntList)//add-listener": { Doc: "binding.ExternalIntList.AddListener", Argsn: 2, @@ -116096,6 +136163,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * value - integer + // Result: + // * error "Go(binding.ExternalIntList)//append": { Doc: "binding.ExternalIntList.Append", Argsn: 2, @@ -116145,6 +136217,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // Result: + // * block[integer] + // * error "Go(binding.ExternalIntList)//get": { Doc: "binding.ExternalIntList.Get", Argsn: 1, @@ -116195,6 +136272,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalIntList)//get-item": { Doc: "binding.ExternalIntList.GetItem", Argsn: 2, @@ -116246,6 +136329,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * index - integer + // Result: + // * integer + // * error "Go(binding.ExternalIntList)//get-value": { Doc: "binding.ExternalIntList.GetValue", Argsn: 2, @@ -116297,6 +136386,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // Result: + // * integer "Go(binding.ExternalIntList)//length": { Doc: "binding.ExternalIntList.Length", Argsn: 1, @@ -116333,6 +136426,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * value - integer + // Result: + // * error "Go(binding.ExternalIntList)//prepend": { Doc: "binding.ExternalIntList.Prepend", Argsn: 2, @@ -116382,6 +136480,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // Result: + // * error "Go(binding.ExternalIntList)//reload": { Doc: "binding.ExternalIntList.Reload", Argsn: 1, @@ -116424,6 +136526,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * value - integer + // Result: + // * error + "Go(binding.ExternalIntList)//remove": { + Doc: "binding.ExternalIntList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalIntList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalIntList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalIntList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntList)//remove: arg 1: " + "expected native of type binding.ExternalIntList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val int + if vc, ok := arg1.(env.Integer); ok { + arg1Val = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntList)//remove: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalIntList)//remove-listener": { Doc: "binding.ExternalIntList.RemoveListener", Argsn: 2, @@ -116484,6 +136643,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * list - block[integer] + // Result: + // * error "Go(binding.ExternalIntList)//set": { Doc: "binding.ExternalIntList.Set", Argsn: 2, @@ -116519,8 +136683,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.Integer); ok { - arg1Val[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalIntList)//set: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -116548,6 +136713,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntList) + // * index - integer + // * value - integer + // Result: + // * error "Go(binding.ExternalIntList)//set-value": { Doc: "binding.ExternalIntList.SetValue", Argsn: 3, @@ -116604,6 +136775,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalIntTree)//add-listener": { Doc: "binding.ExternalIntTree.AddListener", Argsn: 2, @@ -116664,6 +136838,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * parent - string + // * id - string + // * value - integer + // Result: + // * error "Go(binding.ExternalIntTree)//append": { Doc: "binding.ExternalIntTree.Append", Argsn: 4, @@ -116727,6 +136908,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalIntTree)//child-i-ds": { Doc: "binding.ExternalIntTree.ChildIDs", Argsn: 2, @@ -116776,6 +136962,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, integer] + // ] + // * error "Go(binding.ExternalIntTree)//get": { Doc: "binding.ExternalIntTree.Get", Argsn: 1, @@ -116847,6 +137041,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalIntTree)//get-item": { Doc: "binding.ExternalIntTree.GetItem", Argsn: 2, @@ -116898,6 +137098,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * id - string + // Result: + // * integer + // * error "Go(binding.ExternalIntTree)//get-value": { Doc: "binding.ExternalIntTree.GetValue", Argsn: 2, @@ -116949,6 +137155,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * parent - string + // * id - string + // * value - integer + // Result: + // * error "Go(binding.ExternalIntTree)//prepend": { Doc: "binding.ExternalIntTree.Prepend", Argsn: 4, @@ -117012,6 +137225,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // Result: + // * error "Go(binding.ExternalIntTree)//reload": { Doc: "binding.ExternalIntTree.Reload", Argsn: 1, @@ -117054,6 +137271,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalIntTree)//remove": { + Doc: "binding.ExternalIntTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalIntTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalIntTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalIntTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntTree)//remove: arg 1: " + "expected native of type binding.ExternalIntTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalIntTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalIntTree)//remove-listener": { Doc: "binding.ExternalIntTree.RemoveListener", Argsn: 2, @@ -117114,6 +137388,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * ids - dict[string, block[string]] + // * values - dict[string, integer] + // Result: + // * error "Go(binding.ExternalIntTree)//set": { Doc: "binding.ExternalIntTree.Set", Argsn: 3, @@ -117165,8 +137445,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalIntTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -117193,8 +137474,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalIntTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -117282,6 +137564,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalIntTree) + // * id - string + // * value - integer + // Result: + // * error "Go(binding.ExternalIntTree)//set-value": { Doc: "binding.ExternalIntTree.SetValue", Argsn: 3, @@ -117338,6 +137626,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRune) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalRune)//add-listener": { Doc: "binding.ExternalRune.AddListener", Argsn: 2, @@ -117398,6 +137689,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRune) + // Result: + // * Go(rune) + // * error "Go(binding.ExternalRune)//get": { Doc: "binding.ExternalRune.Get", Argsn: 1, @@ -117442,6 +137738,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRune) + // Result: + // * error "Go(binding.ExternalRune)//reload": { Doc: "binding.ExternalRune.Reload", Argsn: 1, @@ -117484,6 +137784,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRune) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalRune)//remove-listener": { Doc: "binding.ExternalRune.RemoveListener", Argsn: 2, @@ -117544,6 +137847,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRune) + // * 1 - Go(rune) + // Result: + // * error "Go(binding.ExternalRune)//set": { Doc: "binding.ExternalRune.Set", Argsn: 2, @@ -117599,6 +137907,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalRuneList)//add-listener": { Doc: "binding.ExternalRuneList.AddListener", Argsn: 2, @@ -117659,6 +137970,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * value - Go(rune) + // Result: + // * error "Go(binding.ExternalRuneList)//append": { Doc: "binding.ExternalRuneList.Append", Argsn: 2, @@ -117714,6 +138030,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // Result: + // * block[Go(rune)] + // * error "Go(binding.ExternalRuneList)//get": { Doc: "binding.ExternalRuneList.Get", Argsn: 1, @@ -117764,6 +138085,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalRuneList)//get-item": { Doc: "binding.ExternalRuneList.GetItem", Argsn: 2, @@ -117815,6 +138142,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * index - integer + // Result: + // * Go(rune) + // * error "Go(binding.ExternalRuneList)//get-value": { Doc: "binding.ExternalRuneList.GetValue", Argsn: 2, @@ -117866,6 +138199,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // Result: + // * integer "Go(binding.ExternalRuneList)//length": { Doc: "binding.ExternalRuneList.Length", Argsn: 1, @@ -117902,6 +138239,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * value - Go(rune) + // Result: + // * error "Go(binding.ExternalRuneList)//prepend": { Doc: "binding.ExternalRuneList.Prepend", Argsn: 2, @@ -117957,6 +138299,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // Result: + // * error "Go(binding.ExternalRuneList)//reload": { Doc: "binding.ExternalRuneList.Reload", Argsn: 1, @@ -117999,6 +138345,69 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * value - Go(rune) + // Result: + // * error + "Go(binding.ExternalRuneList)//remove": { + Doc: "binding.ExternalRuneList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalRuneList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalRuneList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalRuneList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneList)//remove: arg 1: " + "expected native of type binding.ExternalRuneList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val rune + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(rune); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneList)//remove: arg 2: " + "expected native of type rune, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneList)//remove: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalRuneList)//remove-listener": { Doc: "binding.ExternalRuneList.RemoveListener", Argsn: 2, @@ -118059,6 +138468,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * list - block[Go(rune)] + // Result: + // * error "Go(binding.ExternalRuneList)//set": { Doc: "binding.ExternalRuneList.Set", Argsn: 2, @@ -118094,10 +138508,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]rune, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(rune); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalRuneList)//set: arg 2: " + "block item: " + "expected native of type rune, but got " + objectDebugString(ps.Idx, v)) @@ -118129,6 +138544,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneList) + // * index - integer + // * value - Go(rune) + // Result: + // * error "Go(binding.ExternalRuneList)//set-value": { Doc: "binding.ExternalRuneList.SetValue", Argsn: 3, @@ -118191,6 +138612,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalRuneTree)//add-listener": { Doc: "binding.ExternalRuneTree.AddListener", Argsn: 2, @@ -118251,6 +138675,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * parent - string + // * id - string + // * value - Go(rune) + // Result: + // * error "Go(binding.ExternalRuneTree)//append": { Doc: "binding.ExternalRuneTree.Append", Argsn: 4, @@ -118320,6 +138751,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalRuneTree)//child-i-ds": { Doc: "binding.ExternalRuneTree.ChildIDs", Argsn: 2, @@ -118369,6 +138805,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, Go(rune)] + // ] + // * error "Go(binding.ExternalRuneTree)//get": { Doc: "binding.ExternalRuneTree.Get", Argsn: 1, @@ -118440,6 +138884,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalRuneTree)//get-item": { Doc: "binding.ExternalRuneTree.GetItem", Argsn: 2, @@ -118491,6 +138941,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * id - string + // Result: + // * Go(rune) + // * error "Go(binding.ExternalRuneTree)//get-value": { Doc: "binding.ExternalRuneTree.GetValue", Argsn: 2, @@ -118542,6 +138998,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * parent - string + // * id - string + // * value - Go(rune) + // Result: + // * error "Go(binding.ExternalRuneTree)//prepend": { Doc: "binding.ExternalRuneTree.Prepend", Argsn: 4, @@ -118611,6 +139074,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // Result: + // * error "Go(binding.ExternalRuneTree)//reload": { Doc: "binding.ExternalRuneTree.Reload", Argsn: 1, @@ -118653,6 +139120,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalRuneTree)//remove": { + Doc: "binding.ExternalRuneTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalRuneTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalRuneTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalRuneTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneTree)//remove: arg 1: " + "expected native of type binding.ExternalRuneTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalRuneTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalRuneTree)//remove-listener": { Doc: "binding.ExternalRuneTree.RemoveListener", Argsn: 2, @@ -118713,6 +139237,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * ids - dict[string, block[string]] + // * values - dict[string, Go(rune)] + // Result: + // * error "Go(binding.ExternalRuneTree)//set": { Doc: "binding.ExternalRuneTree.Set", Argsn: 3, @@ -118764,8 +139294,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalRuneTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -118792,8 +139323,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalRuneTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -118893,6 +139425,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalRuneTree) + // * id - string + // * value - Go(rune) + // Result: + // * error "Go(binding.ExternalRuneTree)//set-value": { Doc: "binding.ExternalRuneTree.SetValue", Argsn: 3, @@ -118955,6 +139493,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalString) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalString)//add-listener": { Doc: "binding.ExternalString.AddListener", Argsn: 2, @@ -119015,6 +139556,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalString) + // Result: + // * string + // * error "Go(binding.ExternalString)//get": { Doc: "binding.ExternalString.Get", Argsn: 1, @@ -119059,6 +139605,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalString) + // Result: + // * error "Go(binding.ExternalString)//reload": { Doc: "binding.ExternalString.Reload", Argsn: 1, @@ -119101,6 +139651,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalString) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalString)//remove-listener": { Doc: "binding.ExternalString.RemoveListener", Argsn: 2, @@ -119161,6 +139714,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalString) + // * 1 - string + // Result: + // * error "Go(binding.ExternalString)//set": { Doc: "binding.ExternalString.Set", Argsn: 2, @@ -119210,6 +139768,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalStringList)//add-listener": { Doc: "binding.ExternalStringList.AddListener", Argsn: 2, @@ -119270,6 +139831,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * value - string + // Result: + // * error "Go(binding.ExternalStringList)//append": { Doc: "binding.ExternalStringList.Append", Argsn: 2, @@ -119319,6 +139885,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // Result: + // * block[string] + // * error "Go(binding.ExternalStringList)//get": { Doc: "binding.ExternalStringList.Get", Argsn: 1, @@ -119369,6 +139940,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalStringList)//get-item": { Doc: "binding.ExternalStringList.GetItem", Argsn: 2, @@ -119420,6 +139997,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * index - integer + // Result: + // * string + // * error "Go(binding.ExternalStringList)//get-value": { Doc: "binding.ExternalStringList.GetValue", Argsn: 2, @@ -119471,6 +140054,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // Result: + // * integer "Go(binding.ExternalStringList)//length": { Doc: "binding.ExternalStringList.Length", Argsn: 1, @@ -119507,6 +140094,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * value - string + // Result: + // * error "Go(binding.ExternalStringList)//prepend": { Doc: "binding.ExternalStringList.Prepend", Argsn: 2, @@ -119556,6 +140148,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // Result: + // * error "Go(binding.ExternalStringList)//reload": { Doc: "binding.ExternalStringList.Reload", Argsn: 1, @@ -119598,6 +140194,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * value - string + // Result: + // * error + "Go(binding.ExternalStringList)//remove": { + Doc: "binding.ExternalStringList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalStringList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalStringList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalStringList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringList)//remove: arg 1: " + "expected native of type binding.ExternalStringList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringList)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalStringList)//remove-listener": { Doc: "binding.ExternalStringList.RemoveListener", Argsn: 2, @@ -119658,6 +140311,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * list - block[string] + // Result: + // * error "Go(binding.ExternalStringList)//set": { Doc: "binding.ExternalStringList.Set", Argsn: 2, @@ -119693,8 +140351,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.String); ok { - arg1Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalStringList)//set: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -119722,6 +140381,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringList) + // * index - integer + // * value - string + // Result: + // * error "Go(binding.ExternalStringList)//set-value": { Doc: "binding.ExternalStringList.SetValue", Argsn: 3, @@ -119778,6 +140443,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalStringTree)//add-listener": { Doc: "binding.ExternalStringTree.AddListener", Argsn: 2, @@ -119838,6 +140506,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * parent - string + // * id - string + // * value - string + // Result: + // * error "Go(binding.ExternalStringTree)//append": { Doc: "binding.ExternalStringTree.Append", Argsn: 4, @@ -119901,6 +140576,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalStringTree)//child-i-ds": { Doc: "binding.ExternalStringTree.ChildIDs", Argsn: 2, @@ -119950,6 +140630,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, string] + // ] + // * error "Go(binding.ExternalStringTree)//get": { Doc: "binding.ExternalStringTree.Get", Argsn: 1, @@ -120021,6 +140709,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalStringTree)//get-item": { Doc: "binding.ExternalStringTree.GetItem", Argsn: 2, @@ -120072,6 +140766,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * id - string + // Result: + // * string + // * error "Go(binding.ExternalStringTree)//get-value": { Doc: "binding.ExternalStringTree.GetValue", Argsn: 2, @@ -120123,6 +140823,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * parent - string + // * id - string + // * value - string + // Result: + // * error "Go(binding.ExternalStringTree)//prepend": { Doc: "binding.ExternalStringTree.Prepend", Argsn: 4, @@ -120186,6 +140893,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // Result: + // * error "Go(binding.ExternalStringTree)//reload": { Doc: "binding.ExternalStringTree.Reload", Argsn: 1, @@ -120228,6 +140939,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalStringTree)//remove": { + Doc: "binding.ExternalStringTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalStringTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalStringTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalStringTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringTree)//remove: arg 1: " + "expected native of type binding.ExternalStringTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalStringTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalStringTree)//remove-listener": { Doc: "binding.ExternalStringTree.RemoveListener", Argsn: 2, @@ -120288,6 +141056,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * ids - dict[string, block[string]] + // * values - dict[string, string] + // Result: + // * error "Go(binding.ExternalStringTree)//set": { Doc: "binding.ExternalStringTree.Set", Argsn: 3, @@ -120339,8 +141113,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalStringTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -120367,8 +141142,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalStringTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -120456,6 +141232,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalStringTree) + // * id - string + // * value - string + // Result: + // * error "Go(binding.ExternalStringTree)//set-value": { Doc: "binding.ExternalStringTree.SetValue", Argsn: 3, @@ -120512,6 +141294,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURI) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalURI)//add-listener": { Doc: "binding.ExternalURI.AddListener", Argsn: 2, @@ -120572,6 +141357,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURI) + // Result: + // * Go(fyne.URI) + // * error "Go(binding.ExternalURI)//get": { Doc: "binding.ExternalURI.Get", Argsn: 1, @@ -120616,6 +141406,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURI) + // Result: + // * error "Go(binding.ExternalURI)//reload": { Doc: "binding.ExternalURI.Reload", Argsn: 1, @@ -120658,6 +141452,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURI) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalURI)//remove-listener": { Doc: "binding.ExternalURI.RemoveListener", Argsn: 2, @@ -120718,6 +141515,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURI) + // * 1 - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURI)//set": { Doc: "binding.ExternalURI.Set", Argsn: 2, @@ -120786,6 +141588,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalURIList)//add-listener": { Doc: "binding.ExternalURIList.AddListener", Argsn: 2, @@ -120846,6 +141651,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURIList)//append": { Doc: "binding.ExternalURIList.Append", Argsn: 2, @@ -120914,6 +141724,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // Result: + // * block[Go(fyne.URI)] + // * error "Go(binding.ExternalURIList)//get": { Doc: "binding.ExternalURIList.Get", Argsn: 1, @@ -120964,6 +141779,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalURIList)//get-item": { Doc: "binding.ExternalURIList.GetItem", Argsn: 2, @@ -121015,6 +141836,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * index - integer + // Result: + // * Go(fyne.URI) + // * error "Go(binding.ExternalURIList)//get-value": { Doc: "binding.ExternalURIList.GetValue", Argsn: 2, @@ -121066,6 +141893,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // Result: + // * integer "Go(binding.ExternalURIList)//length": { Doc: "binding.ExternalURIList.Length", Argsn: 1, @@ -121102,6 +141933,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURIList)//prepend": { Doc: "binding.ExternalURIList.Prepend", Argsn: 2, @@ -121170,6 +142006,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // Result: + // * error "Go(binding.ExternalURIList)//reload": { Doc: "binding.ExternalURIList.Reload", Argsn: 1, @@ -121212,6 +142052,82 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * value - Go(fyne.URI) + // Result: + // * error + "Go(binding.ExternalURIList)//remove": { + Doc: "binding.ExternalURIList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalURIList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalURIList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalURIList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 1: " + "expected native of type binding.ExternalURIList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.URI + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_URI(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URI); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 2: " + "expected native of type fyne.URI, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURIList)//remove: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalURIList)//remove-listener": { Doc: "binding.ExternalURIList.RemoveListener", Argsn: 2, @@ -121272,6 +142188,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * list - block[Go(fyne.URI)] + // Result: + // * error "Go(binding.ExternalURIList)//set": { Doc: "binding.ExternalURIList.Set", Argsn: 2, @@ -121307,17 +142228,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(binding.ExternalURIList)//set: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalURIList)//set: arg 2: " + "block item: " + "expected native of type fyne.URI, but got " + objectDebugString(ps.Idx, v)) @@ -121327,7 +142249,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalURIList)//set: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(binding.ExternalURIList)//set: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -121355,6 +142277,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURIList) + // * index - integer + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURIList)//set-value": { Doc: "binding.ExternalURIList.SetValue", Argsn: 3, @@ -121430,6 +142358,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalURITree)//add-listener": { Doc: "binding.ExternalURITree.AddListener", Argsn: 2, @@ -121490,6 +142421,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * parent - string + // * id - string + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURITree)//append": { Doc: "binding.ExternalURITree.Append", Argsn: 4, @@ -121572,6 +142510,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * 1 - string + // Result: + // * block[string] "Go(binding.ExternalURITree)//child-i-ds": { Doc: "binding.ExternalURITree.ChildIDs", Argsn: 2, @@ -121621,6 +142564,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, Go(fyne.URI)] + // ] + // * error "Go(binding.ExternalURITree)//get": { Doc: "binding.ExternalURITree.Get", Argsn: 1, @@ -121692,6 +142643,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalURITree)//get-item": { Doc: "binding.ExternalURITree.GetItem", Argsn: 2, @@ -121743,6 +142700,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * id - string + // Result: + // * Go(fyne.URI) + // * error "Go(binding.ExternalURITree)//get-value": { Doc: "binding.ExternalURITree.GetValue", Argsn: 2, @@ -121794,6 +142757,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * parent - string + // * id - string + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURITree)//prepend": { Doc: "binding.ExternalURITree.Prepend", Argsn: 4, @@ -121876,6 +142846,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // Result: + // * error "Go(binding.ExternalURITree)//reload": { Doc: "binding.ExternalURITree.Reload", Argsn: 1, @@ -121918,6 +142892,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * id - string + // Result: + // * error + "Go(binding.ExternalURITree)//remove": { + Doc: "binding.ExternalURITree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalURITree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalURITree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURITree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalURITree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURITree)//remove: arg 1: " + "expected native of type binding.ExternalURITree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURITree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURITree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalURITree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalURITree)//remove-listener": { Doc: "binding.ExternalURITree.RemoveListener", Argsn: 2, @@ -121978,6 +143009,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * ids - dict[string, block[string]] + // * values - dict[string, Go(fyne.URI)] + // Result: + // * error "Go(binding.ExternalURITree)//set": { Doc: "binding.ExternalURITree.Set", Argsn: 3, @@ -122029,8 +143066,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalURITree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -122057,8 +143095,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.ExternalURITree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -122184,6 +143223,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalURITree) + // * id - string + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.ExternalURITree)//set-value": { Doc: "binding.ExternalURITree.SetValue", Argsn: 3, @@ -122259,6 +143304,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntyped) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalUntyped)//add-listener": { Doc: "binding.ExternalUntyped.AddListener", Argsn: 2, @@ -122319,6 +143367,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntyped) + // Result: + // * Go(any) + // * error "Go(binding.ExternalUntyped)//get": { Doc: "binding.ExternalUntyped.Get", Argsn: 1, @@ -122351,7 +143404,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.Get() var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -122363,6 +143416,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntyped) + // Result: + // * error "Go(binding.ExternalUntyped)//reload": { Doc: "binding.ExternalUntyped.Reload", Argsn: 1, @@ -122405,6 +143462,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntyped) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalUntyped)//remove-listener": { Doc: "binding.ExternalUntyped.RemoveListener", Argsn: 2, @@ -122465,6 +143525,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntyped) + // * 1 - Go(any) + // Result: + // * error "Go(binding.ExternalUntyped)//set": { Doc: "binding.ExternalUntyped.Set", Argsn: 2, @@ -122495,14 +143560,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntyped)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val interface{} + var arg1Val any switch v := arg1.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg1Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntyped)//set: arg 2: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntyped)//set: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -122520,6 +143585,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalUntypedList)//add-listener": { Doc: "binding.ExternalUntypedList.AddListener", Argsn: 2, @@ -122580,6 +143648,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * value - Go(any) + // Result: + // * error "Go(binding.ExternalUntypedList)//append": { Doc: "binding.ExternalUntypedList.Append", Argsn: 2, @@ -122610,14 +143683,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedList)//append: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val interface{} + var arg1Val any switch v := arg1.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg1Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedList)//append: arg 2: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedList)//append: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -122635,6 +143708,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // Result: + // * block[Go(any)] + // * error "Go(binding.ExternalUntypedList)//get": { Doc: "binding.ExternalUntypedList.Get", Argsn: 1, @@ -122670,7 +143748,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(interface{})") + items[i] = *env.NewNative(ps.Idx, it, "Go(any)") } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -122685,6 +143763,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalUntypedList)//get-item": { Doc: "binding.ExternalUntypedList.GetItem", Argsn: 2, @@ -122736,6 +143820,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * index - integer + // Result: + // * Go(any) + // * error "Go(binding.ExternalUntypedList)//get-value": { Doc: "binding.ExternalUntypedList.GetValue", Argsn: 2, @@ -122775,7 +143865,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.GetValue(arg1Val) var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -122787,6 +143877,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // Result: + // * integer "Go(binding.ExternalUntypedList)//length": { Doc: "binding.ExternalUntypedList.Length", Argsn: 1, @@ -122823,6 +143917,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * value - Go(any) + // Result: + // * error "Go(binding.ExternalUntypedList)//prepend": { Doc: "binding.ExternalUntypedList.Prepend", Argsn: 2, @@ -122853,14 +143952,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedList)//prepend: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val interface{} + var arg1Val any switch v := arg1.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg1Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedList)//prepend: arg 2: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedList)//prepend: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -122878,6 +143977,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // Result: + // * error "Go(binding.ExternalUntypedList)//reload": { Doc: "binding.ExternalUntypedList.Reload", Argsn: 1, @@ -122920,6 +144023,69 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * value - Go(any) + // Result: + // * error + "Go(binding.ExternalUntypedList)//remove": { + Doc: "binding.ExternalUntypedList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedList)//remove: arg 1: " + "expected native of type binding.ExternalUntypedList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val any + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedList)//remove: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedList)//remove: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalUntypedList)//remove-listener": { Doc: "binding.ExternalUntypedList.RemoveListener", Argsn: 2, @@ -122980,6 +144146,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * list - block[Go(any)] + // Result: + // * error "Go(binding.ExternalUntypedList)//set": { Doc: "binding.ExternalUntypedList.Set", Argsn: 2, @@ -123010,18 +144181,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedList)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val []interface{} + var arg1Val []any switch v := arg1.(type) { case env.Block: - arg1Val = make([]interface{}, len(v.Series.S)) + arg1Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg1Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedList)//set: arg 2: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedList)//set: arg 2: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -123050,6 +144222,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedList) + // * index - integer + // * value - Go(any) + // Result: + // * error "Go(binding.ExternalUntypedList)//set-value": { Doc: "binding.ExternalUntypedList.SetValue", Argsn: 3, @@ -123087,14 +144265,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedList)//set-value: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) } - var arg2Val interface{} + var arg2Val any switch v := arg2.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg2Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedList)//set-value: arg 3: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedList)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -123112,6 +144290,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalUntypedMap)//add-listener": { Doc: "binding.ExternalUntypedMap.AddListener", Argsn: 2, @@ -123172,6 +144353,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - string "Go(binding.ExternalUntypedMap)//delete": { Doc: "binding.ExternalUntypedMap.Delete", Argsn: 2, @@ -123213,6 +144397,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // Result: + // * dict[string, Go(any)] + // * error "Go(binding.ExternalUntypedMap)//get": { Doc: "binding.ExternalUntypedMap.Get", Argsn: 1, @@ -123249,7 +144438,7 @@ var builtinsGenerated = map[string]*env.Builtin{ data := make(map[string]any, len(res0)) for mKey, mVal := range res0 { var dVal env.Object - dVal = *env.NewNative(ps.Idx, mVal, "Go(interface{})") + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") data[mKey] = dVal } res0Obj = *env.NewDict(data) @@ -123265,6 +144454,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.ExternalUntypedMap)//get-item": { Doc: "binding.ExternalUntypedMap.GetItem", Argsn: 2, @@ -123316,6 +144511,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - string + // Result: + // * Go(any) + // * error "Go(binding.ExternalUntypedMap)//get-value": { Doc: "binding.ExternalUntypedMap.GetValue", Argsn: 2, @@ -123355,7 +144556,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.GetValue(arg1Val) var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -123367,6 +144568,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // Result: + // * block[string] "Go(binding.ExternalUntypedMap)//keys": { Doc: "binding.ExternalUntypedMap.Keys", Argsn: 1, @@ -123409,6 +144614,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // Result: + // * error "Go(binding.ExternalUntypedMap)//reload": { Doc: "binding.ExternalUntypedMap.Reload", Argsn: 1, @@ -123451,6 +144660,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - Go(binding.DataListener) "Go(binding.ExternalUntypedMap)//remove-listener": { Doc: "binding.ExternalUntypedMap.RemoveListener", Argsn: 2, @@ -123511,6 +144723,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - dict[string, Go(any)] + // Result: + // * error "Go(binding.ExternalUntypedMap)//set": { Doc: "binding.ExternalUntypedMap.Set", Argsn: 2, @@ -123541,14 +144758,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val map[string]interface{} + var arg1Val map[string]any switch v := arg1.(type) { case env.Block: if len(v.Series.S)%2 != 0 { ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 2: " + "expected block to have length of multiple of 2, but got block with length " + strconv.Itoa(len(v.Series.S))) } - arg1Val = make(map[string]interface{}, len(v.Series.S)/2) + arg1Val = make(map[string]any, len(v.Series.S)/2) for i := 0; i < len(v.Series.S); i += 2 { var mapK string if vc, ok := v.Series.S[i+0].(env.String); ok { @@ -123557,14 +144774,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 2: " + "map key: " + "expected string, but got " + objectDebugString(ps.Idx, v.Series.S[i+0])) } - var mapV interface{} + var mapV any switch v := v.Series.S[i+1].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 2: " + "map value: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 2: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -123573,17 +144790,17 @@ var builtinsGenerated = map[string]*env.Builtin{ arg1Val[mapK] = mapV } case env.Dict: - arg1Val = make(map[string]interface{}, len(v.Data)) + arg1Val = make(map[string]any, len(v.Data)) for dictK, dictV := range v.Data { mapK := dictK - var mapV interface{} + var mapV any switch v := dictV.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 2: " + "map value: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedMap)//set: arg 2: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -123613,6 +144830,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedMap) + // * 1 - string + // * 2 - Go(any) + // Result: + // * error "Go(binding.ExternalUntypedMap)//set-value": { Doc: "binding.ExternalUntypedMap.SetValue", Argsn: 3, @@ -123650,14 +144873,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.ExternalUntypedMap)//set-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) } - var arg2Val interface{} + var arg2Val any switch v := arg2.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg2Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.ExternalUntypedMap)//set-value: arg 3: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.ExternalUntypedMap)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -123675,6 +144898,890 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * 1 - Go(binding.DataListener) + "Go(binding.ExternalUntypedTree)//add-listener": { + Doc: "binding.ExternalUntypedTree.AddListener", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val binding.DataListener + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_binding_DataListener(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.DataListener); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 2: " + "expected native of type binding.DataListener, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//add-listener: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.AddListener(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * parent - string + // * id - string + // * value - Go(any) + // Result: + // * error + "Go(binding.ExternalUntypedTree)//append": { + Doc: "binding.ExternalUntypedTree.Append", + Argsn: 4, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val string + if vc, ok := arg2.(env.String); ok { + arg2Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 3: " + "expected string, but got " + objectDebugString(ps.Idx, arg2)) + } + var arg3Val any + switch v := arg3.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg3Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 4: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//append: arg 4: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Append(arg1Val, arg2Val, arg3Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * 1 - string + // Result: + // * block[string] + "Go(binding.ExternalUntypedTree)//child-i-ds": { + Doc: "binding.ExternalUntypedTree.ChildIDs", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//child-i-ds: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//child-i-ds: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//child-i-ds: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//child-i-ds: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//child-i-ds: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + res0 := arg0Val.ChildIDs(arg1Val) + var res0Obj env.Object + { + items := make([]env.Object, len(res0)) + for i, it := range res0 { + items[i] = *env.NewString(it) + } + res0Obj = *env.NewBlock(*env.NewTSeries(items)) + } + return res0Obj + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, Go(any)] + // ] + // * error + "Go(binding.ExternalUntypedTree)//get": { + Doc: "binding.ExternalUntypedTree.Get", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0, res1, resErr := arg0Val.Get() + var res0Obj env.Object + { + data := make(map[string]any, len(res0)) + for mKey, mVal := range res0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + res0Obj = *env.NewDict(data) + } + var res1Obj env.Object + { + data := make(map[string]any, len(res1)) + for mKey, mVal := range res1 { + var dVal env.Object + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") + data[mKey] = dVal + } + res1Obj = *env.NewDict(data) + } + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return *env.NewBlock(*env.NewTSeries([]env.Object{ + res0Obj, + res1Obj, + })) + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error + "Go(binding.ExternalUntypedTree)//get-item": { + Doc: "binding.ExternalUntypedTree.GetItem", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-item: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-item: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-item: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-item: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-item: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + res0, resErr := arg0Val.GetItem(arg1Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(binding.DataItem)") + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return res0Obj + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * id - string + // Result: + // * Go(any) + // * error + "Go(binding.ExternalUntypedTree)//get-value": { + Doc: "binding.ExternalUntypedTree.GetValue", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-value: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-value: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-value: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-value: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//get-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + res0, resErr := arg0Val.GetValue(arg1Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return res0Obj + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * parent - string + // * id - string + // * value - Go(any) + // Result: + // * error + "Go(binding.ExternalUntypedTree)//prepend": { + Doc: "binding.ExternalUntypedTree.Prepend", + Argsn: 4, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val string + if vc, ok := arg2.(env.String); ok { + arg2Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 3: " + "expected string, but got " + objectDebugString(ps.Idx, arg2)) + } + var arg3Val any + switch v := arg3.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg3Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 4: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//prepend: arg 4: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Prepend(arg1Val, arg2Val, arg3Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // Result: + // * error + "Go(binding.ExternalUntypedTree)//reload": { + Doc: "binding.ExternalUntypedTree.Reload", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//reload: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//reload: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//reload: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//reload: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Reload() + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * id - string + // Result: + // * error + "Go(binding.ExternalUntypedTree)//remove": { + Doc: "binding.ExternalUntypedTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * 1 - Go(binding.DataListener) + "Go(binding.ExternalUntypedTree)//remove-listener": { + Doc: "binding.ExternalUntypedTree.RemoveListener", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val binding.DataListener + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_binding_DataListener(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.DataListener); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 2: " + "expected native of type binding.DataListener, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//remove-listener: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.RemoveListener(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * ids - dict[string, block[string]] + // * values - dict[string, Go(any)] + // Result: + // * error + "Go(binding.ExternalUntypedTree)//set": { + Doc: "binding.ExternalUntypedTree.Set", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val map[string][]string + switch v := arg1.(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "expected block to have length of multiple of 2, but got block with length " + strconv.Itoa(len(v.Series.S))) + } + arg1Val = make(map[string][]string, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map key: " + "expected string, but got " + objectDebugString(ps.Idx, v.Series.S[i+0])) + } + var mapV []string + switch v := v.Series.S[i+1].(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map value: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + mapV = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map value: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + arg1Val[mapK] = mapV + } + case env.Dict: + arg1Val = make(map[string][]string, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV []string + switch v := dictV.(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map value: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + mapV = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "map value: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + arg1Val[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 2: " + "expected block, dict or nil, but got " + objectDebugString(ps.Idx, v)) + } + var arg2Val map[string]any + switch v := arg2.(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "expected block to have length of multiple of 2, but got block with length " + strconv.Itoa(len(v.Series.S))) + } + arg2Val = make(map[string]any, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "map key: " + "expected string, but got " + objectDebugString(ps.Idx, v.Series.S[i+0])) + } + var mapV any + switch v := v.Series.S[i+1].(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "map value: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg2Val[mapK] = mapV + } + case env.Dict: + arg2Val = make(map[string]any, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV any + switch v := dictV.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "map value: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg2Val[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg2Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set: arg 3: " + "expected block, dict or nil, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Set(arg1Val, arg2Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.ExternalUntypedTree) + // * id - string + // * value - Go(any) + // Result: + // * error + "Go(binding.ExternalUntypedTree)//set-value": { + Doc: "binding.ExternalUntypedTree.SetValue", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.ExternalUntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_ExternalUntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.ExternalUntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 1: " + "expected native of type binding.ExternalUntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val any + switch v := arg2.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg2Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.ExternalUntypedTree)//set-value: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.SetValue(arg1Val, arg2Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.Float) + // * 1 - Go(binding.DataListener) "Go(binding.Float)//add-listener": { Doc: "binding.Float.AddListener", Argsn: 2, @@ -123735,6 +145842,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Float) + // Result: + // * decimal + // * error "Go(binding.Float)//get": { Doc: "binding.Float.Get", Argsn: 1, @@ -123779,6 +145891,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Float) + // * 1 - Go(binding.DataListener) "Go(binding.Float)//remove-listener": { Doc: "binding.Float.RemoveListener", Argsn: 2, @@ -123839,6 +145954,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Float) + // * 1 - decimal + // Result: + // * error "Go(binding.Float)//set": { Doc: "binding.Float.Set", Argsn: 2, @@ -123888,6 +146008,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatList) + // * 1 - Go(binding.DataListener) "Go(binding.FloatList)//add-listener": { Doc: "binding.FloatList.AddListener", Argsn: 2, @@ -123948,6 +146071,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatList) + // * value - decimal + // Result: + // * error "Go(binding.FloatList)//append": { Doc: "binding.FloatList.Append", Argsn: 2, @@ -123997,6 +146125,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatList) + // Result: + // * block[decimal] + // * error "Go(binding.FloatList)//get": { Doc: "binding.FloatList.Get", Argsn: 1, @@ -124047,6 +146180,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.FloatList)//get-item": { Doc: "binding.FloatList.GetItem", Argsn: 2, @@ -124098,6 +146237,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatList) + // * index - integer + // Result: + // * decimal + // * error "Go(binding.FloatList)//get-value": { Doc: "binding.FloatList.GetValue", Argsn: 2, @@ -124149,6 +146294,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatList) + // Result: + // * integer "Go(binding.FloatList)//length": { Doc: "binding.FloatList.Length", Argsn: 1, @@ -124185,6 +146334,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatList) + // * value - decimal + // Result: + // * error "Go(binding.FloatList)//prepend": { Doc: "binding.FloatList.Prepend", Argsn: 2, @@ -124234,6 +146388,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatList) + // * value - decimal + // Result: + // * error + "Go(binding.FloatList)//remove": { + Doc: "binding.FloatList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.FloatList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_FloatList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.FloatList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatList)//remove: arg 1: " + "expected native of type binding.FloatList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.FloatList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val float64 + if vc, ok := arg1.(env.Decimal); ok { + arg1Val = float64(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatList)//remove: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.FloatList) + // * 1 - Go(binding.DataListener) "Go(binding.FloatList)//remove-listener": { Doc: "binding.FloatList.RemoveListener", Argsn: 2, @@ -124294,6 +146505,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatList) + // * list - block[decimal] + // Result: + // * error "Go(binding.FloatList)//set": { Doc: "binding.FloatList.Set", Argsn: 2, @@ -124329,8 +146545,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.Decimal); ok { - arg1Val[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.FloatList)//set: arg 2: " + "block item: " + "expected decimal, but got " + objectDebugString(ps.Idx, it)) @@ -124358,6 +146575,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatList) + // * index - integer + // * value - decimal + // Result: + // * error "Go(binding.FloatList)//set-value": { Doc: "binding.FloatList.SetValue", Argsn: 3, @@ -124414,6 +146637,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * 1 - Go(binding.DataListener) "Go(binding.FloatTree)//add-listener": { Doc: "binding.FloatTree.AddListener", Argsn: 2, @@ -124474,6 +146700,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * parent - string + // * id - string + // * value - decimal + // Result: + // * error "Go(binding.FloatTree)//append": { Doc: "binding.FloatTree.Append", Argsn: 4, @@ -124537,6 +146770,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.FloatTree)//child-i-ds": { Doc: "binding.FloatTree.ChildIDs", Argsn: 2, @@ -124586,6 +146824,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, decimal] + // ] + // * error "Go(binding.FloatTree)//get": { Doc: "binding.FloatTree.Get", Argsn: 1, @@ -124657,6 +146903,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.FloatTree)//get-item": { Doc: "binding.FloatTree.GetItem", Argsn: 2, @@ -124708,6 +146960,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * id - string + // Result: + // * decimal + // * error "Go(binding.FloatTree)//get-value": { Doc: "binding.FloatTree.GetValue", Argsn: 2, @@ -124759,6 +147017,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * parent - string + // * id - string + // * value - decimal + // Result: + // * error "Go(binding.FloatTree)//prepend": { Doc: "binding.FloatTree.Prepend", Argsn: 4, @@ -124822,6 +147087,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * id - string + // Result: + // * error + "Go(binding.FloatTree)//remove": { + Doc: "binding.FloatTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.FloatTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_FloatTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.FloatTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatTree)//remove: arg 1: " + "expected native of type binding.FloatTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.FloatTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.FloatTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.FloatTree) + // * 1 - Go(binding.DataListener) "Go(binding.FloatTree)//remove-listener": { Doc: "binding.FloatTree.RemoveListener", Argsn: 2, @@ -124882,6 +147204,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * ids - dict[string, block[string]] + // * values - dict[string, decimal] + // Result: + // * error "Go(binding.FloatTree)//set": { Doc: "binding.FloatTree.Set", Argsn: 3, @@ -124933,8 +147261,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.FloatTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -124961,8 +147290,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.FloatTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -125050,6 +147380,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.FloatTree) + // * id - string + // * value - decimal + // Result: + // * error "Go(binding.FloatTree)//set-value": { Doc: "binding.FloatTree.SetValue", Argsn: 3, @@ -125106,6 +147442,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Int) + // * 1 - Go(binding.DataListener) "Go(binding.Int)//add-listener": { Doc: "binding.Int.AddListener", Argsn: 2, @@ -125166,6 +147505,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Int) + // Result: + // * integer + // * error "Go(binding.Int)//get": { Doc: "binding.Int.Get", Argsn: 1, @@ -125210,6 +147554,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Int) + // * 1 - Go(binding.DataListener) "Go(binding.Int)//remove-listener": { Doc: "binding.Int.RemoveListener", Argsn: 2, @@ -125270,6 +147617,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Int) + // * 1 - integer + // Result: + // * error "Go(binding.Int)//set": { Doc: "binding.Int.Set", Argsn: 2, @@ -125319,6 +147671,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntList) + // * 1 - Go(binding.DataListener) "Go(binding.IntList)//add-listener": { Doc: "binding.IntList.AddListener", Argsn: 2, @@ -125379,6 +147734,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntList) + // * value - integer + // Result: + // * error "Go(binding.IntList)//append": { Doc: "binding.IntList.Append", Argsn: 2, @@ -125428,6 +147788,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntList) + // Result: + // * block[integer] + // * error "Go(binding.IntList)//get": { Doc: "binding.IntList.Get", Argsn: 1, @@ -125478,6 +147843,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.IntList)//get-item": { Doc: "binding.IntList.GetItem", Argsn: 2, @@ -125529,6 +147900,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntList) + // * index - integer + // Result: + // * integer + // * error "Go(binding.IntList)//get-value": { Doc: "binding.IntList.GetValue", Argsn: 2, @@ -125580,6 +147957,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntList) + // Result: + // * integer "Go(binding.IntList)//length": { Doc: "binding.IntList.Length", Argsn: 1, @@ -125616,6 +147997,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntList) + // * value - integer + // Result: + // * error "Go(binding.IntList)//prepend": { Doc: "binding.IntList.Prepend", Argsn: 2, @@ -125665,6 +148051,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntList) + // * value - integer + // Result: + // * error + "Go(binding.IntList)//remove": { + Doc: "binding.IntList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.IntList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_IntList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.IntList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.IntList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.IntList)//remove: arg 1: " + "expected native of type binding.IntList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.IntList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.IntList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val int + if vc, ok := arg1.(env.Integer); ok { + arg1Val = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.IntList)//remove: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.IntList) + // * 1 - Go(binding.DataListener) "Go(binding.IntList)//remove-listener": { Doc: "binding.IntList.RemoveListener", Argsn: 2, @@ -125725,6 +148168,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntList) + // * list - block[integer] + // Result: + // * error "Go(binding.IntList)//set": { Doc: "binding.IntList.Set", Argsn: 2, @@ -125760,8 +148208,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.Integer); ok { - arg1Val[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.IntList)//set: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -125789,6 +148238,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntList) + // * index - integer + // * value - integer + // Result: + // * error "Go(binding.IntList)//set-value": { Doc: "binding.IntList.SetValue", Argsn: 3, @@ -125845,6 +148300,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntTree) + // * 1 - Go(binding.DataListener) "Go(binding.IntTree)//add-listener": { Doc: "binding.IntTree.AddListener", Argsn: 2, @@ -125905,6 +148363,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntTree) + // * parent - string + // * id - string + // * value - integer + // Result: + // * error "Go(binding.IntTree)//append": { Doc: "binding.IntTree.Append", Argsn: 4, @@ -125968,6 +148433,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.IntTree)//child-i-ds": { Doc: "binding.IntTree.ChildIDs", Argsn: 2, @@ -126017,6 +148487,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, integer] + // ] + // * error "Go(binding.IntTree)//get": { Doc: "binding.IntTree.Get", Argsn: 1, @@ -126088,6 +148566,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.IntTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.IntTree)//get-item": { Doc: "binding.IntTree.GetItem", Argsn: 2, @@ -126139,6 +148623,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntTree) + // * id - string + // Result: + // * integer + // * error "Go(binding.IntTree)//get-value": { Doc: "binding.IntTree.GetValue", Argsn: 2, @@ -126190,6 +148680,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.IntTree) + // * parent - string + // * id - string + // * value - integer + // Result: + // * error "Go(binding.IntTree)//prepend": { Doc: "binding.IntTree.Prepend", Argsn: 4, @@ -126253,6 +148750,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntTree) + // * id - string + // Result: + // * error + "Go(binding.IntTree)//remove": { + Doc: "binding.IntTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.IntTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_IntTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.IntTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.IntTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.IntTree)//remove: arg 1: " + "expected native of type binding.IntTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.IntTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.IntTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.IntTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.IntTree) + // * 1 - Go(binding.DataListener) "Go(binding.IntTree)//remove-listener": { Doc: "binding.IntTree.RemoveListener", Argsn: 2, @@ -126313,6 +148867,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntTree) + // * ids - dict[string, block[string]] + // * values - dict[string, integer] + // Result: + // * error "Go(binding.IntTree)//set": { Doc: "binding.IntTree.Set", Argsn: 3, @@ -126364,8 +148924,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.IntTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -126392,8 +148953,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.IntTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -126481,6 +149043,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.IntTree) + // * id - string + // * value - integer + // Result: + // * error "Go(binding.IntTree)//set-value": { Doc: "binding.IntTree.SetValue", Argsn: 3, @@ -126537,6 +149105,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Rune) + // * 1 - Go(binding.DataListener) "Go(binding.Rune)//add-listener": { Doc: "binding.Rune.AddListener", Argsn: 2, @@ -126597,6 +149168,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Rune) + // Result: + // * Go(rune) + // * error "Go(binding.Rune)//get": { Doc: "binding.Rune.Get", Argsn: 1, @@ -126641,6 +149217,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Rune) + // * 1 - Go(binding.DataListener) "Go(binding.Rune)//remove-listener": { Doc: "binding.Rune.RemoveListener", Argsn: 2, @@ -126701,6 +149280,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Rune) + // * 1 - Go(rune) + // Result: + // * error "Go(binding.Rune)//set": { Doc: "binding.Rune.Set", Argsn: 2, @@ -126756,6 +149340,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneList) + // * 1 - Go(binding.DataListener) "Go(binding.RuneList)//add-listener": { Doc: "binding.RuneList.AddListener", Argsn: 2, @@ -126816,6 +149403,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneList) + // * value - Go(rune) + // Result: + // * error "Go(binding.RuneList)//append": { Doc: "binding.RuneList.Append", Argsn: 2, @@ -126871,6 +149463,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneList) + // Result: + // * block[Go(rune)] + // * error "Go(binding.RuneList)//get": { Doc: "binding.RuneList.Get", Argsn: 1, @@ -126921,6 +149518,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.RuneList)//get-item": { Doc: "binding.RuneList.GetItem", Argsn: 2, @@ -126972,6 +149575,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneList) + // * index - integer + // Result: + // * Go(rune) + // * error "Go(binding.RuneList)//get-value": { Doc: "binding.RuneList.GetValue", Argsn: 2, @@ -127023,6 +149632,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneList) + // Result: + // * integer "Go(binding.RuneList)//length": { Doc: "binding.RuneList.Length", Argsn: 1, @@ -127059,6 +149672,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneList) + // * value - Go(rune) + // Result: + // * error "Go(binding.RuneList)//prepend": { Doc: "binding.RuneList.Prepend", Argsn: 2, @@ -127114,6 +149732,69 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneList) + // * value - Go(rune) + // Result: + // * error + "Go(binding.RuneList)//remove": { + Doc: "binding.RuneList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.RuneList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_RuneList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.RuneList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneList)//remove: arg 1: " + "expected native of type binding.RuneList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.RuneList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val rune + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(rune); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneList)//remove: arg 2: " + "expected native of type rune, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.RuneList)//remove: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.RuneList) + // * 1 - Go(binding.DataListener) "Go(binding.RuneList)//remove-listener": { Doc: "binding.RuneList.RemoveListener", Argsn: 2, @@ -127174,6 +149855,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneList) + // * list - block[Go(rune)] + // Result: + // * error "Go(binding.RuneList)//set": { Doc: "binding.RuneList.Set", Argsn: 2, @@ -127209,10 +149895,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]rune, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(rune); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(binding.RuneList)//set: arg 2: " + "block item: " + "expected native of type rune, but got " + objectDebugString(ps.Idx, v)) @@ -127244,6 +149931,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneList) + // * index - integer + // * value - Go(rune) + // Result: + // * error "Go(binding.RuneList)//set-value": { Doc: "binding.RuneList.SetValue", Argsn: 3, @@ -127306,6 +149999,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * 1 - Go(binding.DataListener) "Go(binding.RuneTree)//add-listener": { Doc: "binding.RuneTree.AddListener", Argsn: 2, @@ -127366,6 +150062,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * parent - string + // * id - string + // * value - Go(rune) + // Result: + // * error "Go(binding.RuneTree)//append": { Doc: "binding.RuneTree.Append", Argsn: 4, @@ -127435,6 +150138,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.RuneTree)//child-i-ds": { Doc: "binding.RuneTree.ChildIDs", Argsn: 2, @@ -127484,6 +150192,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, Go(rune)] + // ] + // * error "Go(binding.RuneTree)//get": { Doc: "binding.RuneTree.Get", Argsn: 1, @@ -127555,6 +150271,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.RuneTree)//get-item": { Doc: "binding.RuneTree.GetItem", Argsn: 2, @@ -127606,6 +150328,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * id - string + // Result: + // * Go(rune) + // * error "Go(binding.RuneTree)//get-value": { Doc: "binding.RuneTree.GetValue", Argsn: 2, @@ -127657,6 +150385,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * parent - string + // * id - string + // * value - Go(rune) + // Result: + // * error "Go(binding.RuneTree)//prepend": { Doc: "binding.RuneTree.Prepend", Argsn: 4, @@ -127726,6 +150461,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * id - string + // Result: + // * error + "Go(binding.RuneTree)//remove": { + Doc: "binding.RuneTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.RuneTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_RuneTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.RuneTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneTree)//remove: arg 1: " + "expected native of type binding.RuneTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.RuneTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.RuneTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.RuneTree) + // * 1 - Go(binding.DataListener) "Go(binding.RuneTree)//remove-listener": { Doc: "binding.RuneTree.RemoveListener", Argsn: 2, @@ -127786,6 +150578,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * ids - dict[string, block[string]] + // * values - dict[string, Go(rune)] + // Result: + // * error "Go(binding.RuneTree)//set": { Doc: "binding.RuneTree.Set", Argsn: 3, @@ -127837,8 +150635,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.RuneTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -127865,8 +150664,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.RuneTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -127966,6 +150766,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.RuneTree) + // * id - string + // * value - Go(rune) + // Result: + // * error "Go(binding.RuneTree)//set-value": { Doc: "binding.RuneTree.SetValue", Argsn: 3, @@ -128028,6 +150834,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.String) + // * 1 - Go(binding.DataListener) "Go(binding.String)//add-listener": { Doc: "binding.String.AddListener", Argsn: 2, @@ -128088,6 +150897,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.String) + // Result: + // * string + // * error "Go(binding.String)//get": { Doc: "binding.String.Get", Argsn: 1, @@ -128132,6 +150946,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.String) + // * 1 - Go(binding.DataListener) "Go(binding.String)//remove-listener": { Doc: "binding.String.RemoveListener", Argsn: 2, @@ -128192,6 +151009,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.String) + // * 1 - string + // Result: + // * error "Go(binding.String)//set": { Doc: "binding.String.Set", Argsn: 2, @@ -128241,6 +151063,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringList) + // * 1 - Go(binding.DataListener) "Go(binding.StringList)//add-listener": { Doc: "binding.StringList.AddListener", Argsn: 2, @@ -128301,6 +151126,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringList) + // * value - string + // Result: + // * error "Go(binding.StringList)//append": { Doc: "binding.StringList.Append", Argsn: 2, @@ -128350,6 +151180,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringList) + // Result: + // * block[string] + // * error "Go(binding.StringList)//get": { Doc: "binding.StringList.Get", Argsn: 1, @@ -128400,6 +151235,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.StringList)//get-item": { Doc: "binding.StringList.GetItem", Argsn: 2, @@ -128451,6 +151292,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringList) + // * index - integer + // Result: + // * string + // * error "Go(binding.StringList)//get-value": { Doc: "binding.StringList.GetValue", Argsn: 2, @@ -128502,6 +151349,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringList) + // Result: + // * integer "Go(binding.StringList)//length": { Doc: "binding.StringList.Length", Argsn: 1, @@ -128538,6 +151389,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringList) + // * value - string + // Result: + // * error "Go(binding.StringList)//prepend": { Doc: "binding.StringList.Prepend", Argsn: 2, @@ -128587,6 +151443,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringList) + // * value - string + // Result: + // * error + "Go(binding.StringList)//remove": { + Doc: "binding.StringList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.StringList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_StringList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.StringList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.StringList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.StringList)//remove: arg 1: " + "expected native of type binding.StringList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.StringList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.StringList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.StringList)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.StringList) + // * 1 - Go(binding.DataListener) "Go(binding.StringList)//remove-listener": { Doc: "binding.StringList.RemoveListener", Argsn: 2, @@ -128647,6 +151560,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringList) + // * list - block[string] + // Result: + // * error "Go(binding.StringList)//set": { Doc: "binding.StringList.Set", Argsn: 2, @@ -128682,8 +151600,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] if vc, ok := it.(env.String); ok { - arg1Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.StringList)//set: arg 2: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -128711,6 +151630,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringList) + // * index - integer + // * value - string + // Result: + // * error "Go(binding.StringList)//set-value": { Doc: "binding.StringList.SetValue", Argsn: 3, @@ -128767,6 +151692,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringTree) + // * 1 - Go(binding.DataListener) "Go(binding.StringTree)//add-listener": { Doc: "binding.StringTree.AddListener", Argsn: 2, @@ -128827,6 +151755,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringTree) + // * parent - string + // * id - string + // * value - string + // Result: + // * error "Go(binding.StringTree)//append": { Doc: "binding.StringTree.Append", Argsn: 4, @@ -128890,6 +151825,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringTree) + // * 1 - string + // Result: + // * block[string] "Go(binding.StringTree)//child-i-ds": { Doc: "binding.StringTree.ChildIDs", Argsn: 2, @@ -128939,6 +151879,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, string] + // ] + // * error "Go(binding.StringTree)//get": { Doc: "binding.StringTree.Get", Argsn: 1, @@ -129010,6 +151958,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.StringTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.StringTree)//get-item": { Doc: "binding.StringTree.GetItem", Argsn: 2, @@ -129061,6 +152015,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringTree) + // * id - string + // Result: + // * string + // * error "Go(binding.StringTree)//get-value": { Doc: "binding.StringTree.GetValue", Argsn: 2, @@ -129112,6 +152072,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.StringTree) + // * parent - string + // * id - string + // * value - string + // Result: + // * error "Go(binding.StringTree)//prepend": { Doc: "binding.StringTree.Prepend", Argsn: 4, @@ -129175,6 +152142,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringTree) + // * id - string + // Result: + // * error + "Go(binding.StringTree)//remove": { + Doc: "binding.StringTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.StringTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_StringTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.StringTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.StringTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.StringTree)//remove: arg 1: " + "expected native of type binding.StringTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.StringTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.StringTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.StringTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.StringTree) + // * 1 - Go(binding.DataListener) "Go(binding.StringTree)//remove-listener": { Doc: "binding.StringTree.RemoveListener", Argsn: 2, @@ -129235,6 +152259,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringTree) + // * ids - dict[string, block[string]] + // * values - dict[string, string] + // Result: + // * error "Go(binding.StringTree)//set": { Doc: "binding.StringTree.Set", Argsn: 3, @@ -129286,8 +152316,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.StringTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -129314,8 +152345,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.StringTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -129403,6 +152435,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.StringTree) + // * id - string + // * value - string + // Result: + // * error "Go(binding.StringTree)//set-value": { Doc: "binding.StringTree.SetValue", Argsn: 3, @@ -129459,6 +152497,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Struct) + // * 1 - Go(binding.DataListener) "Go(binding.Struct)//add-listener": { Doc: "binding.Struct.AddListener", Argsn: 2, @@ -129519,6 +152560,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Struct) + // * 1 - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.Struct)//get-item": { Doc: "binding.Struct.GetItem", Argsn: 2, @@ -129570,6 +152617,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Struct) + // * 1 - string + // Result: + // * Go(any) + // * error "Go(binding.Struct)//get-value": { Doc: "binding.Struct.GetValue", Argsn: 2, @@ -129609,7 +152662,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.GetValue(arg1Val) var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -129621,6 +152674,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Struct) + // Result: + // * block[string] "Go(binding.Struct)//keys": { Doc: "binding.Struct.Keys", Argsn: 1, @@ -129663,6 +152720,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Struct) + // Result: + // * error "Go(binding.Struct)//reload": { Doc: "binding.Struct.Reload", Argsn: 1, @@ -129705,6 +152766,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Struct) + // * 1 - Go(binding.DataListener) "Go(binding.Struct)//remove-listener": { Doc: "binding.Struct.RemoveListener", Argsn: 2, @@ -129765,6 +152829,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Struct) + // * 1 - string + // * 2 - Go(any) + // Result: + // * error "Go(binding.Struct)//set-value": { Doc: "binding.Struct.SetValue", Argsn: 3, @@ -129802,14 +152872,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.Struct)//set-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) } - var arg2Val interface{} + var arg2Val any switch v := arg2.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg2Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.Struct)//set-value: arg 3: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.Struct)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -129827,6 +152897,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URI) + // * 1 - Go(binding.DataListener) "Go(binding.URI)//add-listener": { Doc: "binding.URI.AddListener", Argsn: 2, @@ -129887,6 +152960,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URI) + // Result: + // * Go(fyne.URI) + // * error "Go(binding.URI)//get": { Doc: "binding.URI.Get", Argsn: 1, @@ -129931,6 +153009,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URI) + // * 1 - Go(binding.DataListener) "Go(binding.URI)//remove-listener": { Doc: "binding.URI.RemoveListener", Argsn: 2, @@ -129991,6 +153072,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URI) + // * 1 - Go(fyne.URI) + // Result: + // * error "Go(binding.URI)//set": { Doc: "binding.URI.Set", Argsn: 2, @@ -130059,6 +153145,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URIList) + // * 1 - Go(binding.DataListener) "Go(binding.URIList)//add-listener": { Doc: "binding.URIList.AddListener", Argsn: 2, @@ -130119,6 +153208,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URIList) + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.URIList)//append": { Doc: "binding.URIList.Append", Argsn: 2, @@ -130187,6 +153281,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URIList) + // Result: + // * block[Go(fyne.URI)] + // * error "Go(binding.URIList)//get": { Doc: "binding.URIList.Get", Argsn: 1, @@ -130237,6 +153336,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URIList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.URIList)//get-item": { Doc: "binding.URIList.GetItem", Argsn: 2, @@ -130288,6 +153393,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URIList) + // * index - integer + // Result: + // * Go(fyne.URI) + // * error "Go(binding.URIList)//get-value": { Doc: "binding.URIList.GetValue", Argsn: 2, @@ -130339,6 +153450,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URIList) + // Result: + // * integer "Go(binding.URIList)//length": { Doc: "binding.URIList.Length", Argsn: 1, @@ -130375,6 +153490,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URIList) + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.URIList)//prepend": { Doc: "binding.URIList.Prepend", Argsn: 2, @@ -130443,6 +153563,82 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URIList) + // * value - Go(fyne.URI) + // Result: + // * error + "Go(binding.URIList)//remove": { + Doc: "binding.URIList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.URIList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_URIList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.URIList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 1: " + "expected native of type binding.URIList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.URI + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_URI(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URI); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 2: " + "expected native of type fyne.URI, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.URIList)//remove: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.URIList) + // * 1 - Go(binding.DataListener) "Go(binding.URIList)//remove-listener": { Doc: "binding.URIList.RemoveListener", Argsn: 2, @@ -130503,6 +153699,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URIList) + // * list - block[Go(fyne.URI)] + // Result: + // * error "Go(binding.URIList)//set": { Doc: "binding.URIList.Set", Argsn: 2, @@ -130538,17 +153739,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.URI, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_URI(ps, v) + (*iv), err = ctxTo_fyne_URI(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(binding.URIList)//set: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.URI); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(binding.URIList)//set: arg 2: " + "block item: " + "expected native of type fyne.URI, but got " + objectDebugString(ps.Idx, v)) @@ -130558,7 +153760,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.URIList)//set: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(binding.URIList)//set: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -130586,6 +153788,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URIList) + // * index - integer + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.URIList)//set-value": { Doc: "binding.URIList.SetValue", Argsn: 3, @@ -130661,6 +153869,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URITree) + // * 1 - Go(binding.DataListener) "Go(binding.URITree)//add-listener": { Doc: "binding.URITree.AddListener", Argsn: 2, @@ -130721,6 +153932,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URITree) + // * parent - string + // * id - string + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.URITree)//append": { Doc: "binding.URITree.Append", Argsn: 4, @@ -130803,6 +154021,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URITree) + // * 1 - string + // Result: + // * block[string] "Go(binding.URITree)//child-i-ds": { Doc: "binding.URITree.ChildIDs", Argsn: 2, @@ -130852,6 +154075,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URITree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, Go(fyne.URI)] + // ] + // * error "Go(binding.URITree)//get": { Doc: "binding.URITree.Get", Argsn: 1, @@ -130923,6 +154154,12 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(binding.URITree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.URITree)//get-item": { Doc: "binding.URITree.GetItem", Argsn: 2, @@ -130974,6 +154211,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URITree) + // * id - string + // Result: + // * Go(fyne.URI) + // * error "Go(binding.URITree)//get-value": { Doc: "binding.URITree.GetValue", Argsn: 2, @@ -131025,6 +154268,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.URITree) + // * parent - string + // * id - string + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.URITree)//prepend": { Doc: "binding.URITree.Prepend", Argsn: 4, @@ -131107,6 +154357,63 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URITree) + // * id - string + // Result: + // * error + "Go(binding.URITree)//remove": { + Doc: "binding.URITree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.URITree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_URITree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.URITree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.URITree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.URITree)//remove: arg 1: " + "expected native of type binding.URITree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.URITree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.URITree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.URITree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.URITree) + // * 1 - Go(binding.DataListener) "Go(binding.URITree)//remove-listener": { Doc: "binding.URITree.RemoveListener", Argsn: 2, @@ -131167,6 +154474,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URITree) + // * ids - dict[string, block[string]] + // * values - dict[string, Go(fyne.URI)] + // Result: + // * error "Go(binding.URITree)//set": { Doc: "binding.URITree.Set", Argsn: 3, @@ -131218,8 +154531,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.URITree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -131246,8 +154560,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(binding.URITree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -131373,6 +154688,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.URITree) + // * id - string + // * value - Go(fyne.URI) + // Result: + // * error "Go(binding.URITree)//set-value": { Doc: "binding.URITree.SetValue", Argsn: 3, @@ -131448,6 +154769,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Untyped) + // * 1 - Go(binding.DataListener) "Go(binding.Untyped)//add-listener": { Doc: "binding.Untyped.AddListener", Argsn: 2, @@ -131508,6 +154832,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Untyped) + // Result: + // * Go(any) + // * error "Go(binding.Untyped)//get": { Doc: "binding.Untyped.Get", Argsn: 1, @@ -131540,7 +154869,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.Get() var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -131552,6 +154881,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.Untyped) + // * 1 - Go(binding.DataListener) "Go(binding.Untyped)//remove-listener": { Doc: "binding.Untyped.RemoveListener", Argsn: 2, @@ -131612,6 +154944,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.Untyped) + // * 1 - Go(any) + // Result: + // * error "Go(binding.Untyped)//set": { Doc: "binding.Untyped.Set", Argsn: 2, @@ -131642,14 +154979,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.Untyped)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val interface{} + var arg1Val any switch v := arg1.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg1Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.Untyped)//set: arg 2: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.Untyped)//set: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -131667,6 +155004,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * 1 - Go(binding.DataListener) "Go(binding.UntypedList)//add-listener": { Doc: "binding.UntypedList.AddListener", Argsn: 2, @@ -131727,6 +155067,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * value - Go(any) + // Result: + // * error "Go(binding.UntypedList)//append": { Doc: "binding.UntypedList.Append", Argsn: 2, @@ -131757,14 +155102,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedList)//append: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val interface{} + var arg1Val any switch v := arg1.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg1Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedList)//append: arg 2: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedList)//append: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -131782,6 +155127,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedList) + // Result: + // * block[Go(any)] + // * error "Go(binding.UntypedList)//get": { Doc: "binding.UntypedList.Get", Argsn: 1, @@ -131817,7 +155167,7 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(interface{})") + items[i] = *env.NewNative(ps.Idx, it, "Go(any)") } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } @@ -131832,6 +155182,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * index - integer + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.UntypedList)//get-item": { Doc: "binding.UntypedList.GetItem", Argsn: 2, @@ -131883,6 +155239,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * index - integer + // Result: + // * Go(any) + // * error "Go(binding.UntypedList)//get-value": { Doc: "binding.UntypedList.GetValue", Argsn: 2, @@ -131922,7 +155284,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.GetValue(arg1Val) var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -131934,6 +155296,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedList) + // Result: + // * integer "Go(binding.UntypedList)//length": { Doc: "binding.UntypedList.Length", Argsn: 1, @@ -131970,6 +155336,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * value - Go(any) + // Result: + // * error "Go(binding.UntypedList)//prepend": { Doc: "binding.UntypedList.Prepend", Argsn: 2, @@ -132000,14 +155371,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedList)//prepend: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val interface{} + var arg1Val any switch v := arg1.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg1Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedList)//prepend: arg 2: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedList)//prepend: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -132025,6 +155396,69 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * value - Go(any) + // Result: + // * error + "Go(binding.UntypedList)//remove": { + Doc: "binding.UntypedList.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedList + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedList(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedList)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedList); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedList)//remove: arg 1: " + "expected native of type binding.UntypedList, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedList)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedList)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val any + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedList)//remove: arg 2: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedList)//remove: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedList) + // * 1 - Go(binding.DataListener) "Go(binding.UntypedList)//remove-listener": { Doc: "binding.UntypedList.RemoveListener", Argsn: 2, @@ -132085,6 +155519,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * list - block[Go(any)] + // Result: + // * error "Go(binding.UntypedList)//set": { Doc: "binding.UntypedList.Set", Argsn: 2, @@ -132115,18 +155554,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedList)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val []interface{} + var arg1Val []any switch v := arg1.(type) { case env.Block: - arg1Val = make([]interface{}, len(v.Series.S)) + arg1Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg1Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedList)//set: arg 2: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedList)//set: arg 2: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -132155,6 +155595,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedList) + // * index - integer + // * value - Go(any) + // Result: + // * error "Go(binding.UntypedList)//set-value": { Doc: "binding.UntypedList.SetValue", Argsn: 3, @@ -132192,14 +155638,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedList)//set-value: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) } - var arg2Val interface{} + var arg2Val any switch v := arg2.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg2Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedList)//set-value: arg 3: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedList)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -132217,6 +155663,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - Go(binding.DataListener) "Go(binding.UntypedMap)//add-listener": { Doc: "binding.UntypedMap.AddListener", Argsn: 2, @@ -132277,6 +155726,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - string "Go(binding.UntypedMap)//delete": { Doc: "binding.UntypedMap.Delete", Argsn: 2, @@ -132318,6 +155770,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // Result: + // * dict[string, Go(any)] + // * error "Go(binding.UntypedMap)//get": { Doc: "binding.UntypedMap.Get", Argsn: 1, @@ -132354,7 +155811,7 @@ var builtinsGenerated = map[string]*env.Builtin{ data := make(map[string]any, len(res0)) for mKey, mVal := range res0 { var dVal env.Object - dVal = *env.NewNative(ps.Idx, mVal, "Go(interface{})") + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") data[mKey] = dVal } res0Obj = *env.NewDict(data) @@ -132370,6 +155827,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - string + // Result: + // * Go(binding.DataItem) + // * error "Go(binding.UntypedMap)//get-item": { Doc: "binding.UntypedMap.GetItem", Argsn: 2, @@ -132421,6 +155884,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - string + // Result: + // * Go(any) + // * error "Go(binding.UntypedMap)//get-value": { Doc: "binding.UntypedMap.GetValue", Argsn: 2, @@ -132460,7 +155929,7 @@ var builtinsGenerated = map[string]*env.Builtin{ } res0, resErr := arg0Val.GetValue(arg1Val) var res0Obj env.Object - res0Obj = *env.NewNative(ps.Idx, res0, "Go(interface{})") + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") var resErrObj env.Object if resErr != nil { resErrObj = env.NewError(resErr.Error()) @@ -132472,6 +155941,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // Result: + // * block[string] "Go(binding.UntypedMap)//keys": { Doc: "binding.UntypedMap.Keys", Argsn: 1, @@ -132514,6 +155987,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - Go(binding.DataListener) "Go(binding.UntypedMap)//remove-listener": { Doc: "binding.UntypedMap.RemoveListener", Argsn: 2, @@ -132574,6 +156050,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - dict[string, Go(any)] + // Result: + // * error "Go(binding.UntypedMap)//set": { Doc: "binding.UntypedMap.Set", Argsn: 2, @@ -132604,14 +156085,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedMap)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg1Val map[string]interface{} + var arg1Val map[string]any switch v := arg1.(type) { case env.Block: if len(v.Series.S)%2 != 0 { ps.FailureFlag = true return env.NewError("Go(binding.UntypedMap)//set: arg 2: " + "expected block to have length of multiple of 2, but got block with length " + strconv.Itoa(len(v.Series.S))) } - arg1Val = make(map[string]interface{}, len(v.Series.S)/2) + arg1Val = make(map[string]any, len(v.Series.S)/2) for i := 0; i < len(v.Series.S); i += 2 { var mapK string if vc, ok := v.Series.S[i+0].(env.String); ok { @@ -132620,14 +156101,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedMap)//set: arg 2: " + "map key: " + "expected string, but got " + objectDebugString(ps.Idx, v.Series.S[i+0])) } - var mapV interface{} + var mapV any switch v := v.Series.S[i+1].(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedMap)//set: arg 2: " + "map value: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedMap)//set: arg 2: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -132636,17 +156117,17 @@ var builtinsGenerated = map[string]*env.Builtin{ arg1Val[mapK] = mapV } case env.Dict: - arg1Val = make(map[string]interface{}, len(v.Data)) + arg1Val = make(map[string]any, len(v.Data)) for dictK, dictV := range v.Data { mapK := dictK - var mapV interface{} + var mapV any switch v := dictV.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { mapV = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedMap)//set: arg 2: " + "map value: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedMap)//set: arg 2: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -132676,6 +156157,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedMap) + // * 1 - string + // * 2 - Go(any) + // Result: + // * error "Go(binding.UntypedMap)//set-value": { Doc: "binding.UntypedMap.SetValue", Argsn: 3, @@ -132713,14 +156200,14 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(binding.UntypedMap)//set-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) } - var arg2Val interface{} + var arg2Val any switch v := arg2.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg2Val = vc } else { ps.FailureFlag = true - return env.NewError("Go(binding.UntypedMap)//set-value: arg 3: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(binding.UntypedMap)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -132738,6 +156225,844 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(binding.UntypedTree) + // * 1 - Go(binding.DataListener) + "Go(binding.UntypedTree)//add-listener": { + Doc: "binding.UntypedTree.AddListener", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val binding.DataListener + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_binding_DataListener(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.DataListener); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 2: " + "expected native of type binding.DataListener, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//add-listener: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.AddListener(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * parent - string + // * id - string + // * value - Go(any) + // Result: + // * error + "Go(binding.UntypedTree)//append": { + Doc: "binding.UntypedTree.Append", + Argsn: 4, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val string + if vc, ok := arg2.(env.String); ok { + arg2Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 3: " + "expected string, but got " + objectDebugString(ps.Idx, arg2)) + } + var arg3Val any + switch v := arg3.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg3Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 4: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//append: arg 4: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Append(arg1Val, arg2Val, arg3Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * 1 - string + // Result: + // * block[string] + "Go(binding.UntypedTree)//child-i-ds": { + Doc: "binding.UntypedTree.ChildIDs", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//child-i-ds: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//child-i-ds: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//child-i-ds: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//child-i-ds: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//child-i-ds: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + res0 := arg0Val.ChildIDs(arg1Val) + var res0Obj env.Object + { + items := make([]env.Object, len(res0)) + for i, it := range res0 { + items[i] = *env.NewString(it) + } + res0Obj = *env.NewBlock(*env.NewTSeries(items)) + } + return res0Obj + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // Result: + // [ + // dict[string, block[string]] + // dict[string, Go(any)] + // ] + // * error + "Go(binding.UntypedTree)//get": { + Doc: "binding.UntypedTree.Get", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0, res1, resErr := arg0Val.Get() + var res0Obj env.Object + { + data := make(map[string]any, len(res0)) + for mKey, mVal := range res0 { + var dVal env.Object + { + items := make([]env.Object, len(mVal)) + for i, it := range mVal { + items[i] = *env.NewString(it) + } + dVal = *env.NewBlock(*env.NewTSeries(items)) + } + data[mKey] = dVal + } + res0Obj = *env.NewDict(data) + } + var res1Obj env.Object + { + data := make(map[string]any, len(res1)) + for mKey, mVal := range res1 { + var dVal env.Object + dVal = *env.NewNative(ps.Idx, mVal, "Go(any)") + data[mKey] = dVal + } + res1Obj = *env.NewDict(data) + } + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return *env.NewBlock(*env.NewTSeries([]env.Object{ + res0Obj, + res1Obj, + })) + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * id - string + // Result: + // * Go(binding.DataItem) + // * error + "Go(binding.UntypedTree)//get-item": { + Doc: "binding.UntypedTree.GetItem", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-item: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-item: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-item: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-item: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-item: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + res0, resErr := arg0Val.GetItem(arg1Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(binding.DataItem)") + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return res0Obj + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * id - string + // Result: + // * Go(any) + // * error + "Go(binding.UntypedTree)//get-value": { + Doc: "binding.UntypedTree.GetValue", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-value: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-value: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-value: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-value: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//get-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + res0, resErr := arg0Val.GetValue(arg1Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(any)") + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return res0Obj + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * parent - string + // * id - string + // * value - Go(any) + // Result: + // * error + "Go(binding.UntypedTree)//prepend": { + Doc: "binding.UntypedTree.Prepend", + Argsn: 4, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val string + if vc, ok := arg2.(env.String); ok { + arg2Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 3: " + "expected string, but got " + objectDebugString(ps.Idx, arg2)) + } + var arg3Val any + switch v := arg3.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg3Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 4: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//prepend: arg 4: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Prepend(arg1Val, arg2Val, arg3Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * id - string + // Result: + // * error + "Go(binding.UntypedTree)//remove": { + Doc: "binding.UntypedTree.Remove", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := arg0Val.Remove(arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * 1 - Go(binding.DataListener) + "Go(binding.UntypedTree)//remove-listener": { + Doc: "binding.UntypedTree.RemoveListener", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val binding.DataListener + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_binding_DataListener(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.DataListener); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 2: " + "expected native of type binding.DataListener, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//remove-listener: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg0Val.RemoveListener(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * ids - dict[string, block[string]] + // * values - dict[string, Go(any)] + // Result: + // * error + "Go(binding.UntypedTree)//set": { + Doc: "binding.UntypedTree.Set", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val map[string][]string + switch v := arg1.(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "expected block to have length of multiple of 2, but got block with length " + strconv.Itoa(len(v.Series.S))) + } + arg1Val = make(map[string][]string, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map key: " + "expected string, but got " + objectDebugString(ps.Idx, v.Series.S[i+0])) + } + var mapV []string + switch v := v.Series.S[i+1].(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map value: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + mapV = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map value: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + arg1Val[mapK] = mapV + } + case env.Dict: + arg1Val = make(map[string][]string, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV []string + switch v := dictV.(type) { + case env.Block: + mapV = make([]string, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &mapV[i] + if vc, ok := it.(env.String); ok { + (*iv) = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map value: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + mapV = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "map value: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + arg1Val[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 2: " + "expected block, dict or nil, but got " + objectDebugString(ps.Idx, v)) + } + var arg2Val map[string]any + switch v := arg2.(type) { + case env.Block: + if len(v.Series.S)%2 != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "expected block to have length of multiple of 2, but got block with length " + strconv.Itoa(len(v.Series.S))) + } + arg2Val = make(map[string]any, len(v.Series.S)/2) + for i := 0; i < len(v.Series.S); i += 2 { + var mapK string + if vc, ok := v.Series.S[i+0].(env.String); ok { + mapK = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "map key: " + "expected string, but got " + objectDebugString(ps.Idx, v.Series.S[i+0])) + } + var mapV any + switch v := v.Series.S[i+1].(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "map value: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg2Val[mapK] = mapV + } + case env.Dict: + arg2Val = make(map[string]any, len(v.Data)) + for dictK, dictV := range v.Data { + mapK := dictK + var mapV any + switch v := dictV.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + mapV = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "map value: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "map value: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + arg2Val[mapK] = mapV + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg2Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set: arg 3: " + "expected block, dict or nil, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.Set(arg1Val, arg2Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(binding.UntypedTree) + // * id - string + // * value - Go(any) + // Result: + // * error + "Go(binding.UntypedTree)//set-value": { + Doc: "binding.UntypedTree.SetValue", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.UntypedTree + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_UntypedTree(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.UntypedTree); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 1: " + "expected native of type binding.UntypedTree, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val any + switch v := arg2.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + arg2Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 3: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("Go(binding.UntypedTree)//set-value: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := arg0Val.SetValue(arg1Val, arg2Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return arg0 + }, + }, + // Args: + // * recv - Go(desktop.App) + // * icon - Go(fyne.Resource) "Go(desktop.App)//set-system-tray-icon": { Doc: "desktop.App.SetSystemTrayIcon", Argsn: 2, @@ -132798,6 +157123,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.App) + // * menu - Go(*fyne.Menu) "Go(desktop.App)//set-system-tray-menu": { Doc: "desktop.App.SetSystemTrayMenu", Argsn: 2, @@ -132851,6 +157179,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Canvas) + // Result: + // * fn { Go(*fyne.KeyEvent) } "Go(desktop.Canvas)//on-key-down": { Doc: "desktop.Canvas.OnKeyDown", Argsn: 1, @@ -132909,6 +157241,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(desktop.Canvas) + // Result: + // * fn { Go(*fyne.KeyEvent) } "Go(desktop.Canvas)//on-key-up": { Doc: "desktop.Canvas.OnKeyUp", Argsn: 1, @@ -132967,6 +157303,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(desktop.Canvas) + // * 1 - fn { Go(*fyne.KeyEvent) } "Go(desktop.Canvas)//set-on-key-down": { Doc: "desktop.Canvas.SetOnKeyDown", Argsn: 2, @@ -133025,6 +157364,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Canvas) + // * 1 - fn { Go(*fyne.KeyEvent) } "Go(desktop.Canvas)//set-on-key-up": { Doc: "desktop.Canvas.SetOnKeyUp", Argsn: 2, @@ -133083,6 +157425,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Cursor) + // Result: + // [ + // Go(image.image) + // integer + // integer + // ] "Go(desktop.Cursor)//image": { Doc: "desktop.Cursor.Image", Argsn: 1, @@ -133127,6 +157477,10 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(desktop.cursorable) + // Result: + // * Go(desktop.cursor) "Go(desktop.Cursorable)//cursor": { Doc: "desktop.Cursorable.Cursor", Argsn: 1, @@ -133163,6 +157517,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(desktop.Driver) + // Result: + // * Go(fyne.Window) "Go(desktop.Driver)//create-splash-window": { Doc: "desktop.Driver.CreateSplashWindow", Argsn: 1, @@ -133199,6 +157557,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(desktop.Driver) + // Result: + // * integer "Go(desktop.Driver)//current-key-modifiers": { Doc: "desktop.Driver.CurrentKeyModifiers", Argsn: 1, @@ -133235,6 +157597,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(desktop.Hoverable) + // * 1 - Go(*desktop.MouseEvent) "Go(desktop.Hoverable)//mouse-in": { Doc: "desktop.Hoverable.MouseIn", Argsn: 2, @@ -133288,6 +157653,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Hoverable) + // * 1 - Go(*desktop.MouseEvent) "Go(desktop.Hoverable)//mouse-moved": { Doc: "desktop.Hoverable.MouseMoved", Argsn: 2, @@ -133341,6 +157709,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Hoverable) "Go(desktop.Hoverable)//mouse-out": { Doc: "desktop.Hoverable.MouseOut", Argsn: 1, @@ -133375,6 +157745,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Keyable) "Go(desktop.Keyable)//focus-gained": { Doc: "desktop.Keyable.FocusGained", Argsn: 1, @@ -133409,6 +157781,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Keyable) "Go(desktop.Keyable)//focus-lost": { Doc: "desktop.Keyable.FocusLost", Argsn: 1, @@ -133443,6 +157817,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Keyable) + // * 1 - Go(*fyne.KeyEvent) "Go(desktop.Keyable)//key-down": { Doc: "desktop.Keyable.KeyDown", Argsn: 2, @@ -133496,6 +157873,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Keyable) + // * 1 - Go(*fyne.KeyEvent) "Go(desktop.Keyable)//key-up": { Doc: "desktop.Keyable.KeyUp", Argsn: 2, @@ -133549,6 +157929,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Keyable) + // * 1 - Go(*fyne.KeyEvent) "Go(desktop.Keyable)//typed-key": { Doc: "desktop.Keyable.TypedKey", Argsn: 2, @@ -133602,6 +157985,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Keyable) + // * 1 - Go(rune) "Go(desktop.Keyable)//typed-rune": { Doc: "desktop.Keyable.TypedRune", Argsn: 2, @@ -133649,6 +158035,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Mouseable) + // * 1 - Go(*desktop.MouseEvent) "Go(desktop.Mouseable)//mouse-down": { Doc: "desktop.Mouseable.MouseDown", Argsn: 2, @@ -133702,6 +158091,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(desktop.Mouseable) + // * 1 - Go(*desktop.MouseEvent) "Go(desktop.Mouseable)//mouse-up": { Doc: "desktop.Mouseable.MouseUp", Argsn: 2, @@ -133755,6 +158147,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // image is not used for any of the StandardCursor types. + // + // Since: 2.0 + // + // Args: + // * recv - Go(desktop.StandardCursor) + // Result: + // [ + // Go(image.image) + // integer + // integer + // ] "Go(desktop.StandardCursor)//image": { Doc: "desktop.StandardCursor.Image", Argsn: 1, @@ -133794,6 +158198,8 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(dialog.Dialog) "Go(dialog.Dialog)//hide": { Doc: "dialog.Dialog.Hide", Argsn: 1, @@ -133828,6 +158234,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(dialog.Dialog) + // Result: + // * Go(fyne.Size) "Go(dialog.Dialog)//min-size": { Doc: "dialog.Dialog.MinSize", Argsn: 1, @@ -133864,6 +158274,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(dialog.Dialog) "Go(dialog.Dialog)//refresh": { Doc: "dialog.Dialog.Refresh", Argsn: 1, @@ -133898,6 +158310,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(dialog.Dialog) + // * size - Go(fyne.Size) "Go(dialog.Dialog)//resize": { Doc: "dialog.Dialog.Resize", Argsn: 2, @@ -133945,6 +158360,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(dialog.Dialog) + // * label - string "Go(dialog.Dialog)//set-dismiss-text": { Doc: "dialog.Dialog.SetDismissText", Argsn: 2, @@ -133986,6 +158404,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(dialog.Dialog) + // * closed - fn { } "Go(dialog.Dialog)//set-on-closed": { Doc: "dialog.Dialog.SetOnClosed", Argsn: 2, @@ -134042,6 +158463,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(dialog.Dialog) "Go(dialog.Dialog)//show": { Doc: "dialog.Dialog.Show", Argsn: 1, @@ -134076,6 +158499,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.cloud-provider) "Go(fyne.App)//cloud-provider": { Doc: "fyne.App.CloudProvider", Argsn: 1, @@ -134112,6 +158539,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.driver) "Go(fyne.App)//driver": { Doc: "fyne.App.Driver", Argsn: 1, @@ -134148,6 +158579,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.Resource) "Go(fyne.App)//icon": { Doc: "fyne.App.Icon", Argsn: 1, @@ -134184,6 +158619,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.lifecycle) "Go(fyne.App)//lifecycle": { Doc: "fyne.App.Lifecycle", Argsn: 1, @@ -134220,6 +158659,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.Appmetadata) "Go(fyne.App)//metadata": { Doc: "fyne.App.Metadata", Argsn: 1, @@ -134256,6 +158699,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // * title - string + // Result: + // * Go(fyne.Window) "Go(fyne.App)//window": { Doc: "fyne.App.NewWindow", Argsn: 2, @@ -134299,6 +158747,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // * url - *Go(url.URL) + // Result: + // * error "Go(fyne.App)//open-url": { Doc: "fyne.App.OpenURL", Argsn: 2, @@ -134360,6 +158813,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.preferences) "Go(fyne.App)//preferences": { Doc: "fyne.App.Preferences", Argsn: 1, @@ -134396,6 +158853,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) "Go(fyne.App)//quit": { Doc: "fyne.App.Quit", Argsn: 1, @@ -134430,6 +158889,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) "Go(fyne.App)//run": { Doc: "fyne.App.Run", Argsn: 1, @@ -134464,6 +158925,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) + // * 1 - Go(*fyne.Notification) "Go(fyne.App)//send-notification": { Doc: "fyne.App.SendNotification", Argsn: 2, @@ -134517,6 +158981,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) + // * 1 - Go(fyne.CloudProvider) "Go(fyne.App)//set-cloud-provider": { Doc: "fyne.App.SetCloudProvider", Argsn: 2, @@ -134577,6 +159044,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) + // * 1 - Go(fyne.Resource) "Go(fyne.App)//set-icon": { Doc: "fyne.App.SetIcon", Argsn: 2, @@ -134637,6 +159107,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.settings) "Go(fyne.App)//settings": { Doc: "fyne.App.Settings", Argsn: 1, @@ -134673,6 +159147,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * Go(fyne.storage) "Go(fyne.App)//storage": { Doc: "fyne.App.Storage", Argsn: 1, @@ -134709,6 +159187,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.App) + // Result: + // * string "Go(fyne.App)//unique-id": { Doc: "fyne.App.UniqueID", Argsn: 1, @@ -134745,6 +159227,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * shortcut - Go(fyne.Shortcut) + // * handler - fn { Go(fyne.Shortcut) } "Go(fyne.Canvas)//add-shortcut": { Doc: "fyne.Canvas.AddShortcut", Argsn: 3, @@ -134829,6 +159315,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * Go(image.Image) "Go(fyne.Canvas)//capture": { Doc: "fyne.Canvas.Capture", Argsn: 1, @@ -134865,6 +159355,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * Go(fyne.CanvasObject) "Go(fyne.Canvas)//content": { Doc: "fyne.Canvas.Content", Argsn: 1, @@ -134901,6 +159395,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * 1 - Go(fyne.focusable) "Go(fyne.Canvas)//focus": { Doc: "fyne.Canvas.Focus", Argsn: 2, @@ -134961,6 +159458,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) "Go(fyne.Canvas)//focus-next": { Doc: "fyne.Canvas.FocusNext", Argsn: 1, @@ -134995,6 +159494,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) "Go(fyne.Canvas)//focus-previous": { Doc: "fyne.Canvas.FocusPrevious", Argsn: 1, @@ -135029,6 +159530,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * Go(fyne.Focusable) "Go(fyne.Canvas)//focused": { Doc: "fyne.Canvas.Focused", Argsn: 1, @@ -135065,6 +159570,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // [ + // Go(fyne.Position) + // Go(fyne.Size) + // ] "Go(fyne.Canvas)//interactive-area": { Doc: "fyne.Canvas.InteractiveArea", Argsn: 1, @@ -135106,6 +159618,10 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * fn { Go(*fyne.KeyEvent) } "Go(fyne.Canvas)//on-typed-key": { Doc: "fyne.Canvas.OnTypedKey", Argsn: 1, @@ -135164,6 +159680,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * fn { Go(rune) } "Go(fyne.Canvas)//on-typed-rune": { Doc: "fyne.Canvas.OnTypedRune", Argsn: 1, @@ -135216,6 +159736,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * Go(fyne.OverlayStack) "Go(fyne.Canvas)//overlays": { Doc: "fyne.Canvas.Overlays", Argsn: 1, @@ -135252,6 +159776,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * 1 - Go(fyne.Position) + // Result: + // [ + // integer + // integer + // ] "Go(fyne.Canvas)//pixel-coordinate-for-position": { Doc: "fyne.Canvas.PixelCoordinateForPosition", Argsn: 2, @@ -135306,6 +159838,9 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * 1 - Go(fyne.CanvasObject) "Go(fyne.Canvas)//refresh": { Doc: "fyne.Canvas.Refresh", Argsn: 2, @@ -135366,6 +159901,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * shortcut - Go(fyne.Shortcut) "Go(fyne.Canvas)//remove-shortcut": { Doc: "fyne.Canvas.RemoveShortcut", Argsn: 2, @@ -135426,6 +159964,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * decimal "Go(fyne.Canvas)//scale": { Doc: "fyne.Canvas.Scale", Argsn: 1, @@ -135462,6 +160004,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * 1 - Go(fyne.CanvasObject) "Go(fyne.Canvas)//set-content": { Doc: "fyne.Canvas.SetContent", Argsn: 2, @@ -135522,6 +160067,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * 1 - fn { Go(*fyne.KeyEvent) } "Go(fyne.Canvas)//set-on-typed-key": { Doc: "fyne.Canvas.SetOnTypedKey", Argsn: 2, @@ -135580,6 +160128,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // * 1 - fn { Go(rune) } "Go(fyne.Canvas)//set-on-typed-rune": { Doc: "fyne.Canvas.SetOnTypedRune", Argsn: 2, @@ -135638,6 +160189,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Canvas) + // Result: + // * Go(fyne.size) "Go(fyne.Canvas)//size": { Doc: "fyne.Canvas.Size", Argsn: 1, @@ -135674,6 +160229,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Canvas) "Go(fyne.Canvas)//unfocus": { Doc: "fyne.Canvas.Unfocus", Argsn: 1, @@ -135708,6 +160265,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CanvasObject) "Go(fyne.CanvasObject)//hide": { Doc: "fyne.CanvasObject.Hide", Argsn: 1, @@ -135742,6 +160301,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Size) "Go(fyne.CanvasObject)//min-size": { Doc: "fyne.CanvasObject.MinSize", Argsn: 1, @@ -135778,6 +160341,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CanvasObject) + // * 1 - Go(fyne.Position) "Go(fyne.CanvasObject)//move": { Doc: "fyne.CanvasObject.Move", Argsn: 2, @@ -135825,6 +160391,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.position) "Go(fyne.CanvasObject)//position": { Doc: "fyne.CanvasObject.Position", Argsn: 1, @@ -135861,6 +160431,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CanvasObject) "Go(fyne.CanvasObject)//refresh": { Doc: "fyne.CanvasObject.Refresh", Argsn: 1, @@ -135895,6 +160467,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CanvasObject) + // * 1 - Go(fyne.Size) "Go(fyne.CanvasObject)//resize": { Doc: "fyne.CanvasObject.Resize", Argsn: 2, @@ -135942,6 +160517,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CanvasObject) "Go(fyne.CanvasObject)//show": { Doc: "fyne.CanvasObject.Show", Argsn: 1, @@ -135976,6 +160553,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.size) "Go(fyne.CanvasObject)//size": { Doc: "fyne.CanvasObject.Size", Argsn: 1, @@ -136012,6 +160593,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CanvasObject) + // Result: + // * bool "Go(fyne.CanvasObject)//visible": { Doc: "fyne.CanvasObject.Visible", Argsn: 1, @@ -136048,6 +160633,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Clipboard) + // Result: + // * string "Go(fyne.Clipboard)//content": { Doc: "fyne.Clipboard.Content", Argsn: 1, @@ -136084,6 +160673,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Clipboard) + // * content - string "Go(fyne.Clipboard)//set-content": { Doc: "fyne.Clipboard.SetContent", Argsn: 2, @@ -136125,6 +160717,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CloudProvider) + // * 1 - Go(fyne.App) "Go(fyne.CloudProvider)//cleanup": { Doc: "fyne.CloudProvider.Cleanup", Argsn: 2, @@ -136185,6 +160780,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CloudProvider) + // Result: + // * string "Go(fyne.CloudProvider)//provider-description": { Doc: "fyne.CloudProvider.ProviderDescription", Argsn: 1, @@ -136221,6 +160820,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CloudProvider) + // Result: + // * Go(fyne.Resource) "Go(fyne.CloudProvider)//provider-icon": { Doc: "fyne.CloudProvider.ProviderIcon", Argsn: 1, @@ -136257,6 +160860,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CloudProvider) + // Result: + // * string "Go(fyne.CloudProvider)//provider-name": { Doc: "fyne.CloudProvider.ProviderName", Argsn: 1, @@ -136293,6 +160900,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CloudProvider) + // * 1 - Go(fyne.App) + // Result: + // * error "Go(fyne.CloudProvider)//setup": { Doc: "fyne.CloudProvider.Setup", Argsn: 2, @@ -136361,6 +160973,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.CloudProviderPreferences) + // * 1 - Go(fyne.App) + // Result: + // * Go(fyne.Preferences) "Go(fyne.CloudProviderPreferences)//cloud-preferences": { Doc: "fyne.CloudProviderPreferences.CloudPreferences", Argsn: 2, @@ -136423,6 +161040,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.CloudProviderStorage) + // * 1 - Go(fyne.App) + // Result: + // * Go(fyne.Storage) "Go(fyne.CloudProviderStorage)//cloud-storage": { Doc: "fyne.CloudProviderStorage.CloudStorage", Argsn: 2, @@ -136485,6 +161107,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Device) + // Result: + // * bool "Go(fyne.Device)//has-keyboard": { Doc: "fyne.Device.HasKeyboard", Argsn: 1, @@ -136521,6 +161147,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Device) + // Result: + // * bool "Go(fyne.Device)//is-browser": { Doc: "fyne.Device.IsBrowser", Argsn: 1, @@ -136557,6 +161187,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Device) + // Result: + // * bool "Go(fyne.Device)//is-mobile": { Doc: "fyne.Device.IsMobile", Argsn: 1, @@ -136593,6 +161227,50 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Device) + // Result: + // * Go(fyne.locale) + "Go(fyne.Device)//locale": { + Doc: "fyne.Device.Locale", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.Device + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_Device(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.Device)//locale: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Device); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Device)//locale: arg 1: " + "expected native of type fyne.Device, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.Device)//locale: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.Device)//locale: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Locale() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(fyne.Locale)") + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.Device) + // Result: + // * integer "Go(fyne.Device)//orientation": { Doc: "fyne.Device.Orientation", Argsn: 1, @@ -136629,6 +161307,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Device) + // * 1 - Go(fyne.Window) + // Result: + // * decimal "Go(fyne.Device)//system-scale-for-window": { Doc: "fyne.Device.SystemScaleForWindow", Argsn: 2, @@ -136691,6 +161374,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.disableable) "Go(fyne.Disableable)//disable": { Doc: "fyne.Disableable.Disable", Argsn: 1, @@ -136725,6 +161410,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Disableable) + // Result: + // * bool "Go(fyne.Disableable)//disabled": { Doc: "fyne.Disableable.Disabled", Argsn: 1, @@ -136761,6 +161450,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Disableable) "Go(fyne.Disableable)//enable": { Doc: "fyne.Disableable.Enable", Argsn: 1, @@ -136795,6 +161486,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.DoubleTappable) + // * 1 - Go(*fyne.PointEvent) "Go(fyne.DoubleTappable)//double-tapped": { Doc: "fyne.DoubleTappable.DoubleTapped", Argsn: 2, @@ -136848,6 +161542,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Draggable) "Go(fyne.Draggable)//drag-end": { Doc: "fyne.Draggable.DragEnd", Argsn: 1, @@ -136882,6 +161578,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Draggable) + // * 1 - Go(*fyne.DragEvent) "Go(fyne.Draggable)//dragged": { Doc: "fyne.Draggable.Dragged", Argsn: 2, @@ -136935,6 +161634,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Driver) + // * 1 - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Position) "Go(fyne.Driver)//absolute-position-for-object": { Doc: "fyne.Driver.AbsolutePositionForObject", Argsn: 2, @@ -136997,6 +161701,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Driver) + // Result: + // * block[Go(fyne.Window)] "Go(fyne.Driver)//all-windows": { Doc: "fyne.Driver.AllWindows", Argsn: 1, @@ -137039,6 +161747,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Driver) + // * 1 - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Canvas) "Go(fyne.Driver)//canvas-for-object": { Doc: "fyne.Driver.CanvasForObject", Argsn: 2, @@ -137101,6 +161814,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Driver) + // * 1 - string + // Result: + // * Go(fyne.Window) "Go(fyne.Driver)//create-window": { Doc: "fyne.Driver.CreateWindow", Argsn: 2, @@ -137144,6 +161862,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Driver) + // Result: + // * Go(fyne.device) "Go(fyne.Driver)//device": { Doc: "fyne.Driver.Device", Argsn: 1, @@ -137180,6 +161902,48 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Driver) + // Result: + // * Go(time.Duration) + "Go(fyne.Driver)//double-tap-delay": { + Doc: "fyne.Driver.DoubleTapDelay", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.Driver + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_Driver(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//double-tap-delay: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Driver); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//double-tap-delay: arg 1: " + "expected native of type fyne.Driver, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//double-tap-delay: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//double-tap-delay: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.DoubleTapDelay() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(time.Duration)") + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.Driver) "Go(fyne.Driver)//quit": { Doc: "fyne.Driver.Quit", Argsn: 1, @@ -137214,9 +161978,20 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Driver) + // * text - string + // * font-size - decimal + // * style - Go(fyne.TextStyle) + // * source - Go(fyne.Resource) + // Result: + // [ + // Go(fyne.Size) + // decimal + // ] "Go(fyne.Driver)//rendered-text-size": { Doc: "fyne.Driver.RenderedTextSize", - Argsn: 4, + Argsn: 5, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var arg0Val fyne.Driver switch v := arg0.(type) { @@ -137271,7 +162046,33 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(fyne.Driver)//rendered-text-size: arg 4: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - res0, res1 := arg0Val.RenderedTextSize(arg1Val, arg2Val, arg3Val) + var arg4Val fyne.Resource + switch v := arg4.(type) { + case env.RyeCtx: + var err error + arg4Val, err = ctxTo_fyne_Resource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//rendered-text-size: arg 5: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Resource); ok { + arg4Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//rendered-text-size: arg 5: " + "expected native of type fyne.Resource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//rendered-text-size: arg 5: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg4Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//rendered-text-size: arg 5: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0, res1 := arg0Val.RenderedTextSize(arg1Val, arg2Val, arg3Val, arg4Val) var res0Obj env.Object res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.Size)") var res1Obj env.Object @@ -137282,6 +162083,8 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(fyne.Driver) "Go(fyne.Driver)//run": { Doc: "fyne.Driver.Run", Argsn: 1, @@ -137316,6 +162119,53 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Driver) + // * 1 - bool + "Go(fyne.Driver)//set-disable-screen-blanking": { + Doc: "fyne.Driver.SetDisableScreenBlanking", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.Driver + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_Driver(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//set-disable-screen-blanking: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Driver); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//set-disable-screen-blanking: arg 1: " + "expected native of type fyne.Driver, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//set-disable-screen-blanking: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//set-disable-screen-blanking: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val bool + if vc, ok := arg1.(env.Integer); ok { + arg1Val = vc.Value != 0 + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Driver)//set-disable-screen-blanking: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + arg0Val.SetDisableScreenBlanking(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(fyne.Driver) + // * 1 - Go(*fyne.Animation) "Go(fyne.Driver)//start-animation": { Doc: "fyne.Driver.StartAnimation", Argsn: 2, @@ -137369,6 +162219,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Driver) + // * 1 - Go(*fyne.Animation) "Go(fyne.Driver)//stop-animation": { Doc: "fyne.Driver.StopAnimation", Argsn: 2, @@ -137422,6 +162275,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Focusable) "Go(fyne.Focusable)//focus-gained": { Doc: "fyne.Focusable.FocusGained", Argsn: 1, @@ -137456,6 +162311,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Focusable) "Go(fyne.Focusable)//focus-lost": { Doc: "fyne.Focusable.FocusLost", Argsn: 1, @@ -137490,6 +162347,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Focusable) + // * 1 - Go(*fyne.KeyEvent) "Go(fyne.Focusable)//typed-key": { Doc: "fyne.Focusable.TypedKey", Argsn: 2, @@ -137543,6 +162403,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Focusable) + // * 1 - Go(rune) "Go(fyne.Focusable)//typed-rune": { Doc: "fyne.Focusable.TypedRune", Argsn: 2, @@ -137590,6 +162453,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.keyboardShortcut) + // Result: + // * string "Go(fyne.KeyboardShortcut)//key": { Doc: "fyne.KeyboardShortcut.Key", Argsn: 1, @@ -137626,6 +162493,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.KeyboardShortcut) + // Result: + // * integer "Go(fyne.KeyboardShortcut)//mod": { Doc: "fyne.KeyboardShortcut.Mod", Argsn: 1, @@ -137662,6 +162533,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.KeyboardShortcut) + // Result: + // * string "Go(fyne.KeyboardShortcut)//shortcut-name": { Doc: "fyne.KeyboardShortcut.ShortcutName", Argsn: 1, @@ -137698,6 +162573,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.layout) + // * 1 - block[Go(fyne.CanvasObject)] + // * 2 - Go(fyne.Size) "Go(fyne.Layout)//layout": { Doc: "fyne.Layout.Layout", Argsn: 3, @@ -137733,17 +162612,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//layout: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//layout: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -137753,7 +162633,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//layout: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//layout: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -137786,6 +162666,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Layout) + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(fyne.Size) "Go(fyne.Layout)//min-size": { Doc: "fyne.Layout.MinSize", Argsn: 2, @@ -137821,17 +162706,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//min-size: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//min-size: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -137841,7 +162727,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//min-size: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("Go(fyne.Layout)//min-size: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -137863,6 +162749,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//background-color": { Doc: "fyne.LegacyTheme.BackgroundColor", Argsn: 1, @@ -137899,6 +162789,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//button-color": { Doc: "fyne.LegacyTheme.ButtonColor", Argsn: 1, @@ -137935,6 +162829,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//disabled-button-color": { Doc: "fyne.LegacyTheme.DisabledButtonColor", Argsn: 1, @@ -137971,6 +162869,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//disabled-text-color": { Doc: "fyne.LegacyTheme.DisabledTextColor", Argsn: 1, @@ -138007,6 +162909,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//focus-color": { Doc: "fyne.LegacyTheme.FocusColor", Argsn: 1, @@ -138043,6 +162949,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//hover-color": { Doc: "fyne.LegacyTheme.HoverColor", Argsn: 1, @@ -138079,6 +162989,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * integer "Go(fyne.LegacyTheme)//icon-inline-size": { Doc: "fyne.LegacyTheme.IconInlineSize", Argsn: 1, @@ -138115,6 +163029,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * integer "Go(fyne.LegacyTheme)//padding": { Doc: "fyne.LegacyTheme.Padding", Argsn: 1, @@ -138151,6 +163069,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//place-holder-color": { Doc: "fyne.LegacyTheme.PlaceHolderColor", Argsn: 1, @@ -138187,6 +163109,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//primary-color": { Doc: "fyne.LegacyTheme.PrimaryColor", Argsn: 1, @@ -138223,6 +163149,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//scroll-bar-color": { Doc: "fyne.LegacyTheme.ScrollBarColor", Argsn: 1, @@ -138259,6 +163189,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * integer "Go(fyne.LegacyTheme)//scroll-bar-size": { Doc: "fyne.LegacyTheme.ScrollBarSize", Argsn: 1, @@ -138295,6 +163229,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * integer "Go(fyne.LegacyTheme)//scroll-bar-small-size": { Doc: "fyne.LegacyTheme.ScrollBarSmallSize", Argsn: 1, @@ -138331,6 +163269,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//shadow-color": { Doc: "fyne.LegacyTheme.ShadowColor", Argsn: 1, @@ -138367,6 +163309,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(fyne.Resource) "Go(fyne.LegacyTheme)//text-bold-font": { Doc: "fyne.LegacyTheme.TextBoldFont", Argsn: 1, @@ -138403,6 +163349,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(fyne.Resource) "Go(fyne.LegacyTheme)//text-bold-italic-font": { Doc: "fyne.LegacyTheme.TextBoldItalicFont", Argsn: 1, @@ -138439,6 +163389,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(color.Color) "Go(fyne.LegacyTheme)//text-color": { Doc: "fyne.LegacyTheme.TextColor", Argsn: 1, @@ -138475,6 +163429,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(fyne.Resource) "Go(fyne.LegacyTheme)//text-font": { Doc: "fyne.LegacyTheme.TextFont", Argsn: 1, @@ -138511,6 +163469,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(fyne.Resource) "Go(fyne.LegacyTheme)//text-italic-font": { Doc: "fyne.LegacyTheme.TextItalicFont", Argsn: 1, @@ -138547,6 +163509,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * Go(fyne.Resource) "Go(fyne.LegacyTheme)//text-monospace-font": { Doc: "fyne.LegacyTheme.TextMonospaceFont", Argsn: 1, @@ -138583,6 +163549,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.LegacyTheme) + // Result: + // * integer "Go(fyne.LegacyTheme)//text-size": { Doc: "fyne.LegacyTheme.TextSize", Argsn: 1, @@ -138619,6 +163589,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Lifecycle) + // * 1 - fn { } "Go(fyne.Lifecycle)//set-on-entered-foreground": { Doc: "fyne.Lifecycle.SetOnEnteredForeground", Argsn: 2, @@ -138675,6 +163648,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Lifecycle) + // * 1 - fn { } "Go(fyne.Lifecycle)//set-on-exited-foreground": { Doc: "fyne.Lifecycle.SetOnExitedForeground", Argsn: 2, @@ -138731,6 +163707,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Lifecycle) + // * 1 - fn { } "Go(fyne.Lifecycle)//set-on-started": { Doc: "fyne.Lifecycle.SetOnStarted", Argsn: 2, @@ -138787,6 +163766,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Lifecycle) + // * 1 - fn { } "Go(fyne.Lifecycle)//set-on-stopped": { Doc: "fyne.Lifecycle.SetOnStopped", Argsn: 2, @@ -138843,6 +163825,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//authority": { Doc: "fyne.ListableURI.Authority", Argsn: 1, @@ -138879,6 +163865,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//extension": { Doc: "fyne.ListableURI.Extension", Argsn: 1, @@ -138915,6 +163905,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//fragment": { Doc: "fyne.ListableURI.Fragment", Argsn: 1, @@ -138951,6 +163945,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.listableURI) + // Result: + // * block[Go(fyne.URI)] + // * error "Go(fyne.ListableURI)//list": { Doc: "fyne.ListableURI.List", Argsn: 1, @@ -139001,6 +164000,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//mime-type": { Doc: "fyne.ListableURI.MimeType", Argsn: 1, @@ -139037,6 +164040,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//name": { Doc: "fyne.ListableURI.Name", Argsn: 1, @@ -139073,6 +164080,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//path": { Doc: "fyne.ListableURI.Path", Argsn: 1, @@ -139109,6 +164120,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//query": { Doc: "fyne.ListableURI.Query", Argsn: 1, @@ -139145,6 +164160,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//scheme": { Doc: "fyne.ListableURI.Scheme", Argsn: 1, @@ -139181,6 +164200,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ListableURI) + // Result: + // * string "Go(fyne.ListableURI)//string": { Doc: "fyne.ListableURI.String", Argsn: 1, @@ -139217,6 +164240,84 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // language-string returns a version of the local without the script portion. + // For example "en" or "fr-FR". + // + // Args: + // * recv - Go(fyne.Locale) + // Result: + // * string + "Go(fyne.Locale)//language-string": { + Doc: "fyne.Locale.LanguageString", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.Locale + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.Locale + if natOk { + natVal, natValOk = nat.Value.(fyne.Locale) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Locale)//language-string: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.Locale(u) + } + } + res0 := arg0Val.LanguageString() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // string returns the complete locale as a standard string. + // + // Args: + // * recv - Go(fyne.Locale) + // Result: + // * string + "Go(fyne.Locale)//string": { + Doc: "fyne.Locale.String", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.Locale + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.Locale + if natOk { + natVal, natValOk = nat.Value.(fyne.Locale) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.Locale)//string: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.Locale(u) + } + } + res0 := arg0Val.String() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.OverlayStack) + // * overlay - Go(fyne.CanvasObject) "Go(fyne.OverlayStack)//add": { Doc: "fyne.OverlayStack.Add", Argsn: 2, @@ -139277,6 +164378,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.OverlayStack) + // Result: + // * block[Go(fyne.CanvasObject)] "Go(fyne.OverlayStack)//list": { Doc: "fyne.OverlayStack.List", Argsn: 1, @@ -139319,6 +164424,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.OverlayStack) + // * overlay - Go(fyne.CanvasObject) "Go(fyne.OverlayStack)//remove": { Doc: "fyne.OverlayStack.Remove", Argsn: 2, @@ -139379,6 +164487,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.OverlayStack) + // Result: + // * Go(fyne.CanvasObject) "Go(fyne.OverlayStack)//top": { Doc: "fyne.OverlayStack.Top", Argsn: 1, @@ -139415,6 +164527,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * 1 - fn { } "Go(fyne.Preferences)//add-change-listener": { Doc: "fyne.Preferences.AddChangeListener", Argsn: 2, @@ -139471,6 +164586,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * bool "Go(fyne.Preferences)//bool": { Doc: "fyne.Preferences.Bool", Argsn: 2, @@ -139514,6 +164634,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * block[bool] "Go(fyne.Preferences)//bool-list": { Doc: "fyne.Preferences.BoolList", Argsn: 2, @@ -139563,6 +164688,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - block[bool] + // Result: + // * block[bool] "Go(fyne.Preferences)//bool-list-with-fallback": { Doc: "fyne.Preferences.BoolListWithFallback", Argsn: 3, @@ -139605,8 +164736,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.Integer); ok { - arg2Val[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//bool-list-with-fallback: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -139634,6 +164766,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - bool + // Result: + // * bool "Go(fyne.Preferences)//bool-with-fallback": { Doc: "fyne.Preferences.BoolWithFallback", Argsn: 3, @@ -139684,6 +164822,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // Result: + // * block[fn { }] "Go(fyne.Preferences)//change-listeners": { Doc: "fyne.Preferences.ChangeListeners", Argsn: 1, @@ -139729,6 +164871,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * decimal "Go(fyne.Preferences)//float": { Doc: "fyne.Preferences.Float", Argsn: 2, @@ -139772,6 +164919,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * block[decimal] "Go(fyne.Preferences)//float-list": { Doc: "fyne.Preferences.FloatList", Argsn: 2, @@ -139821,6 +164973,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - block[decimal] + // Result: + // * block[decimal] "Go(fyne.Preferences)//float-list-with-fallback": { Doc: "fyne.Preferences.FloatListWithFallback", Argsn: 3, @@ -139863,8 +165021,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.Decimal); ok { - arg2Val[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//float-list-with-fallback: arg 3: " + "block item: " + "expected decimal, but got " + objectDebugString(ps.Idx, it)) @@ -139892,6 +165051,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - decimal + // Result: + // * decimal "Go(fyne.Preferences)//float-with-fallback": { Doc: "fyne.Preferences.FloatWithFallback", Argsn: 3, @@ -139942,6 +165107,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * integer "Go(fyne.Preferences)//int": { Doc: "fyne.Preferences.Int", Argsn: 2, @@ -139985,6 +165155,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * block[integer] "Go(fyne.Preferences)//int-list": { Doc: "fyne.Preferences.IntList", Argsn: 2, @@ -140034,6 +165209,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - block[integer] + // Result: + // * block[integer] "Go(fyne.Preferences)//int-list-with-fallback": { Doc: "fyne.Preferences.IntListWithFallback", Argsn: 3, @@ -140076,8 +165257,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.Integer); ok { - arg2Val[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//int-list-with-fallback: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -140105,6 +165287,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - integer + // Result: + // * integer "Go(fyne.Preferences)//int-with-fallback": { Doc: "fyne.Preferences.IntWithFallback", Argsn: 3, @@ -140155,6 +165343,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string "Go(fyne.Preferences)//remove-value": { Doc: "fyne.Preferences.RemoveValue", Argsn: 2, @@ -140196,6 +165387,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - bool "Go(fyne.Preferences)//set-bool": { Doc: "fyne.Preferences.SetBool", Argsn: 3, @@ -140244,6 +165439,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - block[bool] "Go(fyne.Preferences)//set-bool-list": { Doc: "fyne.Preferences.SetBoolList", Argsn: 3, @@ -140286,8 +165485,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.Integer); ok { - arg2Val[i] = vc.Value != 0 + (*iv) = vc.Value != 0 } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//set-bool-list: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -140307,6 +165507,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - decimal "Go(fyne.Preferences)//set-float": { Doc: "fyne.Preferences.SetFloat", Argsn: 3, @@ -140355,6 +165559,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - block[decimal] "Go(fyne.Preferences)//set-float-list": { Doc: "fyne.Preferences.SetFloatList", Argsn: 3, @@ -140397,8 +165605,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]float64, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.Decimal); ok { - arg2Val[i] = float64(vc.Value) + (*iv) = float64(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//set-float-list: arg 3: " + "block item: " + "expected decimal, but got " + objectDebugString(ps.Idx, it)) @@ -140418,6 +165627,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - integer "Go(fyne.Preferences)//set-int": { Doc: "fyne.Preferences.SetInt", Argsn: 3, @@ -140466,6 +165679,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - block[integer] "Go(fyne.Preferences)//set-int-list": { Doc: "fyne.Preferences.SetIntList", Argsn: 3, @@ -140508,8 +165725,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]int, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.Integer); ok { - arg2Val[i] = int(vc.Value) + (*iv) = int(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//set-int-list: arg 3: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) @@ -140529,6 +165747,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - string "Go(fyne.Preferences)//set-string": { Doc: "fyne.Preferences.SetString", Argsn: 3, @@ -140577,6 +165799,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * value - block[string] "Go(fyne.Preferences)//set-string-list": { Doc: "fyne.Preferences.SetStringList", Argsn: 3, @@ -140619,8 +165845,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.String); ok { - arg2Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//set-string-list: arg 3: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -140640,6 +165867,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * string "Go(fyne.Preferences)//string": { Doc: "fyne.Preferences.String", Argsn: 2, @@ -140683,6 +165915,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // Result: + // * block[string] "Go(fyne.Preferences)//string-list": { Doc: "fyne.Preferences.StringList", Argsn: 2, @@ -140732,6 +165969,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - block[string] + // Result: + // * block[string] "Go(fyne.Preferences)//string-list-with-fallback": { Doc: "fyne.Preferences.StringListWithFallback", Argsn: 3, @@ -140774,8 +166017,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg2Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg2Val[i] if vc, ok := it.(env.String); ok { - arg2Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("Go(fyne.Preferences)//string-list-with-fallback: arg 3: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -140803,6 +166047,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Preferences) + // * key - string + // * fallback - string + // Result: + // * string "Go(fyne.Preferences)//string-with-fallback": { Doc: "fyne.Preferences.StringWithFallback", Argsn: 3, @@ -140853,6 +166103,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Resource) + // Result: + // * block[integer] "Go(fyne.Resource)//content": { Doc: "fyne.Resource.Content", Argsn: 1, @@ -140888,13 +166142,17 @@ var builtinsGenerated = map[string]*env.Builtin{ { items := make([]env.Object, len(res0)) for i, it := range res0 { - items[i] = *env.NewNative(ps.Idx, it, "Go(byte)") + items[i] = *env.NewInteger(int64(it)) } res0Obj = *env.NewBlock(*env.NewTSeries(items)) } return res0Obj }, }, + // Args: + // * recv - Go(fyne.Resource) + // Result: + // * string "Go(fyne.Resource)//name": { Doc: "fyne.Resource.Name", Argsn: 1, @@ -140931,6 +166189,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Scrollable) + // * 1 - Go(*fyne.ScrollEvent) "Go(fyne.Scrollable)//scrolled": { Doc: "fyne.Scrollable.Scrolled", Argsn: 2, @@ -140984,6 +166245,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.SecondaryTappable) + // * 1 - Go(*fyne.PointEvent) "Go(fyne.SecondaryTappable)//tapped-secondary": { Doc: "fyne.SecondaryTappable.TappedSecondary", Argsn: 2, @@ -141037,6 +166301,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Settings) + // * 1 - Go(chan fyne.Settings) "Go(fyne.Settings)//add-change-listener": { Doc: "fyne.Settings.AddChangeListener", Argsn: 2, @@ -141084,6 +166351,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Settings) + // Result: + // * integer "Go(fyne.Settings)//build-type": { Doc: "fyne.Settings.BuildType", Argsn: 1, @@ -141120,6 +166391,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Settings) + // Result: + // * string "Go(fyne.Settings)//primary-color": { Doc: "fyne.Settings.PrimaryColor", Argsn: 1, @@ -141156,6 +166431,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Settings) + // Result: + // * decimal "Go(fyne.Settings)//scale": { Doc: "fyne.Settings.Scale", Argsn: 1, @@ -141192,6 +166471,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Settings) + // * 1 - Go(fyne.Theme) "Go(fyne.Settings)//set-theme": { Doc: "fyne.Settings.SetTheme", Argsn: 2, @@ -141252,6 +166534,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Settings) + // Result: + // * bool "Go(fyne.Settings)//show-animations": { Doc: "fyne.Settings.ShowAnimations", Argsn: 1, @@ -141288,6 +166574,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Settings) + // Result: + // * Go(fyne.theme) "Go(fyne.Settings)//theme": { Doc: "fyne.Settings.Theme", Argsn: 1, @@ -141324,6 +166614,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Settings) + // Result: + // * integer "Go(fyne.Settings)//theme-variant": { Doc: "fyne.Settings.ThemeVariant", Argsn: 1, @@ -141360,6 +166654,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Shortcut) + // Result: + // * string "Go(fyne.Shortcut)//shortcut-name": { Doc: "fyne.Shortcut.ShortcutName", Argsn: 1, @@ -141396,6 +166694,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Shortcutable) + // * 1 - Go(fyne.Shortcut) "Go(fyne.Shortcutable)//typed-shortcut": { Doc: "fyne.Shortcutable.TypedShortcut", Argsn: 2, @@ -141456,6 +166757,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Storage) + // * name - string + // Result: + // * Go(fyne.URIWriteCloser) + // * error "Go(fyne.Storage)//create": { Doc: "fyne.Storage.Create", Argsn: 2, @@ -141507,6 +166814,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Storage) + // Result: + // * block[string] "Go(fyne.Storage)//list": { Doc: "fyne.Storage.List", Argsn: 1, @@ -141549,6 +166860,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Storage) + // * name - string + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(fyne.Storage)//open": { Doc: "fyne.Storage.Open", Argsn: 2, @@ -141600,6 +166917,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Storage) + // * name - string + // Result: + // * error "Go(fyne.Storage)//remove": { Doc: "fyne.Storage.Remove", Argsn: 2, @@ -141649,6 +166971,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Storage) + // Result: + // * Go(fyne.URI) "Go(fyne.Storage)//root-uri": { Doc: "fyne.Storage.RootURI", Argsn: 1, @@ -141685,6 +167011,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Storage) + // * name - string + // Result: + // * Go(fyne.URIWriteCloser) + // * error "Go(fyne.Storage)//save": { Doc: "fyne.Storage.Save", Argsn: 2, @@ -141736,6 +167068,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Tabbable) + // Result: + // * bool "Go(fyne.Tabbable)//accepts-tab": { Doc: "fyne.Tabbable.AcceptsTab", Argsn: 1, @@ -141772,6 +167108,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Tappable) + // * 1 - Go(*fyne.PointEvent) "Go(fyne.Tappable)//tapped": { Doc: "fyne.Tappable.Tapped", Argsn: 2, @@ -141825,6 +167164,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Theme) + // * 1 - string + // * 2 - integer + // Result: + // * Go(color.color) "Go(fyne.Theme)//color": { Doc: "fyne.Theme.Color", Argsn: 3, @@ -141903,6 +167248,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Theme) + // * 1 - Go(fyne.TextStyle) + // Result: + // * Go(fyne.Resource) "Go(fyne.Theme)//font": { Doc: "fyne.Theme.Font", Argsn: 2, @@ -141952,6 +167302,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Theme) + // * 1 - string + // Result: + // * Go(fyne.Resource) "Go(fyne.Theme)//icon": { Doc: "fyne.Theme.Icon", Argsn: 2, @@ -142009,6 +167364,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Theme) + // * 1 - string + // Result: + // * decimal "Go(fyne.Theme)//size": { Doc: "fyne.Theme.Size", Argsn: 2, @@ -142066,6 +167426,136 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.ThemedResource) + // Result: + // * block[integer] + "Go(fyne.ThemedResource)//content": { + Doc: "fyne.ThemedResource.Content", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemedResource + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_ThemedResource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//content: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.ThemedResource); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//content: arg 1: " + "expected native of type fyne.ThemedResource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//content: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//content: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Content() + var res0Obj env.Object + { + items := make([]env.Object, len(res0)) + for i, it := range res0 { + items[i] = *env.NewInteger(int64(it)) + } + res0Obj = *env.NewBlock(*env.NewTSeries(items)) + } + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.ThemedResource) + // Result: + // * string + "Go(fyne.ThemedResource)//name": { + Doc: "fyne.ThemedResource.Name", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemedResource + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_ThemedResource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//name: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.ThemedResource); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//name: arg 1: " + "expected native of type fyne.ThemedResource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Name() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.ThemedResource) + // Result: + // * string + "Go(fyne.ThemedResource)//theme-color-name": { + Doc: "fyne.ThemedResource.ThemeColorName", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemedResource + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_ThemedResource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//theme-color-name: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.ThemedResource); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//theme-color-name: arg 1: " + "expected native of type fyne.ThemedResource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//theme-color-name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.ThemedResource)//theme-color-name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.ThemeColorName() + var res0Obj env.Object + res0Obj = *env.NewString(string(res0)) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//authority": { Doc: "fyne.URI.Authority", Argsn: 1, @@ -142102,6 +167592,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//extension": { Doc: "fyne.URI.Extension", Argsn: 1, @@ -142138,6 +167632,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//fragment": { Doc: "fyne.URI.Fragment", Argsn: 1, @@ -142174,6 +167672,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//mime-type": { Doc: "fyne.URI.MimeType", Argsn: 1, @@ -142210,6 +167712,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//name": { Doc: "fyne.URI.Name", Argsn: 1, @@ -142246,6 +167752,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//path": { Doc: "fyne.URI.Path", Argsn: 1, @@ -142282,6 +167792,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//query": { Doc: "fyne.URI.Query", Argsn: 1, @@ -142318,6 +167832,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//scheme": { Doc: "fyne.URI.Scheme", Argsn: 1, @@ -142354,6 +167872,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URI) + // Result: + // * string "Go(fyne.URI)//string": { Doc: "fyne.URI.String", Argsn: 1, @@ -142390,6 +167912,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URIReadcloser) + // Result: + // * error "Go(fyne.URIReadCloser)//close": { Doc: "fyne.URIReadCloser.Close", Argsn: 1, @@ -142432,6 +167958,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.URIreadCloser) + // * p - block[integer] + // Result: + // * integer + // * error "Go(fyne.URIReadCloser)//read": { Doc: "fyne.URIReadCloser.Read", Argsn: 2, @@ -142467,17 +167999,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(fyne.URIReadCloser)//read: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(fyne.URIReadCloser)//read: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(fyne.URIReadCloser)//read: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -142504,6 +168031,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.uriReadCloser) + // Result: + // * Go(fyne.uri) "Go(fyne.URIReadCloser)//uri": { Doc: "fyne.URIReadCloser.URI", Argsn: 1, @@ -142540,6 +168071,410 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//authority": { + Doc: "fyne.URIWithIcon.Authority", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//authority: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//authority: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//authority: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//authority: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Authority() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//extension": { + Doc: "fyne.URIWithIcon.Extension", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//extension: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//extension: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//extension: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//extension: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Extension() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//fragment": { + Doc: "fyne.URIWithIcon.Fragment", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//fragment: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//fragment: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//fragment: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//fragment: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Fragment() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithicon) + // Result: + // * Go(fyne.Resource) + "Go(fyne.URIWithIcon)//icon": { + Doc: "fyne.URIWithIcon.Icon", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//icon: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//icon: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//icon: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//icon: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Icon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//mime-type": { + Doc: "fyne.URIWithIcon.MimeType", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//mime-type: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//mime-type: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//mime-type: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//mime-type: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.MimeType() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//name": { + Doc: "fyne.URIWithIcon.Name", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//name: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//name: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//name: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//name: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Name() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//path": { + Doc: "fyne.URIWithIcon.Path", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//path: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//path: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//path: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//path: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Path() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//query": { + Doc: "fyne.URIWithIcon.Query", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//query: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//query: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//query: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//query: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Query() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//scheme": { + Doc: "fyne.URIWithIcon.Scheme", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//scheme: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//scheme: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//scheme: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//scheme: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Scheme() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWithIcon) + // Result: + // * string + "Go(fyne.URIWithIcon)//string": { + Doc: "fyne.URIWithIcon.String", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.URIWithIcon + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_URIWithIcon(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//string: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.URIWithIcon); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//string: arg 1: " + "expected native of type fyne.URIWithIcon, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//string: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne.URIWithIcon)//string: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.String() + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // Args: + // * recv - Go(fyne.URIWritecloser) + // Result: + // * error "Go(fyne.URIWriteCloser)//close": { Doc: "fyne.URIWriteCloser.Close", Argsn: 1, @@ -142582,6 +168517,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.uriWriteCloser) + // Result: + // * Go(fyne.uri) "Go(fyne.URIWriteCloser)//uri": { Doc: "fyne.URIWriteCloser.URI", Argsn: 1, @@ -142618,6 +168557,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.URIwriteCloser) + // * p - block[integer] + // Result: + // * integer + // * error "Go(fyne.URIWriteCloser)//write": { Doc: "fyne.URIWriteCloser.Write", Argsn: 2, @@ -142653,17 +168598,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("Go(fyne.URIWriteCloser)//write: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("Go(fyne.URIWriteCloser)//write: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("Go(fyne.URIWriteCloser)//write: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -142690,6 +168630,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Validatable) + // * 1 - fn { Go(error) } "Go(fyne.Validatable)//set-on-validation-changed": { Doc: "fyne.Validatable.SetOnValidationChanged", Argsn: 2, @@ -142750,6 +168693,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Validatable) + // Result: + // * error "Go(fyne.Validatable)//validate": { Doc: "fyne.Validatable.Validate", Argsn: 1, @@ -142792,6 +168739,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Vector2) + // Result: + // [ + // decimal + // decimal + // ] "Go(fyne.Vector2)//components": { Doc: "fyne.Vector2.Components", Argsn: 1, @@ -142833,6 +168787,10 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(fyne.Vector2) + // Result: + // * bool "Go(fyne.Vector2)//is-zero": { Doc: "fyne.Vector2.IsZero", Argsn: 1, @@ -142869,6 +168827,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Widget) + // Result: + // * Go(fyne.WidgetRenderer) "Go(fyne.Widget)//create-renderer": { Doc: "fyne.Widget.CreateRenderer", Argsn: 1, @@ -142905,6 +168867,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Widget) "Go(fyne.Widget)//hide": { Doc: "fyne.Widget.Hide", Argsn: 1, @@ -142939,6 +168903,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Widget) + // Result: + // * Go(fyne.Size) "Go(fyne.Widget)//min-size": { Doc: "fyne.Widget.MinSize", Argsn: 1, @@ -142975,6 +168943,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Widget) + // * 1 - Go(fyne.Position) "Go(fyne.Widget)//move": { Doc: "fyne.Widget.Move", Argsn: 2, @@ -143022,6 +168993,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Widget) + // Result: + // * Go(fyne.position) "Go(fyne.Widget)//position": { Doc: "fyne.Widget.Position", Argsn: 1, @@ -143058,6 +169033,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Widget) "Go(fyne.Widget)//refresh": { Doc: "fyne.Widget.Refresh", Argsn: 1, @@ -143092,6 +169069,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Widget) + // * 1 - Go(fyne.Size) "Go(fyne.Widget)//resize": { Doc: "fyne.Widget.Resize", Argsn: 2, @@ -143139,6 +169119,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Widget) "Go(fyne.Widget)//show": { Doc: "fyne.Widget.Show", Argsn: 1, @@ -143173,6 +169155,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Widget) + // Result: + // * Go(fyne.size) "Go(fyne.Widget)//size": { Doc: "fyne.Widget.Size", Argsn: 1, @@ -143209,6 +169195,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Widget) + // Result: + // * bool "Go(fyne.Widget)//visible": { Doc: "fyne.Widget.Visible", Argsn: 1, @@ -143245,6 +169235,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.WidgetRenderer) "Go(fyne.WidgetRenderer)//destroy": { Doc: "fyne.WidgetRenderer.Destroy", Argsn: 1, @@ -143279,6 +169271,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.WidgetRenderer) + // * 1 - Go(fyne.Size) "Go(fyne.WidgetRenderer)//layout": { Doc: "fyne.WidgetRenderer.Layout", Argsn: 2, @@ -143326,6 +169321,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.WidgetRenderer) + // Result: + // * Go(fyne.Size) "Go(fyne.WidgetRenderer)//min-size": { Doc: "fyne.WidgetRenderer.MinSize", Argsn: 1, @@ -143362,6 +169361,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.WidgetRenderer) + // Result: + // * block[Go(fyne.CanvasObject)] "Go(fyne.WidgetRenderer)//objects": { Doc: "fyne.WidgetRenderer.Objects", Argsn: 1, @@ -143404,6 +169407,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.WidgetRenderer) "Go(fyne.WidgetRenderer)//refresh": { Doc: "fyne.WidgetRenderer.Refresh", Argsn: 1, @@ -143438,6 +169443,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * Go(fyne.canvas) "Go(fyne.Window)//canvas": { Doc: "fyne.Window.Canvas", Argsn: 1, @@ -143474,6 +169483,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//center-on-screen": { Doc: "fyne.Window.CenterOnScreen", Argsn: 1, @@ -143508,6 +169519,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * Go(fyne.clipboard) "Go(fyne.Window)//clipboard": { Doc: "fyne.Window.Clipboard", Argsn: 1, @@ -143544,6 +169559,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//close": { Doc: "fyne.Window.Close", Argsn: 1, @@ -143578,6 +169595,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * Go(fyne.CanvasObject) "Go(fyne.Window)//content": { Doc: "fyne.Window.Content", Argsn: 1, @@ -143614,6 +169635,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * bool "Go(fyne.Window)//fixed-size": { Doc: "fyne.Window.FixedSize", Argsn: 1, @@ -143650,6 +169675,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * bool "Go(fyne.Window)//full-screen": { Doc: "fyne.Window.FullScreen", Argsn: 1, @@ -143686,6 +169715,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//hide": { Doc: "fyne.Window.Hide", Argsn: 1, @@ -143720,6 +169751,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * Go(fyne.Resource) "Go(fyne.Window)//icon": { Doc: "fyne.Window.Icon", Argsn: 1, @@ -143756,6 +169791,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * Go(*fyne.main-menu) "Go(fyne.Window)//main-menu": { Doc: "fyne.Window.MainMenu", Argsn: 1, @@ -143792,6 +169831,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * bool "Go(fyne.Window)//padded": { Doc: "fyne.Window.Padded", Argsn: 1, @@ -143828,6 +169871,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//request-focus": { Doc: "fyne.Window.RequestFocus", Argsn: 1, @@ -143862,6 +169907,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - Go(fyne.Size) "Go(fyne.Window)//resize": { Doc: "fyne.Window.Resize", Argsn: 2, @@ -143909,6 +169957,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - fn { } "Go(fyne.Window)//set-close-intercept": { Doc: "fyne.Window.SetCloseIntercept", Argsn: 2, @@ -143965,6 +170016,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - Go(fyne.CanvasObject) "Go(fyne.Window)//set-content": { Doc: "fyne.Window.SetContent", Argsn: 2, @@ -144025,6 +170079,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - bool "Go(fyne.Window)//set-fixed-size": { Doc: "fyne.Window.SetFixedSize", Argsn: 2, @@ -144066,6 +170123,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - bool "Go(fyne.Window)//set-full-screen": { Doc: "fyne.Window.SetFullScreen", Argsn: 2, @@ -144107,6 +170167,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - Go(fyne.Resource) "Go(fyne.Window)//set-icon": { Doc: "fyne.Window.SetIcon", Argsn: 2, @@ -144167,6 +170230,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - Go(*fyne.MainMenu) "Go(fyne.Window)//set-main-menu": { Doc: "fyne.Window.SetMainMenu", Argsn: 2, @@ -144220,6 +170286,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//set-master": { Doc: "fyne.Window.SetMaster", Argsn: 1, @@ -144254,6 +170322,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - fn { } "Go(fyne.Window)//set-on-closed": { Doc: "fyne.Window.SetOnClosed", Argsn: 2, @@ -144310,6 +170381,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - fn { Go(fyne.Position) block[Go(fyne.URI)] } "Go(fyne.Window)//set-on-dropped": { Doc: "fyne.Window.SetOnDropped", Argsn: 2, @@ -144375,6 +170449,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - bool "Go(fyne.Window)//set-padded": { Doc: "fyne.Window.SetPadded", Argsn: 2, @@ -144416,6 +170493,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // * 1 - string "Go(fyne.Window)//set-title": { Doc: "fyne.Window.SetTitle", Argsn: 2, @@ -144457,6 +170537,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//show": { Doc: "fyne.Window.Show", Argsn: 1, @@ -144491,6 +170573,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) "Go(fyne.Window)//show-and-run": { Doc: "fyne.Window.ShowAndRun", Argsn: 1, @@ -144525,6 +170609,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(fyne.Window) + // Result: + // * string "Go(fyne.Window)//title": { Doc: "fyne.Window.Title", Argsn: 1, @@ -144561,6 +170649,71 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(fyne_driver.NativeWindow) + // * 1 - fn { Go(any) } + "Go(fyne_driver.NativeWindow)//run-native": { + Doc: "fyne_driver.NativeWindow.RunNative", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne_driver.NativeWindow + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_driver_NativeWindow(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne_driver.NativeWindow); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 1: " + "expected native of type fyne_driver.NativeWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val func(any) + switch fn := arg1.(type) { + case env.Function: + if fn.Argsn != 1 { + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 2: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) + } + arg1Val = func(farg0 any) { + var farg0Val env.Object + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") + actualFn := fn + _ = actualFn + evaldo.CallFunctionArgsN(fn, ps, ps.Ctx, farg0Val) + } + case env.Integer: + if fn.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(fn.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(fyne_driver.NativeWindow)//run-native: arg 2: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) + } + arg0Val.RunNative(arg1Val) + return arg0 + }, + }, + // Args: + // * recv - Go(layout.SpacerObject) + // Result: + // * bool "Go(layout.SpacerObject)//expand-horizontal": { Doc: "layout.SpacerObject.ExpandHorizontal", Argsn: 1, @@ -144597,6 +170750,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(layout.SpacerObject) + // Result: + // * bool "Go(layout.SpacerObject)//expand-vertical": { Doc: "layout.SpacerObject.ExpandVertical", Argsn: 1, @@ -144633,6 +170790,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(mobile.Device) "Go(mobile.Device)//hide-virtual-keyboard": { Doc: "mobile.Device.HideVirtualKeyboard", Argsn: 1, @@ -144667,6 +170826,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Device) "Go(mobile.Device)//show-virtual-keyboard": { Doc: "mobile.Device.ShowVirtualKeyboard", Argsn: 1, @@ -144701,6 +170862,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Device) + // * 1 - integer "Go(mobile.Device)//show-virtual-keyboard-type": { Doc: "mobile.Device.ShowVirtualKeyboardType", Argsn: 2, @@ -144756,6 +170920,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Driver) "Go(mobile.Driver)//go-back": { Doc: "mobile.Driver.GoBack", Argsn: 1, @@ -144790,6 +170956,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Keyboardable) "Go(mobile.Keyboardable)//focus-gained": { Doc: "mobile.Keyboardable.FocusGained", Argsn: 1, @@ -144824,6 +170992,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Keyboardable) "Go(mobile.Keyboardable)//focus-lost": { Doc: "mobile.Keyboardable.FocusLost", Argsn: 1, @@ -144858,6 +171028,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.keyboardable) + // Result: + // * integer "Go(mobile.Keyboardable)//keyboard": { Doc: "mobile.Keyboardable.Keyboard", Argsn: 1, @@ -144894,6 +171068,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(mobile.Keyboardable) + // * 1 - Go(*fyne.KeyEvent) "Go(mobile.Keyboardable)//typed-key": { Doc: "mobile.Keyboardable.TypedKey", Argsn: 2, @@ -144947,6 +171124,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Keyboardable) + // * 1 - Go(rune) "Go(mobile.Keyboardable)//typed-rune": { Doc: "mobile.Keyboardable.TypedRune", Argsn: 2, @@ -144994,6 +171174,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Touchable) + // * 1 - Go(*mobile.TouchEvent) "Go(mobile.Touchable)//touch-cancel": { Doc: "mobile.Touchable.TouchCancel", Argsn: 2, @@ -145047,6 +171230,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Touchable) + // * 1 - Go(*mobile.TouchEvent) "Go(mobile.Touchable)//touch-down": { Doc: "mobile.Touchable.TouchDown", Argsn: 2, @@ -145100,6 +171286,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(mobile.Touchable) + // * 1 - Go(*mobile.TouchEvent) "Go(mobile.Touchable)//touch-up": { Doc: "mobile.Touchable.TouchUp", Argsn: 2, @@ -145153,6 +171342,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.CopyableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.CopyableRepository)//can-read": { Doc: "repository.CopyableRepository.CanRead", Argsn: 2, @@ -145223,6 +171418,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.copyableRepository) + // * 1 - Go(fyne.URI) + // * 2 - Go(fyne.URI) + // Result: + // * error "Go(repository.CopyableRepository)//copy": { Doc: "repository.CopyableRepository.Copy", Argsn: 3, @@ -145317,6 +171518,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.CopyableRepository) + // * 1 - string "Go(repository.CopyableRepository)//destroy": { Doc: "repository.CopyableRepository.Destroy", Argsn: 2, @@ -145358,6 +171562,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.CopyableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.CopyableRepository)//exists": { Doc: "repository.CopyableRepository.Exists", Argsn: 2, @@ -145428,6 +171638,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.CopyableRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.CopyableRepository)//reader": { Doc: "repository.CopyableRepository.Reader", Argsn: 2, @@ -145498,6 +171714,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.CustomURIRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.CustomURIRepository)//can-read": { Doc: "repository.CustomURIRepository.CanRead", Argsn: 2, @@ -145568,6 +171790,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.CustomURIRepository) + // * 1 - string "Go(repository.CustomURIRepository)//destroy": { Doc: "repository.CustomURIRepository.Destroy", Argsn: 2, @@ -145609,6 +171834,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.CustomURIRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.CustomURIRepository)//exists": { Doc: "repository.CustomURIRepository.Exists", Argsn: 2, @@ -145679,6 +171910,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.CustomURIRepository) + // * 1 - string + // Result: + // * Go(fyne.URI) + // * error "Go(repository.CustomURIRepository)//parse-uri": { Doc: "repository.CustomURIRepository.ParseURI", Argsn: 2, @@ -145730,6 +171967,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.CustomURIRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.CustomURIRepository)//reader": { Doc: "repository.CustomURIRepository.Reader", Argsn: 2, @@ -145800,6 +172043,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.HierarchicalRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.HierarchicalRepository)//can-read": { Doc: "repository.HierarchicalRepository.CanRead", Argsn: 2, @@ -145870,6 +172119,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.HierarchicalRepository) + // * 1 - Go(fyne.URI) + // * 2 - string + // Result: + // * Go(fyne.URI) + // * error "Go(repository.HierarchicalRepository)//child": { Doc: "repository.HierarchicalRepository.Child", Argsn: 3, @@ -145947,6 +172203,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.HierarchicalRepository) + // * 1 - string "Go(repository.HierarchicalRepository)//destroy": { Doc: "repository.HierarchicalRepository.Destroy", Argsn: 2, @@ -145988,6 +172247,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.HierarchicalRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.HierarchicalRepository)//exists": { Doc: "repository.HierarchicalRepository.Exists", Argsn: 2, @@ -146058,6 +172323,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.HierarchicalRepository) + // * 1 - Go(fyne.URI) + // Result: + // * Go(fyne.URI) + // * error "Go(repository.HierarchicalRepository)//parent": { Doc: "repository.HierarchicalRepository.Parent", Argsn: 2, @@ -146128,6 +172399,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.HierarchicalRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.HierarchicalRepository)//reader": { Doc: "repository.HierarchicalRepository.Reader", Argsn: 2, @@ -146198,6 +172475,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.ListableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.ListableRepository)//can-list": { Doc: "repository.ListableRepository.CanList", Argsn: 2, @@ -146268,6 +172551,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.ListableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.ListableRepository)//can-read": { Doc: "repository.ListableRepository.CanRead", Argsn: 2, @@ -146338,6 +172627,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.ListableRepository) + // * u - Go(fyne.URI) + // Result: + // * error "Go(repository.ListableRepository)//create-listable": { Doc: "repository.ListableRepository.CreateListable", Argsn: 2, @@ -146406,6 +172700,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.ListableRepository) + // * 1 - string "Go(repository.ListableRepository)//destroy": { Doc: "repository.ListableRepository.Destroy", Argsn: 2, @@ -146447,6 +172744,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.ListableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.ListableRepository)//exists": { Doc: "repository.ListableRepository.Exists", Argsn: 2, @@ -146517,6 +172820,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.listableRepository) + // * u - Go(fyne.URI) + // Result: + // * block[Go(fyne.URI)] + // * error "Go(repository.ListableRepository)//list": { Doc: "repository.ListableRepository.List", Argsn: 2, @@ -146593,6 +172902,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.ListableRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.ListableRepository)//reader": { Doc: "repository.ListableRepository.Reader", Argsn: 2, @@ -146663,6 +172978,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.MovableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.MovableRepository)//can-read": { Doc: "repository.MovableRepository.CanRead", Argsn: 2, @@ -146733,6 +173054,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.MovableRepository) + // * 1 - string "Go(repository.MovableRepository)//destroy": { Doc: "repository.MovableRepository.Destroy", Argsn: 2, @@ -146774,6 +173098,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.MovableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.MovableRepository)//exists": { Doc: "repository.MovableRepository.Exists", Argsn: 2, @@ -146844,6 +173174,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.MovableRepository) + // * 1 - Go(fyne.URI) + // * 2 - Go(fyne.URI) + // Result: + // * error "Go(repository.MovableRepository)//move": { Doc: "repository.MovableRepository.Move", Argsn: 3, @@ -146938,6 +173274,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.MovableRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.MovableRepository)//reader": { Doc: "repository.MovableRepository.Reader", Argsn: 2, @@ -147008,6 +173350,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.Repository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.Repository)//can-read": { Doc: "repository.Repository.CanRead", Argsn: 2, @@ -147078,6 +173426,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.Repository) + // * 1 - string "Go(repository.Repository)//destroy": { Doc: "repository.Repository.Destroy", Argsn: 2, @@ -147119,6 +173470,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.Repository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.Repository)//exists": { Doc: "repository.Repository.Exists", Argsn: 2, @@ -147189,6 +173546,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.Repository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.Repository)//reader": { Doc: "repository.Repository.Reader", Argsn: 2, @@ -147259,6 +173622,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.WritableRepository)//can-read": { Doc: "repository.WritableRepository.CanRead", Argsn: 2, @@ -147329,6 +173698,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.WritableRepository)//can-write": { Doc: "repository.WritableRepository.CanWrite", Argsn: 2, @@ -147399,6 +173774,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * u - Go(fyne.URI) + // Result: + // * error "Go(repository.WritableRepository)//delete": { Doc: "repository.WritableRepository.Delete", Argsn: 2, @@ -147467,6 +173847,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * 1 - string "Go(repository.WritableRepository)//destroy": { Doc: "repository.WritableRepository.Destroy", Argsn: 2, @@ -147508,6 +173891,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "Go(repository.WritableRepository)//exists": { Doc: "repository.WritableRepository.Exists", Argsn: 2, @@ -147578,6 +173967,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "Go(repository.WritableRepository)//reader": { Doc: "repository.WritableRepository.Reader", Argsn: 2, @@ -147648,6 +174043,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(repository.WritableRepository) + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIWriteCloser) + // * error "Go(repository.WritableRepository)//writer": { Doc: "repository.WritableRepository.Writer", Argsn: 2, @@ -147718,6 +174119,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(storage.FileFilter) + // * 1 - Go(fyne.URI) + // Result: + // * bool "Go(storage.FileFilter)//matches": { Doc: "storage.FileFilter.Matches", Argsn: 2, @@ -147780,6 +174186,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.Softwarepainter) + // * 1 - Go(fyne.Canvas) + // Result: + // * Go(image.Image) "Go(test.SoftwarePainter)//paint": { Doc: "test.SoftwarePainter.Paint", Argsn: 2, @@ -147842,6 +174253,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * shortcut - Go(fyne.Shortcut) + // * handler - fn { Go(fyne.Shortcut) } "Go(test.WindowlessCanvas)//add-shortcut": { Doc: "test.WindowlessCanvas.AddShortcut", Argsn: 3, @@ -147926,6 +174341,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * Go(image.Image) "Go(test.WindowlessCanvas)//capture": { Doc: "test.WindowlessCanvas.Capture", Argsn: 1, @@ -147962,6 +174381,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * Go(fyne.CanvasObject) "Go(test.WindowlessCanvas)//content": { Doc: "test.WindowlessCanvas.Content", Argsn: 1, @@ -147998,6 +174421,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - Go(fyne.focusable) "Go(test.WindowlessCanvas)//focus": { Doc: "test.WindowlessCanvas.Focus", Argsn: 2, @@ -148058,6 +174484,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) "Go(test.WindowlessCanvas)//focus-next": { Doc: "test.WindowlessCanvas.FocusNext", Argsn: 1, @@ -148092,6 +174520,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) "Go(test.WindowlessCanvas)//focus-previous": { Doc: "test.WindowlessCanvas.FocusPrevious", Argsn: 1, @@ -148126,6 +174556,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * Go(fyne.Focusable) "Go(test.WindowlessCanvas)//focused": { Doc: "test.WindowlessCanvas.Focused", Argsn: 1, @@ -148162,6 +174596,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // [ + // Go(fyne.Position) + // Go(fyne.Size) + // ] "Go(test.WindowlessCanvas)//interactive-area": { Doc: "test.WindowlessCanvas.InteractiveArea", Argsn: 1, @@ -148203,6 +174644,10 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * fn { Go(*fyne.KeyEvent) } "Go(test.WindowlessCanvas)//on-typed-key": { Doc: "test.WindowlessCanvas.OnTypedKey", Argsn: 1, @@ -148261,6 +174706,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * fn { Go(rune) } "Go(test.WindowlessCanvas)//on-typed-rune": { Doc: "test.WindowlessCanvas.OnTypedRune", Argsn: 1, @@ -148313,6 +174762,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * Go(fyne.OverlayStack) "Go(test.WindowlessCanvas)//overlays": { Doc: "test.WindowlessCanvas.Overlays", Argsn: 1, @@ -148349,6 +174802,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * bool "Go(test.WindowlessCanvas)//padded": { Doc: "test.WindowlessCanvas.Padded", Argsn: 1, @@ -148385,6 +174842,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - Go(fyne.Position) + // Result: + // [ + // integer + // integer + // ] "Go(test.WindowlessCanvas)//pixel-coordinate-for-position": { Doc: "test.WindowlessCanvas.PixelCoordinateForPosition", Argsn: 2, @@ -148439,6 +174904,9 @@ var builtinsGenerated = map[string]*env.Builtin{ })) }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - Go(fyne.CanvasObject) "Go(test.WindowlessCanvas)//refresh": { Doc: "test.WindowlessCanvas.Refresh", Argsn: 2, @@ -148499,6 +174967,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * shortcut - Go(fyne.Shortcut) "Go(test.WindowlessCanvas)//remove-shortcut": { Doc: "test.WindowlessCanvas.RemoveShortcut", Argsn: 2, @@ -148559,6 +175030,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - Go(fyne.Size) "Go(test.WindowlessCanvas)//resize": { Doc: "test.WindowlessCanvas.Resize", Argsn: 2, @@ -148606,6 +175080,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * decimal "Go(test.WindowlessCanvas)//scale": { Doc: "test.WindowlessCanvas.Scale", Argsn: 1, @@ -148642,6 +175120,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - Go(fyne.CanvasObject) "Go(test.WindowlessCanvas)//set-content": { Doc: "test.WindowlessCanvas.SetContent", Argsn: 2, @@ -148702,6 +175183,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - fn { Go(*fyne.KeyEvent) } "Go(test.WindowlessCanvas)//set-on-typed-key": { Doc: "test.WindowlessCanvas.SetOnTypedKey", Argsn: 2, @@ -148760,6 +175244,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - fn { Go(rune) } "Go(test.WindowlessCanvas)//set-on-typed-rune": { Doc: "test.WindowlessCanvas.SetOnTypedRune", Argsn: 2, @@ -148818,6 +175305,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - bool "Go(test.WindowlessCanvas)//set-padded": { Doc: "test.WindowlessCanvas.SetPadded", Argsn: 2, @@ -148859,6 +175349,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // * 1 - decimal "Go(test.WindowlessCanvas)//set-scale": { Doc: "test.WindowlessCanvas.SetScale", Argsn: 2, @@ -148900,6 +175393,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) + // Result: + // * Go(fyne.size) "Go(test.WindowlessCanvas)//size": { Doc: "test.WindowlessCanvas.Size", Argsn: 1, @@ -148936,6 +175433,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(test.WindowlessCanvas) "Go(test.WindowlessCanvas)//unfocus": { Doc: "test.WindowlessCanvas.Unfocus", Argsn: 1, @@ -148970,6 +175469,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(widget.RichTextBlock) + // Result: + // * block[Go(widget.RichTextSegment)] "Go(widget.RichTextBlock)//segments": { Doc: "widget.RichTextBlock.Segments", Argsn: 1, @@ -149012,6 +175515,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.RichTextSegment) + // Result: + // * bool "Go(widget.RichTextSegment)//inline": { Doc: "widget.RichTextSegment.Inline", Argsn: 1, @@ -149048,6 +175555,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.RichTextSegment) + // * pos-1 - Go(fyne.Position) + // * pos-2 - Go(fyne.Position) "Go(widget.RichTextSegment)//select": { Doc: "widget.RichTextSegment.Select", Argsn: 3, @@ -149108,6 +175619,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(widget.RichTextSegment) + // Result: + // * string "Go(widget.RichTextSegment)//selected-text": { Doc: "widget.RichTextSegment.SelectedText", Argsn: 1, @@ -149144,6 +175659,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.RichTextSegment) + // Result: + // * string "Go(widget.RichTextSegment)//textual": { Doc: "widget.RichTextSegment.Textual", Argsn: 1, @@ -149180,6 +175699,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.RichTextSegment) "Go(widget.RichTextSegment)//unselect": { Doc: "widget.RichTextSegment.Unselect", Argsn: 1, @@ -149214,6 +175735,9 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(widget.RichTextSegment) + // * 1 - Go(fyne.CanvasObject) "Go(widget.RichTextSegment)//update": { Doc: "widget.RichTextSegment.Update", Argsn: 2, @@ -149274,6 +175798,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return arg0 }, }, + // Args: + // * recv - Go(widget.RichTextSegment) + // Result: + // * Go(fyne.CanvasObject) "Go(widget.RichTextSegment)//visual": { Doc: "widget.RichTextSegment.Visual", Argsn: 1, @@ -149310,6 +175838,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.TextGridStyle) + // Result: + // * Go(color.Color) "Go(widget.TextGridStyle)//background-color": { Doc: "widget.TextGridStyle.BackgroundColor", Argsn: 1, @@ -149346,6 +175878,50 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.TextGridstyle) + // Result: + // * Go(fyne.Textstyle) + "Go(widget.TextGridStyle)//style": { + Doc: "widget.TextGridStyle.Style", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val widget.TextGridStyle + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_widget_TextGridStyle(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("Go(widget.TextGridStyle)//style: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(widget.TextGridStyle); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("Go(widget.TextGridStyle)//style: arg 1: " + "expected native of type widget.TextGridStyle, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("Go(widget.TextGridStyle)//style: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("Go(widget.TextGridStyle)//style: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := arg0Val.Style() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, &res0, "Go(*fyne.TextStyle)") + return res0Obj + }, + }, + // Args: + // * recv - Go(widget.TextGridStyle) + // Result: + // * Go(color.Color) "Go(widget.TextGridStyle)//text-color": { Doc: "widget.TextGridStyle.TextColor", Argsn: 1, @@ -149382,6 +175958,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Args: + // * recv - Go(widget.ToolbarItem) + // Result: + // * Go(fyne.CanvasObject) "Go(widget.ToolbarItem)//toolbar-object": { Doc: "widget.ToolbarItem.ToolbarObject", Argsn: 1, @@ -149418,6 +175998,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // app returns a new application instance with the default driver and no unique ID (unless specified in FyneApp.toml) + // + // Result: + // * Go(fyne.App) "app": { Doc: "app.New", Argsn: 0, @@ -149438,6 +176022,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // with-id returns a new app instance using the appropriate runtime driver. + // The ID string should be globally unique to this app. + // + // Args: + // * id - string + // Result: + // * Go(fyne.App) "with-id": { Doc: "app.NewWithID", Argsn: 1, @@ -149455,6 +176046,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // set-metadata overrides the packaged application metadata. + // This data can be used in many places like notifications and about screens. + // + // Args: + // * m - Go(fyne.AppMetadata) "set-metadata": { Doc: "app.SetMetadata", Argsn: 1, @@ -149476,6 +176072,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // binding-and returns a Bool binding that return true when all the passed Bool binding are + // true and false otherwise. It does apply a logical and boolean operation on all passed + // Bool bindings. This binding is two way. In case of a Set, it will propagate the value + // identically to all the Bool bindings used for its construction. + // + // Since 2.4 + // + // Args: + // * data - block[Go(binding.Bool)] + // Result: + // * Go(binding.Bool) "binding-and": { Doc: "binding.And", Argsn: 1, @@ -149485,17 +176092,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]binding.Bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_binding_Bool(ps, v) + (*iv), err = ctxTo_binding_Bool(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("binding-and: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(binding.Bool); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("binding-and: arg 1: " + "block item: " + "expected native of type binding.Bool, but got " + objectDebugString(ps.Idx, v)) @@ -149505,7 +176113,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("binding-and: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("binding-and: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -149527,6 +176135,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-bool returns a new bindable value that controls the contents of the provided bool variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *bool + // Result: + // * Go(binding.ExternalBool) "binding-bind-bool": { Doc: "binding.BindBool", Argsn: 1, @@ -149556,6 +176173,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-bool-list returns a bound list of bool values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *block[bool] + // Result: + // * Go(binding.ExternalBoolList) "binding-bind-bool-list": { Doc: "binding.BindBoolList", Argsn: 1, @@ -149585,6 +176211,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-bool-tree returns a bound tree of bool values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, bool] + // Result: + // * Go(binding.ExternalBoolTree) "binding-bind-bool-tree": { Doc: "binding.BindBoolTree", Argsn: 2, @@ -149633,6 +176270,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-bytes returns a new bindable value that controls the contents of the provided []byte variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.2 + // + // Args: + // * v - *block[integer] + // Result: + // * Go(binding.ExternalBytes) "binding-bind-bytes": { Doc: "binding.BindBytes", Argsn: 1, @@ -149662,6 +176308,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-bytes-list returns a bound list of []byte values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.2 + // + // Args: + // * v - *block[block[integer]] + // Result: + // * Go(binding.ExternalBytesList) "binding-bind-bytes-list": { Doc: "binding.BindBytesList", Argsn: 1, @@ -149691,6 +176346,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-bytes-tree returns a bound tree of []byte values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, block[integer]] + // Result: + // * Go(binding.ExternalBytesTree) "binding-bind-bytes-tree": { Doc: "binding.BindBytesTree", Argsn: 2, @@ -149739,6 +176405,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-float returns a new bindable value that controls the contents of the provided float64 variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *decimal + // Result: + // * Go(binding.ExternalFloat) "binding-bind-float": { Doc: "binding.BindFloat", Argsn: 1, @@ -149768,6 +176443,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-float-list returns a bound list of float64 values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *block[decimal] + // Result: + // * Go(binding.ExternalFloatList) "binding-bind-float-list": { Doc: "binding.BindFloatList", Argsn: 1, @@ -149797,6 +176481,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-float-tree returns a bound tree of float64 values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, decimal] + // Result: + // * Go(binding.ExternalFloatTree) "binding-bind-float-tree": { Doc: "binding.BindFloatTree", Argsn: 2, @@ -149845,6 +176540,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-int returns a new bindable value that controls the contents of the provided int variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *integer + // Result: + // * Go(binding.ExternalInt) "binding-bind-int": { Doc: "binding.BindInt", Argsn: 1, @@ -149874,6 +176578,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-int-list returns a bound list of int values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *block[integer] + // Result: + // * Go(binding.ExternalIntList) "binding-bind-int-list": { Doc: "binding.BindIntList", Argsn: 1, @@ -149903,6 +176616,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-int-tree returns a bound tree of int values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, integer] + // Result: + // * Go(binding.ExternalIntTree) "binding-bind-int-tree": { Doc: "binding.BindIntTree", Argsn: 2, @@ -149951,6 +176675,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-preference-bool returns a bindable bool value that is managed by the application preferences. + // Changes to this value will be saved to application storage and when the app starts the previous values will be read. + // + // Since: 2.0 + // + // Args: + // * key - string + // * p - Go(fyne.Preferences) + // Result: + // * Go(binding.Bool) "binding-bind-preference-bool": { Doc: "binding.BindPreferenceBool", Argsn: 2, @@ -149994,6 +176728,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-preference-float returns a bindable float64 value that is managed by the application preferences. + // Changes to this value will be saved to application storage and when the app starts the previous values will be read. + // + // Since: 2.0 + // + // Args: + // * key - string + // * p - Go(fyne.Preferences) + // Result: + // * Go(binding.Float) "binding-bind-preference-float": { Doc: "binding.BindPreferenceFloat", Argsn: 2, @@ -150037,6 +176781,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-preference-int returns a bindable int value that is managed by the application preferences. + // Changes to this value will be saved to application storage and when the app starts the previous values will be read. + // + // Since: 2.0 + // + // Args: + // * key - string + // * p - Go(fyne.Preferences) + // Result: + // * Go(binding.Int) "binding-bind-preference-int": { Doc: "binding.BindPreferenceInt", Argsn: 2, @@ -150080,6 +176834,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-preference-string returns a bindable string value that is managed by the application preferences. + // Changes to this value will be saved to application storage and when the app starts the previous values will be read. + // + // Since: 2.0 + // + // Args: + // * key - string + // * p - Go(fyne.Preferences) + // Result: + // * Go(binding.String) "binding-bind-preference-string": { Doc: "binding.BindPreferenceString", Argsn: 2, @@ -150123,6 +176887,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-rune returns a new bindable value that controls the contents of the provided rune variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *Go(rune) + // Result: + // * Go(binding.ExternalRune) "binding-bind-rune": { Doc: "binding.BindRune", Argsn: 1, @@ -150152,6 +176925,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-rune-list returns a bound list of rune values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *block[Go(rune)] + // Result: + // * Go(binding.ExternalRuneList) "binding-bind-rune-list": { Doc: "binding.BindRuneList", Argsn: 1, @@ -150181,6 +176963,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-rune-tree returns a bound tree of rune values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, Go(rune)] + // Result: + // * Go(binding.ExternalRuneTree) "binding-bind-rune-tree": { Doc: "binding.BindRuneTree", Argsn: 2, @@ -150229,6 +177022,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-string returns a new bindable value that controls the contents of the provided string variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *string + // Result: + // * Go(binding.ExternalString) "binding-bind-string": { Doc: "binding.BindString", Argsn: 1, @@ -150258,6 +177060,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-string-list returns a bound list of string values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * v - *block[string] + // Result: + // * Go(binding.ExternalStringList) "binding-bind-string-list": { Doc: "binding.BindStringList", Argsn: 1, @@ -150287,6 +177098,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-string-tree returns a bound tree of string values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, string] + // Result: + // * Go(binding.ExternalStringTree) "binding-bind-string-tree": { Doc: "binding.BindStringTree", Argsn: 2, @@ -150335,18 +177157,28 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-struct creates a new map binding of string to any using the struct passed as data. + // The key for each item is a string representation of each exported field with the value set as an any. + // Only exported fields are included. + // + // Since: 2.0 + // + // Args: + // * i - Go(any) + // Result: + // * Go(binding.Struct) "binding-bind-struct": { Doc: "binding.BindStruct", Argsn: 1, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var arg0Val interface{} + var arg0Val any switch v := arg0.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg0Val = vc } else { ps.FailureFlag = true - return env.NewError("binding-bind-struct: arg 1: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("binding-bind-struct: arg 1: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -150358,18 +177190,27 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-untyped returns a bindable any value that is bound to an external type. + // The parameter must be a pointer to the type you wish to bind. + // + // Since: 2.1 + // + // Args: + // * v - Go(any) + // Result: + // * Go(binding.ExternalUntyped) "binding-bind-untyped": { Doc: "binding.BindUntyped", Argsn: 1, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var arg0Val interface{} + var arg0Val any switch v := arg0.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { + if vc, ok := v.Value.(any); ok { arg0Val = vc } else { ps.FailureFlag = true - return env.NewError("binding-bind-untyped: arg 1: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("binding-bind-untyped: arg 1: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -150381,18 +177222,27 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-untyped-list returns a bound list of any values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.1 + // + // Args: + // * v - *block[Go(any)] + // Result: + // * Go(binding.ExternalUntypedList) "binding-bind-untyped-list": { Doc: "binding.BindUntypedList", Argsn: 1, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var arg0Val *[]interface{} + var arg0Val *[]any switch v := arg0.(type) { case env.Native: - if vc, ok := v.Value.(*[]interface{}); ok { + if vc, ok := v.Value.(*[]any); ok { arg0Val = vc } else { ps.FailureFlag = true - return env.NewError("binding-bind-untyped-list: arg 1: " + "expected native of type *[]interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("binding-bind-untyped-list: arg 1: " + "expected native of type *[]any, but got " + objectDebugString(ps.Idx, v)) } case env.Integer: if v.Value != 0 { @@ -150410,18 +177260,27 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-untyped-map creates a new map binding of string to any based on the data passed. + // If your code changes the content of the map this refers to you should call Reload() to inform the bindings. + // + // Since: 2.0 + // + // Args: + // * d - *dict[string, Go(any)] + // Result: + // * Go(binding.ExternalUntypedMap) "binding-bind-untyped-map": { Doc: "binding.BindUntypedMap", Argsn: 1, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var arg0Val *map[string]interface{} + var arg0Val *map[string]any switch v := arg0.(type) { case env.Native: - if vc, ok := v.Value.(*map[string]interface{}); ok { + if vc, ok := v.Value.(*map[string]any); ok { arg0Val = vc } else { ps.FailureFlag = true - return env.NewError("binding-bind-untyped-map: arg 1: " + "expected native of type *map[string]interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("binding-bind-untyped-map: arg 1: " + "expected native of type *map[string]any, but got " + objectDebugString(ps.Idx, v)) } case env.Integer: if v.Value != 0 { @@ -150439,6 +177298,74 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-untyped-tree returns a bound tree of any values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, Go(any)] + // Result: + // * Go(binding.ExternalUntypedTree) + "binding-bind-untyped-tree": { + Doc: "binding.BindUntypedTree", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *map[string][]string + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*map[string][]string); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("binding-bind-untyped-tree: arg 1: " + "expected native of type *map[string][]string, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("binding-bind-untyped-tree: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("binding-bind-untyped-tree: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val *map[string]any + switch v := arg1.(type) { + case env.Native: + if vc, ok := v.Value.(*map[string]any); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("binding-bind-untyped-tree: arg 2: " + "expected native of type *map[string]any, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("binding-bind-untyped-tree: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("binding-bind-untyped-tree: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := binding.BindUntypedTree(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(binding.ExternalUntypedTree)") + return res0Obj + }, + }, + // binding-bind-uri returns a new bindable value that controls the contents of the provided fyne.URI variable. + // If your code changes the content of the variable this refers to you should call Reload() to inform the bindings. + // + // Since: 2.1 + // + // Args: + // * v - Go(*fyne.URI) + // Result: + // * Go(binding.ExternalURI) "binding-bind-uri": { Doc: "binding.BindURI", Argsn: 1, @@ -150468,6 +177395,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-uri-list returns a bound list of fyne.URI values, based on the contents of the passed slice. + // If your code changes the content of the slice this refers to you should call Reload() to inform the bindings. + // + // Since: 2.1 + // + // Args: + // * v - *block[Go(fyne.URI)] + // Result: + // * Go(binding.ExternalURIList) "binding-bind-uri-list": { Doc: "binding.BindURIList", Argsn: 1, @@ -150497,6 +177433,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bind-uri-tree returns a bound tree of fyne.URI values, based on the contents of the passed values. + // The ids map specifies how each item relates to its parent (with id ""), with the values being in the v map. + // If your code changes the content of the maps this refers to you should call Reload() to inform the bindings. + // + // Since: 2.4 + // + // Args: + // * ids - *dict[string, block[string]] + // * v - *dict[string, Go(fyne.URI)] + // Result: + // * Go(binding.ExternalURITree) "binding-bind-uri-tree": { Doc: "binding.BindURITree", Argsn: 2, @@ -150545,6 +177492,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bool-to-string creates a binding that connects a Bool data item to a String. + // Changes to the Bool will be pushed to the String and setting the string will parse and set the + // Bool if the parse was successful. + // + // Since: 2.0 + // + // Args: + // * v - Go(binding.Bool) + // Result: + // * Go(binding.String) "binding-bool-to-string": { Doc: "binding.BoolToString", Argsn: 1, @@ -150581,6 +177538,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bool-to-string-with-format creates a binding that connects a Bool data item to a String and is + // presented using the specified format. Changes to the Bool will be pushed to the String and setting + // the string will parse and set the Bool if the string matches the format and its parse was successful. + // + // Since: 2.0 + // + // Args: + // * v - Go(binding.Bool) + // * format - string + // Result: + // * Go(binding.String) "binding-bool-to-string-with-format": { Doc: "binding.BoolToStringWithFormat", Argsn: 2, @@ -150624,6 +177592,71 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * string + "binding-data-tree-root-id": { + Doc: "Get binding.DataTreeRootID value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(binding.DataTreeRootID) + return resObj + }, + }, + // binding-float-to-int creates a binding that connects a Float data item to an Int. + // + // Since: 2.5 + // + // Args: + // * v - Go(binding.Float) + // Result: + // * Go(binding.Int) + "binding-float-to-int": { + Doc: "binding.FloatToInt", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.Float + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_Float(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("binding-float-to-int: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.Float); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("binding-float-to-int: arg 1: " + "expected native of type binding.Float, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("binding-float-to-int: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("binding-float-to-int: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := binding.FloatToInt(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(binding.Int)") + return res0Obj + }, + }, + // binding-float-to-string creates a binding that connects a Float data item to a String. + // Changes to the Float will be pushed to the String and setting the string will parse and set the + // Float if the parse was successful. + // + // Since: 2.0 + // + // Args: + // * v - Go(binding.Float) + // Result: + // * Go(binding.String) "binding-float-to-string": { Doc: "binding.FloatToString", Argsn: 1, @@ -150660,6 +177693,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-float-to-string-with-format creates a binding that connects a Float data item to a String and is + // presented using the specified format. Changes to the Float will be pushed to the String and setting + // the string will parse and set the Float if the string matches the format and its parse was successful. + // + // Since: 2.0 + // + // Args: + // * v - Go(binding.Float) + // * format - string + // Result: + // * Go(binding.String) "binding-float-to-string-with-format": { Doc: "binding.FloatToStringWithFormat", Argsn: 2, @@ -150703,6 +177747,60 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-int-to-float creates a binding that connects an Int data item to a Float. + // + // Since: 2.5 + // + // Args: + // * val - Go(binding.Int) + // Result: + // * Go(binding.Float) + "binding-int-to-float": { + Doc: "binding.IntToFloat", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val binding.Int + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_binding_Int(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("binding-int-to-float: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(binding.Int); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("binding-int-to-float: arg 1: " + "expected native of type binding.Int, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("binding-int-to-float: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("binding-int-to-float: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := binding.IntToFloat(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(binding.Float)") + return res0Obj + }, + }, + // binding-int-to-string creates a binding that connects a Int data item to a String. + // Changes to the Int will be pushed to the String and setting the string will parse and set the + // Int if the parse was successful. + // + // Since: 2.0 + // + // Args: + // * v - Go(binding.Int) + // Result: + // * Go(binding.String) "binding-int-to-string": { Doc: "binding.IntToString", Argsn: 1, @@ -150739,6 +177837,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-int-to-string-with-format creates a binding that connects a Int data item to a String and is + // presented using the specified format. Changes to the Int will be pushed to the String and setting + // the string will parse and set the Int if the string matches the format and its parse was successful. + // + // Since: 2.0 + // + // Args: + // * v - Go(binding.Int) + // * format - string + // Result: + // * Go(binding.String) "binding-int-to-string-with-format": { Doc: "binding.IntToStringWithFormat", Argsn: 2, @@ -150782,6 +177891,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bool returns a bindable bool value that is managed internally. + // + // Since: 2.0 + // + // Result: + // * Go(binding.Bool) "binding-bool": { Doc: "binding.NewBool", Argsn: 0, @@ -150792,6 +177907,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bool-list returns a bindable list of bool values. + // + // Since: 2.0 + // + // Result: + // * Go(binding.BoolList) "binding-bool-list": { Doc: "binding.NewBoolList", Argsn: 0, @@ -150802,6 +177923,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bool-tree returns a bindable tree of bool values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.BoolTree) "binding-bool-tree": { Doc: "binding.NewBoolTree", Argsn: 0, @@ -150812,6 +177939,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bytes returns a bindable []byte value that is managed internally. + // + // Since: 2.2 + // + // Result: + // * Go(binding.Bytes) "binding-bytes": { Doc: "binding.NewBytes", Argsn: 0, @@ -150822,6 +177955,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bytes-list returns a bindable list of []byte values. + // + // Since: 2.2 + // + // Result: + // * Go(binding.BytesList) "binding-bytes-list": { Doc: "binding.NewBytesList", Argsn: 0, @@ -150832,6 +177971,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-bytes-tree returns a bindable tree of []byte values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.BytesTree) "binding-bytes-tree": { Doc: "binding.NewBytesTree", Argsn: 0, @@ -150842,6 +177987,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-data-listener is a helper function that creates a new listener type from a simple callback function. + // + // Since: 2.0 + // + // Args: + // * fn - fn { } + // Result: + // * Go(binding.DataListener) "binding-data-listener": { Doc: "binding.NewDataListener", Argsn: 1, @@ -150874,6 +178027,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-float returns a bindable float64 value that is managed internally. + // + // Since: 2.0 + // + // Result: + // * Go(binding.Float) "binding-float": { Doc: "binding.NewFloat", Argsn: 0, @@ -150884,6 +178043,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-float-list returns a bindable list of float64 values. + // + // Since: 2.0 + // + // Result: + // * Go(binding.FloatList) "binding-float-list": { Doc: "binding.NewFloatList", Argsn: 0, @@ -150894,6 +178059,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-float-tree returns a bindable tree of float64 values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.FloatTree) "binding-float-tree": { Doc: "binding.NewFloatTree", Argsn: 0, @@ -150904,6 +178075,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-int returns a bindable int value that is managed internally. + // + // Since: 2.0 + // + // Result: + // * Go(binding.Int) "binding-int": { Doc: "binding.NewInt", Argsn: 0, @@ -150914,6 +178091,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-int-list returns a bindable list of int values. + // + // Since: 2.0 + // + // Result: + // * Go(binding.IntList) "binding-int-list": { Doc: "binding.NewIntList", Argsn: 0, @@ -150924,6 +178107,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-int-tree returns a bindable tree of int values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.IntTree) "binding-int-tree": { Doc: "binding.NewIntTree", Argsn: 0, @@ -150934,6 +178123,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-rune returns a bindable rune value that is managed internally. + // + // Since: 2.0 + // + // Result: + // * Go(binding.Rune) "binding-rune": { Doc: "binding.NewRune", Argsn: 0, @@ -150944,6 +178139,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-rune-list returns a bindable list of rune values. + // + // Since: 2.0 + // + // Result: + // * Go(binding.RuneList) "binding-rune-list": { Doc: "binding.NewRuneList", Argsn: 0, @@ -150954,6 +178155,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-rune-tree returns a bindable tree of rune values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.RuneTree) "binding-rune-tree": { Doc: "binding.NewRuneTree", Argsn: 0, @@ -150964,6 +178171,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-sprintf returns a String binding that format its content using the + // format string and the provide additional parameter that must be other + // data bindings. This data binding use fmt.Sprintf and fmt.Scanf internally + // and will have all the same limitation as those function. + // + // Since: 2.2 + // + // Args: + // * format - string + // * b - block[Go(binding.DataItem)] + // Result: + // * Go(binding.String) "binding-sprintf": { Doc: "binding.NewSprintf", Argsn: 2, @@ -150980,17 +178199,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]binding.DataItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_binding_DataItem(ps, v) + (*iv), err = ctxTo_binding_DataItem(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("binding-sprintf: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(binding.DataItem); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("binding-sprintf: arg 2: " + "block item: " + "expected native of type binding.DataItem, but got " + objectDebugString(ps.Idx, v)) @@ -151000,7 +178220,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("binding-sprintf: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("binding-sprintf: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -151022,6 +178242,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string returns a bindable string value that is managed internally. + // + // Since: 2.0 + // + // Result: + // * Go(binding.String) "binding-string": { Doc: "binding.NewString", Argsn: 0, @@ -151032,6 +178258,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-list returns a bindable list of string values. + // + // Since: 2.0 + // + // Result: + // * Go(binding.StringList) "binding-string-list": { Doc: "binding.NewStringList", Argsn: 0, @@ -151042,6 +178274,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-tree returns a bindable tree of string values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.StringTree) "binding-string-tree": { Doc: "binding.NewStringTree", Argsn: 0, @@ -151052,6 +178290,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-untyped returns a bindable any value that is managed internally. + // + // Since: 2.1 + // + // Result: + // * Go(binding.Untyped) "binding-untyped": { Doc: "binding.NewUntyped", Argsn: 0, @@ -151062,6 +178306,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-untyped-list returns a bindable list of any values. + // + // Since: 2.1 + // + // Result: + // * Go(binding.UntypedList) "binding-untyped-list": { Doc: "binding.NewUntypedList", Argsn: 0, @@ -151072,6 +178322,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-untyped-map creates a new, empty map binding of string to any. + // + // Since: 2.0 + // + // Result: + // * Go(binding.UntypedMap) "binding-untyped-map": { Doc: "binding.NewUntypedMap", Argsn: 0, @@ -151082,6 +178338,28 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-untyped-tree returns a bindable tree of any values. + // + // Since: 2.5 + // + // Result: + // * Go(binding.UntypedTree) + "binding-untyped-tree": { + Doc: "binding.NewUntypedTree", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := binding.NewUntypedTree() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(binding.UntypedTree)") + return res0Obj + }, + }, + // binding-uri returns a bindable fyne.URI value that is managed internally. + // + // Since: 2.1 + // + // Result: + // * Go(binding.URI) "binding-uri": { Doc: "binding.NewURI", Argsn: 0, @@ -151092,6 +178370,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-uri-list returns a bindable list of fyne.URI values. + // + // Since: 2.1 + // + // Result: + // * Go(binding.URIList) "binding-uri-list": { Doc: "binding.NewURIList", Argsn: 0, @@ -151102,6 +178386,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-uri-tree returns a bindable tree of fyne.URI values. + // + // Since: 2.4 + // + // Result: + // * Go(binding.URITree) "binding-uri-tree": { Doc: "binding.NewURITree", Argsn: 0, @@ -151112,6 +178402,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-not returns a Bool binding that invert the value of the given data binding. + // This is providing the logical binding-not boolean operation as a data binding. + // + // Since 2.4 + // + // Args: + // * data - Go(binding.Bool) + // Result: + // * Go(binding.Bool) "binding-not": { Doc: "binding.Not", Argsn: 1, @@ -151148,6 +178447,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-or returns a Bool binding that return true when at least one of the passed Bool binding + // is true and false otherwise. It does apply a logical or boolean operation on all passed + // Bool bindings. This binding is two way. In case of a Set, it will propagate the value + // identically to all the Bool bindings used for its construction. + // + // Since 2.4 + // + // Args: + // * data - block[Go(binding.Bool)] + // Result: + // * Go(binding.Bool) "binding-or": { Doc: "binding.Or", Argsn: 1, @@ -151157,17 +178467,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]binding.Bool, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_binding_Bool(ps, v) + (*iv), err = ctxTo_binding_Bool(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("binding-or: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(binding.Bool); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("binding-or: arg 1: " + "block item: " + "expected native of type binding.Bool, but got " + objectDebugString(ps.Idx, v)) @@ -151177,7 +178488,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("binding-or: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("binding-or: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -151199,6 +178510,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-bool creates a binding that connects a String data item to a Bool. + // Changes to the String will be parsed and pushed to the Bool if the parse was successful, and setting + // the Bool update the String binding. + // + // Since: 2.0 + // + // Args: + // * str - Go(binding.String) + // Result: + // * Go(binding.Bool) "binding-string-to-bool": { Doc: "binding.StringToBool", Argsn: 1, @@ -151235,6 +178556,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-bool-with-format creates a binding that connects a String data item to a Bool and is + // presented using the specified format. Changes to the Bool will be parsed and if the format matches and + // the parse is successful it will be pushed to the String. Setting the Bool will push a formatted value + // into the String. + // + // Since: 2.0 + // + // Args: + // * str - Go(binding.String) + // * format - string + // Result: + // * Go(binding.Bool) "binding-string-to-bool-with-format": { Doc: "binding.StringToBoolWithFormat", Argsn: 2, @@ -151278,6 +178611,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-float creates a binding that connects a String data item to a Float. + // Changes to the String will be parsed and pushed to the Float if the parse was successful, and setting + // the Float update the String binding. + // + // Since: 2.0 + // + // Args: + // * str - Go(binding.String) + // Result: + // * Go(binding.Float) "binding-string-to-float": { Doc: "binding.StringToFloat", Argsn: 1, @@ -151314,6 +178657,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-float-with-format creates a binding that connects a String data item to a Float and is + // presented using the specified format. Changes to the Float will be parsed and if the format matches and + // the parse is successful it will be pushed to the String. Setting the Float will push a formatted value + // into the String. + // + // Since: 2.0 + // + // Args: + // * str - Go(binding.String) + // * format - string + // Result: + // * Go(binding.Float) "binding-string-to-float-with-format": { Doc: "binding.StringToFloatWithFormat", Argsn: 2, @@ -151357,6 +178712,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-int creates a binding that connects a String data item to a Int. + // Changes to the String will be parsed and pushed to the Int if the parse was successful, and setting + // the Int update the String binding. + // + // Since: 2.0 + // + // Args: + // * str - Go(binding.String) + // Result: + // * Go(binding.Int) "binding-string-to-int": { Doc: "binding.StringToInt", Argsn: 1, @@ -151393,6 +178758,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-int-with-format creates a binding that connects a String data item to a Int and is + // presented using the specified format. Changes to the Int will be parsed and if the format matches and + // the parse is successful it will be pushed to the String. Setting the Int will push a formatted value + // into the String. + // + // Since: 2.0 + // + // Args: + // * str - Go(binding.String) + // * format - string + // Result: + // * Go(binding.Int) "binding-string-to-int-with-format": { Doc: "binding.StringToIntWithFormat", Argsn: 2, @@ -151436,6 +178813,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-string-with-format creates a binding that converts a string to another string using the specified format. + // Changes to the returned String will be pushed to the passed in String and setting a new string value will parse and + // set the underlying String if it matches the format and the parse was successful. + // + // Since: 2.2 + // + // Args: + // * str - Go(binding.String) + // * format - string + // Result: + // * Go(binding.String) "binding-string-to-string-with-format": { Doc: "binding.StringToStringWithFormat", Argsn: 2, @@ -151479,6 +178867,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-string-to-uri creates a binding that connects a String data item to a URI. + // Changes to the String will be parsed and pushed to the URI if the parse was successful, and setting + // the URI update the String binding. + // + // Since: 2.1 + // + // Args: + // * str - Go(binding.String) + // Result: + // * Go(binding.URI) "binding-string-to-uri": { Doc: "binding.StringToURI", Argsn: 1, @@ -151515,6 +178913,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // binding-uri-to-string creates a binding that connects a URI data item to a String. + // Changes to the URI will be pushed to the String and setting the string will parse and set the + // URI if the parse was successful. + // + // Since: 2.1 + // + // Args: + // * v - Go(binding.URI) + // Result: + // * Go(binding.String) "binding-uri-to-string": { Doc: "binding.URIToString", Argsn: 1, @@ -151551,6 +178959,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * integer "canvas-image-fill-contain": { Doc: "Get canvas.ImageFillContain value", Argsn: 0, @@ -151560,6 +178970,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "canvas-image-fill-original": { Doc: "Get canvas.ImageFillOriginal value", Argsn: 0, @@ -151569,6 +178981,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "canvas-image-fill-stretch": { Doc: "Get canvas.ImageFillStretch value", Argsn: 0, @@ -151578,6 +178992,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "canvas-image-scale-fastest": { Doc: "Get canvas.ImageScaleFastest value", Argsn: 0, @@ -151587,6 +179003,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "canvas-image-scale-pixels": { Doc: "Get canvas.ImageScalePixels value", Argsn: 0, @@ -151596,6 +179014,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "canvas-image-scale-smooth": { Doc: "Get canvas.ImageScaleSmooth value", Argsn: 0, @@ -151605,6 +179025,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // canvas-circle returns a new Circle instance + // + // Args: + // * color - Go(color.Color) + // Result: + // * Go(*canvas.Circle) "canvas-circle": { Doc: "canvas.NewCircle", Argsn: 1, @@ -151628,6 +179054,20 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-color-rgba-animation sets up a new animation that will transition from the start to stop Color over + // the specified Duration. The colour transition will move linearly through the RGB colour space. + // The content of fn should apply the color values to an object and refresh it. + // You should call Start() on the returned animation to start it. + // + // Since: 2.0 + // + // Args: + // * start - Go(color.Color) + // * stop - Go(color.Color) + // * d - Go(time.Duration) + // * fn - fn { Go(color.Color) } + // Result: + // * Go(*fyne.Animation) "canvas-color-rgba-animation": { Doc: "canvas.NewColorRGBAAnimation", Argsn: 4, @@ -151701,6 +179141,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-horizontal-gradient creates a new horizontally travelling linear gradient. + // The start color will be at the left of the gradient and the end color will be at the right. + // + // Args: + // * start - Go(color.Color) + // * end - Go(color.Color) + // Result: + // * Go(*canvas.LinearGradient) "canvas-horizontal-gradient": { Doc: "canvas.NewHorizontalGradient", Argsn: 2, @@ -151747,6 +179195,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // canvas-image-from-file creates a new image from a local file. + // Images returned from this method will scale to fit the canvas object. + // The method for scaling can be set using the Fill field. + // + // Args: + // * file - string + // Result: + // * Go(*canvas.Image) "canvas-image-from-file": { Doc: "canvas.NewImageFromFile", Argsn: 1, @@ -151764,6 +179220,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-image-from-image returns a new Image instance that is rendered from the Go + // image.Image passed in. + // Images returned from this method will scale to fit the canvas object. + // The method for scaling can be set using the Fill field. + // + // Args: + // * img - Go(image.Image) + // Result: + // * Go(*canvas.Image) "canvas-image-from-image": { Doc: "canvas.NewImageFromImage", Argsn: 1, @@ -151787,6 +179252,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-image-from-reader creates a new image from a data stream. + // The name parameter is required to uniquely identify this image (for caching etc.). + // If the image in this io.Reader is an SVG, the name should end ".svg". + // Images returned from this method will scale to fit the canvas object. + // The method for scaling can be set using the Fill field. + // + // Since: 2.0 + // + // Args: + // * read - Go(io.Reader) + // * name - string + // Result: + // * Go(*canvas.Image) "canvas-image-from-reader": { Doc: "canvas.NewImageFromReader", Argsn: 2, @@ -151830,6 +179308,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-image-from-resource creates a new image by loading the specified resource. + // Images returned from this method will scale to fit the canvas object. + // The method for scaling can be set using the Fill field. + // + // Args: + // * res - Go(fyne.Resource) + // Result: + // * Go(*canvas.Image) "canvas-image-from-resource": { Doc: "canvas.NewImageFromResource", Argsn: 1, @@ -151866,6 +179352,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-image-from-uri creates a new image from named resource. + // File URIs will read the file path and other schemes will download the data into a resource. + // HTTP and HTTPs URIs will use the GET method by default to request the resource. + // Images returned from this method will scale to fit the canvas object. + // The method for scaling can be set using the Fill field. + // + // Since: 2.0 + // + // Args: + // * uri - Go(fyne.URI) + // Result: + // * Go(*canvas.Image) "canvas-image-from-uri": { Doc: "canvas.NewImageFromURI", Argsn: 1, @@ -151902,6 +179400,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-line returns a new Line instance + // + // Args: + // * color - Go(color.Color) + // Result: + // * Go(*canvas.Line) "canvas-line": { Doc: "canvas.NewLine", Argsn: 1, @@ -151925,6 +179429,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-linear-gradient creates a linear gradient at the specified angle. + // The angle parameter is the degree angle along which the gradient is calculated. + // A NewHorizontalGradient uses 270 degrees and NewVerticalGradient is 0 degrees. + // + // Args: + // * start - Go(color.Color) + // * end - Go(color.Color) + // * angle - decimal + // Result: + // * Go(*canvas.LinearGradient) "canvas-linear-gradient": { Doc: "canvas.NewLinearGradient", Argsn: 3, @@ -151968,6 +179482,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-position-animation sets up a new animation that will transition from the start to stop Position over + // the specified Duration. The content of fn should apply the position value to an object for the change + // to be visible. You should call Start() on the returned animation to start it. + // + // Since: 2.0 + // + // Args: + // * start - Go(fyne.Position) + // * stop - Go(fyne.Position) + // * d - Go(time.Duration) + // * fn - fn { Go(fyne.Position) } + // Result: + // * Go(*fyne.Animation) "canvas-position-animation": { Doc: "canvas.NewPositionAnimation", Argsn: 4, @@ -152041,6 +179568,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-radial-gradient creates a new radial gradient. + // + // Args: + // * start - Go(color.Color) + // * end - Go(color.Color) + // Result: + // * Go(*canvas.RadialGradient) "canvas-radial-gradient": { Doc: "canvas.NewRadialGradient", Argsn: 2, @@ -152077,6 +179611,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-raster returns a new Image instance that is rendered dynamically using + // the specified generate function. + // Images returned from this method should draw dynamically to fill the width + // and height parameters passed to pixelColor. + // + // Args: + // * generate - fn { integer integer } -> Go(image.Image) + // Result: + // * Go(*canvas.Raster) "canvas-raster": { Doc: "canvas.NewRaster", Argsn: 1, @@ -152136,6 +179679,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-raster-from-image returns a new Raster instance that is rendered from the Go + // image.Image passed in. + // Rasters returned from this method will map pixel for pixel to the screen + // starting img.Bounds().Min pixels from the top left of the canvas object. + // Truncates rather than scales the image. + // If smaller than the target space, the image will be padded with zero-pixels to the target size. + // + // Args: + // * img - Go(image.Image) + // Result: + // * Go(*canvas.Raster) "canvas-raster-from-image": { Doc: "canvas.NewRasterFromImage", Argsn: 1, @@ -152159,6 +179713,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-raster-with-pixels returns a new Image instance that is rendered dynamically + // by iterating over the specified pixelColor function for each x, y pixel. + // Images returned from this method should draw dynamically to fill the width + // and height parameters passed to pixelColor. + // + // Args: + // * pixel-color - fn { integer integer integer integer } -> Go(color.Color) + // Result: + // * Go(*canvas.Raster) "canvas-raster-with-pixels": { Doc: "canvas.NewRasterWithPixels", Argsn: 1, @@ -152220,6 +179783,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-rectangle returns a new Rectangle instance + // + // Args: + // * color - Go(color.Color) + // Result: + // * Go(*canvas.Rectangle) "canvas-rectangle": { Doc: "canvas.NewRectangle", Argsn: 1, @@ -152243,6 +179812,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-size-animation sets up a new animation that will transition from the start to stop Size over + // the specified Duration. The content of fn should apply the size value to an object for the change + // to be visible. You should call Start() on the returned animation to start it. + // + // Since: 2.0 + // + // Args: + // * start - Go(fyne.Size) + // * stop - Go(fyne.Size) + // * d - Go(time.Duration) + // * fn - fn { Go(fyne.Size) } + // Result: + // * Go(*fyne.Animation) "canvas-size-animation": { Doc: "canvas.NewSizeAnimation", Argsn: 4, @@ -152316,6 +179898,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-text returns a new Text implementation + // + // Args: + // * text - string + // * color - Go(color.Color) + // Result: + // * Go(*canvas.Text) "canvas-text": { Doc: "canvas.NewText", Argsn: 2, @@ -152346,6 +179935,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-vertical-gradient creates a new vertically travelling linear gradient. + // The start color will be at the top of the gradient and the end color will be at the bottom. + // + // Args: + // * start - Go(color.Color) + // * end - Go(color.Color) + // Result: + // * Go(*canvas.LinearGradient) "canvas-vertical-gradient": { Doc: "canvas.NewVerticalGradient", Argsn: 2, @@ -152382,6 +179979,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // canvas-refresh instructs the containing canvas to refresh the specified obj. + // + // Args: + // * obj - Go(fyne.CanvasObject) "canvas-refresh": { Doc: "canvas.Refresh", Argsn: 1, @@ -152416,6 +180017,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // container-container returns a new Container instance holding the specified CanvasObjects which will be laid out according to the specified Layout. + // + // Since: 2.0 + // + // Args: + // * layout - Go(fyne.Layout) + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "container-container": { Doc: "container.New", Argsn: 2, @@ -152451,17 +180061,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("container-container: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("container-container: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -152471,7 +180082,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("container-container: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("container-container: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152493,6 +180104,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // adaptive-grid creates a new container with the specified objects and using the grid layout. + // When in a horizontal arrangement the rowcols parameter will specify the column count, when in vertical + // it will specify the rows. On mobile this will dynamically refresh when device is rotated. + // + // Since: 1.4 + // + // Args: + // * rowcols - integer + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "adaptive-grid": { Doc: "container.NewAdaptiveGrid", Argsn: 2, @@ -152509,17 +180131,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("adaptive-grid: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("adaptive-grid: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -152529,7 +180152,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("adaptive-grid: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("adaptive-grid: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152551,6 +180174,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // app-tabs creates a new tab container that allows the user to choose between different areas of an app. + // + // Since: 1.4 + // + // Args: + // * items - block[Go(*container.TabItem)] + // Result: + // * Go(*container.AppTabs) "app-tabs": { Doc: "container.NewAppTabs", Argsn: 1, @@ -152560,10 +180191,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]*container.TabItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*container.TabItem); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("app-tabs: arg 1: " + "block item: " + "expected native of type *container.TabItem, but got " + objectDebugString(ps.Idx, v)) @@ -152573,7 +180205,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("app-tabs: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("app-tabs: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152595,6 +180227,23 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // border creates a new container with the specified objects and using the border layout. + // The top, bottom, left and right parameters specify the items that should be placed around edges. + // Nil can be used to an edge if it should not be filled. + // Passed objects not assigned to any edge (parameters 5 onwards) will be used to fill the space + // remaining in the middle. + // Parameters 6 onwards will be stacked over the middle content in the specified order as a Stack container. + // + // Since: 1.4 + // + // Args: + // * top - Go(fyne.CanvasObject) + // * bottom - Go(fyne.CanvasObject) + // * left - Go(fyne.CanvasObject) + // * right - Go(fyne.CanvasObject) + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "border": { Doc: "container.NewBorder", Argsn: 5, @@ -152708,17 +180357,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg4Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg4Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg4Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("border: arg 5: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg4Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("border: arg 5: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -152728,7 +180378,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("border: arg 5: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg4Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("border: arg 5: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152750,6 +180400,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // center creates a new container with the specified objects centered in the available space. + // + // Since: 1.4 + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "center": { Doc: "container.NewCenter", Argsn: 1, @@ -152759,17 +180417,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("center: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("center: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -152779,7 +180438,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("center: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("center: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152801,6 +180460,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // doc-tabs creates a new tab container that allows the user to choose between various pieces of content. + // + // Since: 2.1 + // + // Args: + // * items - block[Go(*container.TabItem)] + // Result: + // * Go(*container.DocTabs) "doc-tabs": { Doc: "container.NewDocTabs", Argsn: 1, @@ -152810,10 +180477,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]*container.TabItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*container.TabItem); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("doc-tabs: arg 1: " + "block item: " + "expected native of type *container.TabItem, but got " + objectDebugString(ps.Idx, v)) @@ -152823,7 +180491,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("doc-tabs: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("doc-tabs: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152845,6 +180513,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // grid-with-columns creates a new container with the specified objects and using the grid layout with + // a specified number of columns. The number of rows will depend on how many children are in the container. + // + // Since: 1.4 + // + // Args: + // * cols - integer + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "grid-with-columns": { Doc: "container.NewGridWithColumns", Argsn: 2, @@ -152861,17 +180539,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("grid-with-columns: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("grid-with-columns: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -152881,7 +180560,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("grid-with-columns: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("grid-with-columns: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152903,6 +180582,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // grid-with-rows creates a new container with the specified objects and using the grid layout with + // a specified number of rows. The number of columns will depend on how many children are in the container. + // + // Since: 1.4 + // + // Args: + // * rows - integer + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "grid-with-rows": { Doc: "container.NewGridWithRows", Argsn: 2, @@ -152919,17 +180608,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("grid-with-rows: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("grid-with-rows: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -152939,7 +180629,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("grid-with-rows: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("grid-with-rows: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -152961,6 +180651,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // grid-wrap creates a new container with the specified objects and using the gridwrap layout. + // Every element will be resized to the size parameter and the content will arrange along a row and flow to a + // new row if the elements don't fit. + // + // Since: 1.4 + // + // Args: + // * size - Go(fyne.Size) + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "grid-wrap": { Doc: "container.NewGridWrap", Argsn: 2, @@ -152983,17 +180684,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("grid-wrap: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("grid-wrap: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153003,7 +180705,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("grid-wrap: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("grid-wrap: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153025,6 +180727,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // h-box creates a new container with the specified objects and using the HBox layout. + // The objects will be placed in the container from left to right and always displayed + // at their horizontal MinSize. Use a different layout if the objects are intended + // to be larger then their horizontal MinSize. + // + // Since: 1.4 + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "h-box": { Doc: "container.NewHBox", Argsn: 1, @@ -153034,17 +180747,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("h-box: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("h-box: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153054,7 +180768,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("h-box: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("h-box: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153076,6 +180790,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // h-scroll create a scrollable parent wrapping the specified content. + // Note that this may cause the MinSize.Width to be smaller than that of the passed object. + // + // Since: 1.4 + // + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*container.Scroll) "h-scroll": { Doc: "container.NewHScroll", Argsn: 1, @@ -153112,6 +180835,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // h-split creates a horizontally arranged container with the specified leading and trailing elements. + // A vertical split bar that can be dragged will be added between the elements. + // + // Since: 1.4 + // + // Args: + // * leading - Go(fyne.CanvasObject) + // * trailing - Go(fyne.CanvasObject) + // Result: + // * Go(*container.Split) "h-split": { Doc: "container.NewHSplit", Argsn: 2, @@ -153174,6 +180907,69 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // inner-window creates a new window border around the given `content`, displaying the `title` along the top. + // This will behave like a normal contain and will probably want to be added to a `MultipleWindows` parent. + // + // Since: 2.5 + // + // Args: + // * title - string + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*container.InnerWindow) + "inner-window": { + Doc: "container.NewInnerWindow", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val string + if vc, ok := arg0.(env.String); ok { + arg0Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("inner-window: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + var arg1Val fyne.CanvasObject + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("inner-window: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("inner-window: arg 2: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("inner-window: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("inner-window: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := container.NewInnerWindow(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(*container.InnerWindow)") + return res0Obj + }, + }, + // container-max creates a new container with the specified objects filling the available space. + // + // Since: 1.4 + // + // Deprecated: Use container.NewStack() instead. + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "container-max": { Doc: "container.NewMax", Argsn: 1, @@ -153183,17 +180979,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("container-max: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("container-max: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153203,7 +181000,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("container-max: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("container-max: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153225,6 +181022,70 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // multiple-windows creates a new `MultipleWindows` container to manage many inner windows. + // The initial window list is passed optionally to this constructor function. + // You can add new more windows to this container by calling `Add` or updating the `Windows` + // field and calling `Refresh`. + // + // Since: 2.5 + // + // Args: + // * wins - block[Go(*container.InnerWindow)] + // Result: + // * Go(*container.MultipleWindows) + "multiple-windows": { + Doc: "container.NewMultipleWindows", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val []*container.InnerWindow + switch v := arg0.(type) { + case env.Block: + arg0Val = make([]*container.InnerWindow, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg0Val[i] + switch v := it.(type) { + case env.Native: + if vc, ok := v.Value.(*container.InnerWindow); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("multiple-windows: arg 1: " + "block item: " + "expected native of type *container.InnerWindow, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("multiple-windows: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + (*iv) = nil + default: + ps.FailureFlag = true + return env.NewError("multiple-windows: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("multiple-windows: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("multiple-windows: arg 1: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + res0 := container.NewMultipleWindows(arg0Val...) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(*container.MultipleWindows)") + return res0Obj + }, + }, + // padded creates a new container with the specified objects inset by standard padding size. + // + // Since: 1.4 + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "padded": { Doc: "container.NewPadded", Argsn: 1, @@ -153234,17 +181095,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("padded: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("padded: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153254,7 +181116,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("padded: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("padded: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153276,6 +181138,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // scroll creates a scrollable parent wrapping the specified content. + // Note that this may cause the MinSize to be smaller than that of the passed object. + // + // Since: 1.4 + // + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*container.Scroll) "scroll": { Doc: "container.NewScroll", Argsn: 1, @@ -153322,6 +181193,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // stack returns a new container that stacks objects on top of each other. + // Objects at the end of the container will be stacked on top of objects before. + // Having only a single object has no impact as CanvasObjects will + // fill the available space even without a Stack. + // + // Since: 2.4 + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "stack": { Doc: "container.NewStack", Argsn: 1, @@ -153331,17 +181213,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("stack: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("stack: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153351,7 +181234,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("stack: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("stack: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153373,6 +181256,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tab-item creates a new item for a tabbed widget - each item specifies the content and a label for its tab. + // + // Since: 1.4 + // + // Args: + // * text - string + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*container.TabItem) "tab-item": { Doc: "container.NewTabItem", Argsn: 2, @@ -153416,6 +181308,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tab-item-with-icon creates a new item for a tabbed widget - each item specifies the content and a label with an icon for its tab. + // + // Since: 1.4 + // + // Args: + // * text - string + // * icon - Go(fyne.Resource) + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*container.TabItem) "tab-item-with-icon": { Doc: "container.NewTabItemWithIcon", Argsn: 3, @@ -153485,6 +181387,93 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // theme-override provides a container where the child widgets are themed by the specified theme. + // Containers will be traversed and all child widgets will reflect the theme in this container. + // This should be used sparingly to avoid a jarring user experience. + // + // If the content `obj` of this theme override is a container and items are later added to the container or any + // sub-containers ensure that you call `Refresh()` on this `ThemeOverride` to ensure the new items match the theme. + // + // Since: 2.5 + // + // Args: + // * obj - Go(fyne.CanvasObject) + // * th - Go(fyne.Theme) + // Result: + // * Go(*container.ThemeOverride) + "theme-override": { + Doc: "container.NewThemeOverride", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.CanvasObject + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("theme-override: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("theme-override: arg 1: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("theme-override: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("theme-override: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Theme + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Theme(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("theme-override: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Theme); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("theme-override: arg 2: " + "expected native of type fyne.Theme, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("theme-override: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("theme-override: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := container.NewThemeOverride(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(*container.ThemeOverride)") + return res0Obj + }, + }, + // v-box creates a new container with the specified objects and using the VBox layout. + // The objects will be stacked in the container from top to bottom and always displayed + // at their vertical MinSize. Use a different layout if the objects are intended + // to be larger then their vertical MinSize. + // + // Since: 1.4 + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "v-box": { Doc: "container.NewVBox", Argsn: 1, @@ -153494,17 +181483,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("v-box: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("v-box: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153514,7 +181504,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("v-box: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("v-box: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153536,6 +181526,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // v-scroll a scrollable parent wrapping the specified content. + // Note that this may cause the MinSize.Height to be smaller than that of the passed object. + // + // Since: 1.4 + // + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*container.Scroll) "v-scroll": { Doc: "container.NewVScroll", Argsn: 1, @@ -153572,6 +181571,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // v-split creates a vertically arranged container with the specified top and bottom elements. + // A horizontal split bar that can be dragged will be added between the elements. + // + // Since: 1.4 + // + // Args: + // * top - Go(fyne.CanvasObject) + // * bottom - Go(fyne.CanvasObject) + // Result: + // * Go(*container.Split) "v-split": { Doc: "container.NewVSplit", Argsn: 2, @@ -153634,6 +181643,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // without-layout returns a new Container instance holding the specified CanvasObjects that are manually arranged. + // + // Since: 2.0 + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "without-layout": { Doc: "container.NewWithoutLayout", Argsn: 1, @@ -153643,17 +181660,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("without-layout: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("without-layout: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -153663,7 +181681,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("without-layout: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("without-layout: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -153685,6 +181703,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * Go(container.ScrollDirection) "scroll-both": { Doc: "Get container.ScrollBoth value", Argsn: 0, @@ -153694,6 +181714,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(container.ScrollDirection) "scroll-horizontal-only": { Doc: "Get container.ScrollHorizontalOnly value", Argsn: 0, @@ -153703,6 +181725,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(container.ScrollDirection) "scroll-none": { Doc: "Get container.ScrollNone value", Argsn: 0, @@ -153712,6 +181736,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(container.ScrollDirection) "scroll-vertical-only": { Doc: "Get container.ScrollVerticalOnly value", Argsn: 0, @@ -153721,6 +181747,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "tab-location-bottom": { Doc: "Get container.TabLocationBottom value", Argsn: 0, @@ -153730,6 +181758,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "tab-location-leading": { Doc: "Get container.TabLocationLeading value", Argsn: 0, @@ -153739,6 +181769,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "tab-location-top": { Doc: "Get container.TabLocationTop value", Argsn: 0, @@ -153748,6 +181780,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "tab-location-trailing": { Doc: "Get container.TabLocationTrailing value", Argsn: 0, @@ -153757,42 +181791,52 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-crosshair-cursor": { Doc: "Get desktop.CrosshairCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.CrosshairCursor))) + resObj = *env.NewNative(ps.Idx, desktop.CrosshairCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-default-cursor": { Doc: "Get desktop.DefaultCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.DefaultCursor))) + resObj = *env.NewNative(ps.Idx, desktop.DefaultCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-h-resize-cursor": { Doc: "Get desktop.HResizeCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.HResizeCursor))) + resObj = *env.NewNative(ps.Idx, desktop.HResizeCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-hidden-cursor": { Doc: "Get desktop.HiddenCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.HiddenCursor))) + resObj = *env.NewNative(ps.Idx, desktop.HiddenCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // Result: + // * string "desktop-key-alt-left": { Doc: "Get desktop.KeyAltLeft value", Argsn: 0, @@ -153802,6 +181846,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-alt-right": { Doc: "Get desktop.KeyAltRight value", Argsn: 0, @@ -153811,6 +181857,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-caps-lock": { Doc: "Get desktop.KeyCapsLock value", Argsn: 0, @@ -153820,6 +181868,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-control-left": { Doc: "Get desktop.KeyControlLeft value", Argsn: 0, @@ -153829,6 +181879,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-control-right": { Doc: "Get desktop.KeyControlRight value", Argsn: 0, @@ -153838,6 +181890,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-menu": { Doc: "Get desktop.KeyMenu value", Argsn: 0, @@ -153847,6 +181901,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-none": { Doc: "Get desktop.KeyNone value", Argsn: 0, @@ -153856,6 +181912,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-print-screen": { Doc: "Get desktop.KeyPrintScreen value", Argsn: 0, @@ -153865,6 +181923,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-shift-left": { Doc: "Get desktop.KeyShiftLeft value", Argsn: 0, @@ -153874,6 +181934,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-shift-right": { Doc: "Get desktop.KeyShiftRight value", Argsn: 0, @@ -153883,6 +181945,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-super-left": { Doc: "Get desktop.KeySuperLeft value", Argsn: 0, @@ -153892,6 +181956,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "desktop-key-super-right": { Doc: "Get desktop.KeySuperRight value", Argsn: 0, @@ -153901,6 +181967,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "desktop-left-mouse-button": { Doc: "Get desktop.LeftMouseButton value", Argsn: 0, @@ -153910,6 +181978,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "desktop-mouse-button-primary": { Doc: "Get desktop.MouseButtonPrimary value", Argsn: 0, @@ -153919,6 +181989,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "desktop-mouse-button-secondary": { Doc: "Get desktop.MouseButtonSecondary value", Argsn: 0, @@ -153928,6 +182000,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "desktop-mouse-button-tertiary": { Doc: "Get desktop.MouseButtonTertiary value", Argsn: 0, @@ -153957,15 +182031,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-pointer-cursor": { Doc: "Get desktop.PointerCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.PointerCursor))) + resObj = *env.NewNative(ps.Idx, desktop.PointerCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // Result: + // * integer "desktop-right-mouse-button": { Doc: "Get desktop.RightMouseButton value", Argsn: 0, @@ -153975,24 +182053,41 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-text-cursor": { Doc: "Get desktop.TextCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.TextCursor))) + resObj = *env.NewNative(ps.Idx, desktop.TextCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // Result: + // * Go(desktop.StandardCursor) "desktop-v-resize-cursor": { Doc: "Get desktop.VResizeCursor value", Argsn: 0, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { var resObj env.Object - resObj = *env.NewInteger(int64(int(desktop.VResizeCursor))) + resObj = *env.NewNative(ps.Idx, desktop.VResizeCursor, "Go(desktop.StandardCursor)") return resObj }, }, + // dialog-color-picker creates a color dialog and returns the handle. + // Using the returned type you should call Show() and then set its color through SetColor(). + // The callback is triggered when the user selects a color. + // + // Since: 1.4 + // + // Args: + // * title - string + // * message - string + // * callback - fn { Go(color.Color) } + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.ColorPickerDialog) "dialog-color-picker": { Doc: "dialog.NewColorPicker", Argsn: 4, @@ -154077,6 +182172,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-confirm creates a dialog over the specified window for user confirmation. + // The title is used for the dialog window and message is the content. + // The callback is executed when the user decides. After creation you should call Show(). + // + // Args: + // * title - string + // * message - string + // * callback - fn { bool } + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.ConfirmDialog) "dialog-confirm": { Doc: "dialog.NewConfirm", Argsn: 4, @@ -154161,6 +182267,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-custom creates and returns a dialog over the specified application using custom + // content. The button will have the dismiss text set. + // The MinSize() of the CanvasObject passed will be used to set the size of the window. + // + // Args: + // * title - string + // * dismiss - string + // * content - Go(fyne.CanvasObject) + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.CustomDialog) "dialog-custom": { Doc: "dialog.NewCustom", Argsn: 4, @@ -154247,6 +182364,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-custom-without-buttons creates a new custom dialog without any buttons. + // The MinSize() of the CanvasObject passed will be used to set the size of the window. + // + // Since: 2.4 + // + // Args: + // * title - string + // * content - Go(fyne.CanvasObject) + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.CustomDialog) "dialog-custom-without-buttons": { Doc: "dialog.NewCustomWithoutButtons", Argsn: 3, @@ -154316,6 +182444,20 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // dialog-entry-dialog creates a dialog over the specified window for the user to enter a value. + // + // onConfirm is a callback that runs when the user enters a string of + // text and clicks the "confirm" button. May be nil. + // + // Deprecated: Use dialog.NewForm() with a widget.Entry inside instead. + // + // Args: + // * title - string + // * message - string + // * on-confirm - fn { string } + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.EntryDialog) "dialog-entry-dialog": { Doc: "dialog.NewEntryDialog", Argsn: 4, @@ -154390,6 +182532,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // dialog-error creates a dialog over the specified window for an application error. + // The message is extracted from the provided error (should not be nil). + // After creation you should call Show(). + // + // Args: + // * err - Go(error) + // * parent - Go(fyne.Window) + // Result: + // * Go(dialog.Dialog) "dialog-error": { Doc: "dialog.NewError", Argsn: 2, @@ -154452,6 +182603,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-file-open creates a file dialog allowing the user to choose a file to open. + // + // The callback function will run when the dialog closes and provide a reader for the chosen file. + // The reader will be nil when the user cancels or when nothing is selected. + // When the reader isn't nil it must be closed by the callback. + // + // The dialog will appear over the window specified when Show() is called. + // + // Args: + // * callback - fn { Go(fyne.URIReadCloser) Go(error) } + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.FileDialog) "dialog-file-open": { Doc: "dialog.NewFileOpen", Argsn: 2, @@ -154515,6 +182679,21 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // dialog-file-save creates a file dialog allowing the user to choose a file to save + // to (new or overwrite). If the user chooses an existing file they will be + // asked if they are sure. + // + // The callback function will run when the dialog closes and provide a writer for the chosen file. + // The writer will be nil when the user cancels or when nothing is selected. + // When the writer isn't nil it must be closed by the callback. + // + // The dialog will appear over the window specified when Show() is called. + // + // Args: + // * callback - fn { Go(fyne.URIWriteCloser) Go(error) } + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.FileDialog) "dialog-file-save": { Doc: "dialog.NewFileSave", Argsn: 2, @@ -154578,6 +182757,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // dialog-folder-open creates a file dialog allowing the user to choose a folder to + // open. The callback function will run when the dialog closes. The URI will be + // nil when the user cancels or when nothing is selected. + // + // The dialog will appear over the window specified when Show() is called. + // + // Since: 1.4 + // + // Args: + // * callback - fn { Go(fyne.ListableURI) Go(error) } + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.FileDialog) "dialog-folder-open": { Doc: "dialog.NewFolderOpen", Argsn: 2, @@ -154651,6 +182843,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-information creates a dialog over the specified window for user information. + // The title is used for the dialog window and message is the content. + // After creation you should call Show(). + // + // Args: + // * title - string + // * message - string + // * parent - Go(fyne.Window) + // Result: + // * Go(dialog.Dialog) "dialog-information": { Doc: "dialog.NewInformation", Argsn: 3, @@ -154701,6 +182903,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // dialog-progress creates a progress dialog and returns the handle. + // Using the returned type you should call Show() and then set its value through SetValue(). + // + // Deprecated: Use NewCustomWithoutButtons() and add a widget.ProgressBar() inside. + // + // Args: + // * title - string + // * message - string + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.ProgressDialog) "dialog-progress": { Doc: "dialog.NewProgress", Argsn: 3, @@ -154761,6 +182974,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-progress-infinite creates a infinite progress dialog and returns the handle. + // Using the returned type you should call Show(). + // + // Deprecated: Use NewCustomWithoutButtons() and add a widget.ProgressBarInfinite() inside. + // + // Args: + // * title - string + // * message - string + // * parent - Go(fyne.Window) + // Result: + // * Go(*dialog.ProgressInfiniteDialog) "dialog-progress-infinite": { Doc: "dialog.NewProgressInfinite", Argsn: 3, @@ -154821,6 +183045,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // dialog-show-color-picker creates and shows a color dialog. + // The callback is triggered when the user selects a color. + // + // Since: 1.4 + // + // Args: + // * title - string + // * message - string + // * callback - fn { Go(color.Color) } + // * parent - Go(fyne.Window) "dialog-show-color-picker": { Doc: "dialog.ShowColorPicker", Argsn: 4, @@ -154893,6 +183127,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-confirm shows a dialog over the specified window for a user + // confirmation. The title is used for the dialog window and message is the content. + // The callback is executed when the user decides. + // + // Args: + // * title - string + // * message - string + // * callback - fn { bool } + // * parent - Go(fyne.Window) "dialog-show-confirm": { Doc: "dialog.ShowConfirm", Argsn: 4, @@ -154965,6 +183208,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-custom shows a dialog over the specified application using custom + // content. The button will have the dismiss text set. + // The MinSize() of the CanvasObject passed will be used to set the size of the window. + // + // Args: + // * title - string + // * dismiss - string + // * content - Go(fyne.CanvasObject) + // * parent - Go(fyne.Window) "dialog-show-custom": { Doc: "dialog.ShowCustom", Argsn: 4, @@ -155039,6 +183291,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-custom-without-buttons shows a dialog, wihout buttons, over the specified application + // using custom content. + // The MinSize() of the CanvasObject passed will be used to set the size of the window. + // + // Since: 2.4 + // + // Args: + // * title - string + // * content - Go(fyne.CanvasObject) + // * parent - Go(fyne.Window) "dialog-show-custom-without-buttons": { Doc: "dialog.ShowCustomWithoutButtons", Argsn: 3, @@ -155106,6 +183368,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-entry-dialog creates a new entry dialog and shows it immediately. + // + // Deprecated: Use dialog.ShowForm() with a widget.Entry inside instead. + // + // Args: + // * title - string + // * message - string + // * on-confirm - fn { string } + // * parent - Go(fyne.Window) "dialog-show-entry-dialog": { Doc: "dialog.ShowEntryDialog", Argsn: 4, @@ -155178,6 +183449,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-error shows a dialog over the specified window for an application error. + // The message is extracted from the provided error (should not be nil). + // + // Args: + // * err - Go(error) + // * parent - Go(fyne.Window) "dialog-show-error": { Doc: "dialog.ShowError", Argsn: 2, @@ -155228,6 +183505,18 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-file-open creates and shows a file dialog allowing the user to choose a + // file to open. + // + // The callback function will run when the dialog closes and provide a reader for the chosen file. + // The reader will be nil when the user cancels or when nothing is selected. + // When the reader isn't nil it must be closed by the callback. + // + // The dialog will appear over the window specified. + // + // Args: + // * callback - fn { Go(fyne.URIReadCloser) Go(error) } + // * parent - Go(fyne.Window) "dialog-show-file-open": { Doc: "dialog.ShowFileOpen", Argsn: 2, @@ -155289,6 +183578,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-file-save creates and shows a file dialog allowing the user to choose a + // file to save to (new or overwrite). If the user chooses an existing file they + // will be asked if they are sure. + // + // The callback function will run when the dialog closes and provide a writer for the chosen file. + // The writer will be nil when the user cancels or when nothing is selected. + // When the writer isn't nil it must be closed by the callback. + // + // The dialog will appear over the window specified. + // + // Args: + // * callback - fn { Go(fyne.URIWriteCloser) Go(error) } + // * parent - Go(fyne.Window) "dialog-show-file-save": { Doc: "dialog.ShowFileSave", Argsn: 2, @@ -155350,6 +183652,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-folder-open creates and shows a file dialog allowing the user to choose a + // folder to open. The callback function will run when the dialog closes. The + // URI will be nil when the user cancels or when nothing is selected. + // + // The dialog will appear over the window specified. + // + // Since: 1.4 + // + // Args: + // * callback - fn { Go(fyne.ListableURI) Go(error) } + // * parent - Go(fyne.Window) "dialog-show-folder-open": { Doc: "dialog.ShowFolderOpen", Argsn: 2, @@ -155411,6 +183724,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // dialog-show-information shows a dialog over the specified window for user information. + // The title is used for the dialog window and message is the content. + // + // Args: + // * title - string + // * message - string + // * parent - Go(fyne.Window) "dialog-show-information": { Doc: "dialog.ShowInformation", Argsn: 3, @@ -155459,6 +183779,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // Result: + // * integer "build-debug": { Doc: "Get fyne.BuildDebug value", Argsn: 0, @@ -155468,6 +183790,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "build-release": { Doc: "Get fyne.BuildRelease value", Argsn: 0, @@ -155477,6 +183801,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "build-standard": { Doc: "Get fyne.BuildStandard value", Argsn: 0, @@ -155486,6 +183812,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // current-app returns the current application, for which there is only 1 per process. + // + // Result: + // * Go(fyne.App) "current-app": { Doc: "fyne.CurrentApp", Argsn: 0, @@ -155496,6 +183826,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // current-device returns the device information for the current hardware (via the driver) + // + // Result: + // * Go(fyne.Device) "current-device": { Doc: "fyne.CurrentDevice", Argsn: 0, @@ -155516,6 +183850,26 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + "fyne-driver-android-window-context": { + Doc: "Create a new fyne_driver.AndroidWindowContext struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne_driver.AndroidWindowContext{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne_driver.AndroidWindowContext)") + return resObj + }, + }, + "fyne-driver-mac-window-context": { + Doc: "Create a new fyne_driver.MacWindowContext struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne_driver.MacWindowContext{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne_driver.MacWindowContext)") + return resObj + }, + }, "fyne-driver-unknown-context": { Doc: "Create a new fyne_driver.UnknownContext struct", Argsn: 0, @@ -155526,20 +183880,60 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + "fyne-driver-wayland-window-context": { + Doc: "Create a new fyne_driver.WaylandWindowContext struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne_driver.WaylandWindowContext{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne_driver.WaylandWindowContext)") + return resObj + }, + }, + "fyne-driver-windows-window-context": { + Doc: "Create a new fyne_driver.WindowsWindowContext struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne_driver.WindowsWindowContext{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne_driver.WindowsWindowContext)") + return resObj + }, + }, + "fyne-driver-x-11-window-context": { + Doc: "Create a new fyne_driver.X11WindowContext struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne_driver.X11WindowContext{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne_driver.X11WindowContext)") + return resObj + }, + }, + // fyne-driver-run-native provides a way to execute code within the platform-specific runtime context for various runtimes. + // This is mostly useful for Android where the JVM provides functionality that is not accessible directly in CGo. + // The call for most platforms will just execute passing an `UnknownContext` and returning any error reported. + // + // Since: 2.3 + // + // Args: + // * fn - fn { Go(any) } -> Go(error) + // Result: + // * error "fyne-driver-run-native": { Doc: "fyne_driver.RunNative", Argsn: 1, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var arg0Val func(interface{}) error + var arg0Val func(any) error switch fn := arg0.(type) { case env.Function: if fn.Argsn != 1 { ps.FailureFlag = true return env.NewError("fyne-driver-run-native: arg 1: " + "expected 1 function arguments, but got " + strconv.Itoa(fn.Argsn)) } - arg0Val = func(farg0 interface{}) error { + arg0Val = func(farg0 any) error { var farg0Val env.Object - farg0Val = *env.NewNative(ps.Idx, farg0, "Go(interface{})") + farg0Val = *env.NewNative(ps.Idx, farg0, "Go(any)") actualFn := fn _ = actualFn evaldo.CallFunctionArgsN(fn, ps, ps.Ctx, farg0Val) @@ -155593,6 +183987,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // is-horizontal is a helper utility that determines if a passed orientation is horizontal + // + // Args: + // * orient - integer + // Result: + // * bool "is-horizontal": { Doc: "fyne.IsHorizontal", Argsn: 1, @@ -155624,6 +184024,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // is-vertical is a helper utility that determines if a passed orientation is vertical + // + // Args: + // * orient - integer + // Result: + // * bool "is-vertical": { Doc: "fyne.IsVertical", Argsn: 1, @@ -155655,6 +184061,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * string "key-0": { Doc: "Get fyne.Key0 value", Argsn: 0, @@ -155664,6 +184072,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-1": { Doc: "Get fyne.Key1 value", Argsn: 0, @@ -155673,6 +184083,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-2": { Doc: "Get fyne.Key2 value", Argsn: 0, @@ -155682,6 +184094,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-3": { Doc: "Get fyne.Key3 value", Argsn: 0, @@ -155691,6 +184105,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-4": { Doc: "Get fyne.Key4 value", Argsn: 0, @@ -155700,6 +184116,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-5": { Doc: "Get fyne.Key5 value", Argsn: 0, @@ -155709,6 +184127,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-6": { Doc: "Get fyne.Key6 value", Argsn: 0, @@ -155718,6 +184138,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-7": { Doc: "Get fyne.Key7 value", Argsn: 0, @@ -155727,6 +184149,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-8": { Doc: "Get fyne.Key8 value", Argsn: 0, @@ -155736,6 +184160,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-9": { Doc: "Get fyne.Key9 value", Argsn: 0, @@ -155745,6 +184171,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-a": { Doc: "Get fyne.KeyA value", Argsn: 0, @@ -155754,6 +184182,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-apostrophe": { Doc: "Get fyne.KeyApostrophe value", Argsn: 0, @@ -155763,6 +184193,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-asterisk": { Doc: "Get fyne.KeyAsterisk value", Argsn: 0, @@ -155772,6 +184204,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-b": { Doc: "Get fyne.KeyB value", Argsn: 0, @@ -155781,6 +184215,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-back-tick": { Doc: "Get fyne.KeyBackTick value", Argsn: 0, @@ -155790,6 +184226,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-backslash": { Doc: "Get fyne.KeyBackslash value", Argsn: 0, @@ -155799,6 +184237,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-backspace": { Doc: "Get fyne.KeyBackspace value", Argsn: 0, @@ -155808,6 +184248,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-c": { Doc: "Get fyne.KeyC value", Argsn: 0, @@ -155817,6 +184259,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-comma": { Doc: "Get fyne.KeyComma value", Argsn: 0, @@ -155826,6 +184270,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-d": { Doc: "Get fyne.KeyD value", Argsn: 0, @@ -155835,6 +184281,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-delete": { Doc: "Get fyne.KeyDelete value", Argsn: 0, @@ -155844,6 +184292,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-down": { Doc: "Get fyne.KeyDown value", Argsn: 0, @@ -155853,6 +184303,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-e": { Doc: "Get fyne.KeyE value", Argsn: 0, @@ -155862,6 +184314,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-end": { Doc: "Get fyne.KeyEnd value", Argsn: 0, @@ -155871,6 +184325,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-enter": { Doc: "Get fyne.KeyEnter value", Argsn: 0, @@ -155880,6 +184336,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-equal": { Doc: "Get fyne.KeyEqual value", Argsn: 0, @@ -155889,6 +184347,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-escape": { Doc: "Get fyne.KeyEscape value", Argsn: 0, @@ -155898,6 +184358,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f": { Doc: "Get fyne.KeyF value", Argsn: 0, @@ -155907,6 +184369,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-1": { Doc: "Get fyne.KeyF1 value", Argsn: 0, @@ -155916,6 +184380,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-10": { Doc: "Get fyne.KeyF10 value", Argsn: 0, @@ -155925,6 +184391,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-11": { Doc: "Get fyne.KeyF11 value", Argsn: 0, @@ -155934,6 +184402,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-12": { Doc: "Get fyne.KeyF12 value", Argsn: 0, @@ -155943,6 +184413,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-2": { Doc: "Get fyne.KeyF2 value", Argsn: 0, @@ -155952,6 +184424,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-3": { Doc: "Get fyne.KeyF3 value", Argsn: 0, @@ -155961,6 +184435,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-4": { Doc: "Get fyne.KeyF4 value", Argsn: 0, @@ -155970,6 +184446,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-5": { Doc: "Get fyne.KeyF5 value", Argsn: 0, @@ -155979,6 +184457,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-6": { Doc: "Get fyne.KeyF6 value", Argsn: 0, @@ -155988,6 +184468,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-7": { Doc: "Get fyne.KeyF7 value", Argsn: 0, @@ -155997,6 +184479,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-8": { Doc: "Get fyne.KeyF8 value", Argsn: 0, @@ -156006,6 +184490,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-f-9": { Doc: "Get fyne.KeyF9 value", Argsn: 0, @@ -156015,6 +184501,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-g": { Doc: "Get fyne.KeyG value", Argsn: 0, @@ -156024,6 +184512,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-h": { Doc: "Get fyne.KeyH value", Argsn: 0, @@ -156033,6 +184523,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-home": { Doc: "Get fyne.KeyHome value", Argsn: 0, @@ -156042,6 +184534,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-i": { Doc: "Get fyne.KeyI value", Argsn: 0, @@ -156051,6 +184545,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-insert": { Doc: "Get fyne.KeyInsert value", Argsn: 0, @@ -156060,6 +184556,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-j": { Doc: "Get fyne.KeyJ value", Argsn: 0, @@ -156069,6 +184567,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-k": { Doc: "Get fyne.KeyK value", Argsn: 0, @@ -156078,6 +184578,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-l": { Doc: "Get fyne.KeyL value", Argsn: 0, @@ -156087,6 +184589,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-left": { Doc: "Get fyne.KeyLeft value", Argsn: 0, @@ -156096,6 +184600,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-left-bracket": { Doc: "Get fyne.KeyLeftBracket value", Argsn: 0, @@ -156105,6 +184611,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-m": { Doc: "Get fyne.KeyM value", Argsn: 0, @@ -156114,6 +184622,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-minus": { Doc: "Get fyne.KeyMinus value", Argsn: 0, @@ -156123,6 +184633,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "key-modifier-alt": { Doc: "Get fyne.KeyModifierAlt value", Argsn: 0, @@ -156132,6 +184644,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "key-modifier-control": { Doc: "Get fyne.KeyModifierControl value", Argsn: 0, @@ -156141,6 +184655,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "key-modifier-shift": { Doc: "Get fyne.KeyModifierShift value", Argsn: 0, @@ -156150,6 +184666,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "key-modifier-super": { Doc: "Get fyne.KeyModifierSuper value", Argsn: 0, @@ -156159,6 +184677,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-n": { Doc: "Get fyne.KeyN value", Argsn: 0, @@ -156168,6 +184688,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-o": { Doc: "Get fyne.KeyO value", Argsn: 0, @@ -156177,6 +184699,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-p": { Doc: "Get fyne.KeyP value", Argsn: 0, @@ -156186,6 +184710,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-page-down": { Doc: "Get fyne.KeyPageDown value", Argsn: 0, @@ -156195,6 +184721,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-page-up": { Doc: "Get fyne.KeyPageUp value", Argsn: 0, @@ -156204,6 +184732,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-period": { Doc: "Get fyne.KeyPeriod value", Argsn: 0, @@ -156213,6 +184743,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-plus": { Doc: "Get fyne.KeyPlus value", Argsn: 0, @@ -156222,6 +184754,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-q": { Doc: "Get fyne.KeyQ value", Argsn: 0, @@ -156231,6 +184765,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-r": { Doc: "Get fyne.KeyR value", Argsn: 0, @@ -156240,6 +184776,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-return": { Doc: "Get fyne.KeyReturn value", Argsn: 0, @@ -156249,6 +184787,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-right": { Doc: "Get fyne.KeyRight value", Argsn: 0, @@ -156258,6 +184798,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-right-bracket": { Doc: "Get fyne.KeyRightBracket value", Argsn: 0, @@ -156267,6 +184809,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-s": { Doc: "Get fyne.KeyS value", Argsn: 0, @@ -156276,6 +184820,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-semicolon": { Doc: "Get fyne.KeySemicolon value", Argsn: 0, @@ -156285,6 +184831,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-slash": { Doc: "Get fyne.KeySlash value", Argsn: 0, @@ -156294,6 +184842,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-space": { Doc: "Get fyne.KeySpace value", Argsn: 0, @@ -156303,6 +184853,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-t": { Doc: "Get fyne.KeyT value", Argsn: 0, @@ -156312,6 +184864,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-tab": { Doc: "Get fyne.KeyTab value", Argsn: 0, @@ -156321,6 +184875,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-u": { Doc: "Get fyne.KeyU value", Argsn: 0, @@ -156330,6 +184886,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-unknown": { Doc: "Get fyne.KeyUnknown value", Argsn: 0, @@ -156339,6 +184897,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-up": { Doc: "Get fyne.KeyUp value", Argsn: 0, @@ -156348,6 +184908,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-v": { Doc: "Get fyne.KeyV value", Argsn: 0, @@ -156357,6 +184919,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-w": { Doc: "Get fyne.KeyW value", Argsn: 0, @@ -156366,6 +184930,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-x": { Doc: "Get fyne.KeyX value", Argsn: 0, @@ -156375,6 +184941,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-y": { Doc: "Get fyne.KeyY value", Argsn: 0, @@ -156384,6 +184952,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "key-z": { Doc: "Get fyne.KeyZ value", Argsn: 0, @@ -156393,6 +184963,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // load-resource-from-path creates a new [StaticResource] in memory using the contents of the specified file. + // + // Args: + // * path - string + // Result: + // * Go(fyne.Resource) + // * error "load-resource-from-path": { Doc: "fyne.LoadResourceFromPath", Argsn: 1, @@ -156418,6 +184995,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // load-resource-from-url-string creates a new [StaticResource] in memory using the body of the specified URL. + // + // Args: + // * url-str - string + // Result: + // * Go(fyne.Resource) + // * error "load-resource-from-url-string": { Doc: "fyne.LoadResourceFromURLString", Argsn: 1, @@ -156443,6 +185027,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // log-error reports an error to the command line with the specified err cause, + // if not nil. + // The function also reports basic information about the code location. + // + // Args: + // * reason - string + // * err - Go(error) "log-error": { Doc: "fyne.LogError", Argsn: 2, @@ -156474,6 +185065,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // max returns the larger of the passed values. + // + // Args: + // * x - decimal + // * y - decimal + // Result: + // * decimal "max": { Doc: "fyne.Max", Argsn: 2, @@ -156498,6 +185096,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // measure-text uses the current driver to calculate the size of text when rendered. + // The font used will be read from the current app's theme. + // + // Args: + // * text - string + // * size - decimal + // * style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.Size) "measure-text": { Doc: "fyne.MeasureText", Argsn: 3, @@ -156535,6 +185142,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // min returns the smaller of the passed values. + // + // Args: + // * x - decimal + // * y - decimal + // Result: + // * decimal "min": { Doc: "fyne.Min", Argsn: 2, @@ -156559,6 +185173,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // animation creates a very basic animation where the callback function will be called for every + // rendered frame between [time.Now] and the specified duration. The callback values start at 0.0 and + // will be 1.0 when the animation completes. + // + // Since: 2.0 + // + // Args: + // * d - Go(time.Duration) + // * fn - fn { decimal } + // Result: + // * Go(*fyne.Animation) "animation": { Doc: "fyne.NewAnimation", Argsn: 2, @@ -156616,6 +185241,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // container returns a new [Container] instance holding the specified [CanvasObject]s. + // + // Deprecated: Use [fyne.io/fyne/v2/container.NewWithoutLayout] to create a container that uses manual layout. + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "container": { Doc: "fyne.NewContainer", Argsn: 1, @@ -156625,17 +185258,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("container: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("container: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -156645,7 +185279,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("container: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("container: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -156667,6 +185301,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // container-with-layout returns a new [Container] instance holding the specified + // [CanvasObject]s which will be laid out according to the specified Layout. + // + // Deprecated: Use [fyne.io/fyne/v2/container.New] instead. + // + // Args: + // * layout - Go(fyne.Layout) + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "container-with-layout": { Doc: "fyne.NewContainerWithLayout", Argsn: 2, @@ -156702,17 +185346,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg1Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("container-with-layout: arg 2: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("container-with-layout: arg 2: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -156722,7 +185367,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("container-with-layout: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("container-with-layout: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -156744,6 +185389,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // container-without-layout returns a new [Container] instance holding the specified + // [CanvasObject]s that are manually arranged. + // + // Deprecated: Use [fyne.io/fyne/v2/container.NewWithoutLayout] instead. + // + // Args: + // * objects - block[Go(fyne.CanvasObject)] + // Result: + // * Go(*fyne.Container) "container-without-layout": { Doc: "fyne.NewContainerWithoutLayout", Argsn: 1, @@ -156753,17 +185407,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.CanvasObject, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_fyne_CanvasObject(ps, v) + (*iv), err = ctxTo_fyne_CanvasObject(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("container-without-layout: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.CanvasObject); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("container-without-layout: arg 1: " + "block item: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) @@ -156773,7 +185428,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("container-without-layout: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("container-without-layout: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -156795,6 +185450,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // delta returns a newly allocated [Delta] representing a movement in the X and Y axis. + // + // Args: + // * dx - decimal + // * dy - decimal + // Result: + // * Go(fyne.Delta) "delta": { Doc: "fyne.NewDelta", Argsn: 2, @@ -156849,6 +185511,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // main-menu creates a top level menu structure used by fyne.Window for displaying a menubar + // (or appropriate equivalent). + // + // Args: + // * items - block[Go(*fyne.Menu)] + // Result: + // * Go(*fyne.MainMenu) "main-menu": { Doc: "fyne.NewMainMenu", Argsn: 1, @@ -156858,10 +185527,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]*fyne.Menu, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*fyne.Menu); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("main-menu: arg 1: " + "block item: " + "expected native of type *fyne.Menu, but got " + objectDebugString(ps.Idx, v)) @@ -156871,7 +185541,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("main-menu: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("main-menu: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -156893,6 +185563,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu creates a new menu given the specified label (to show in a [MainMenu]) and list of items to display. + // + // Args: + // * label - string + // * items - block[Go(*fyne.MenuItem)] + // Result: + // * Go(*fyne.Menu) "menu": { Doc: "fyne.NewMenu", Argsn: 2, @@ -156909,10 +185586,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]*fyne.MenuItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg1Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*fyne.MenuItem); ok { - arg1Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("menu: arg 2: " + "block item: " + "expected native of type *fyne.MenuItem, but got " + objectDebugString(ps.Idx, v)) @@ -156922,7 +185600,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("menu: arg 2: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg1Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("menu: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -156944,6 +185622,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-item creates a new menu item from the passed label and action parameters. + // + // Args: + // * label - string + // * action - fn { } + // Result: + // * Go(*fyne.MenuItem) "menu-item": { Doc: "fyne.NewMenuItem", Argsn: 2, @@ -156983,6 +185668,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-item-separator creates a menu item that is to be used as a separator. + // + // Result: + // * Go(*fyne.MenuItem) "menu-item-separator": { Doc: "fyne.NewMenuItemSeparator", Argsn: 0, @@ -156993,6 +185682,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // notification creates a notification that can be passed to [App.SendNotification]. + // + // Args: + // * title - string + // * content - string + // Result: + // * Go(*fyne.Notification) "notification": { Doc: "fyne.NewNotification", Argsn: 2, @@ -157027,6 +185723,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // pos returns a newly allocated [Position] representing the specified coordinates. + // + // Args: + // * x - decimal + // * y - decimal + // Result: + // * Go(fyne.Position) "pos": { Doc: "fyne.NewPos", Argsn: 2, @@ -157111,6 +185814,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + "shortcut-redo": { + Doc: "Create a new fyne.ShortcutRedo struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne.ShortcutRedo{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne.ShortcutRedo)") + return resObj + }, + }, "shortcut-select-all": { Doc: "Create a new fyne.ShortcutSelectAll struct", Argsn: 0, @@ -157121,6 +185834,23 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + "shortcut-undo": { + Doc: "Create a new fyne.ShortcutUndo struct", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res := &fyne.ShortcutUndo{} + var resObj env.Object + resObj = *env.NewNative(ps.Idx, res, "Go(*fyne.ShortcutUndo)") + return resObj + }, + }, + // size returns a newly allocated Size of the specified dimensions. + // + // Args: + // * w - decimal + // * h - decimal + // Result: + // * Go(fyne.Size) "size": { Doc: "fyne.NewSize", Argsn: 2, @@ -157145,6 +185875,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // square-offset-pos returns a newly allocated [Position] with the same x and y position. + // + // Since: 2.4 + // + // Args: + // * length - decimal + // Result: + // * Go(fyne.Position) "square-offset-pos": { Doc: "fyne.NewSquareOffsetPos", Argsn: 1, @@ -157162,6 +185900,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // square-size returns a newly allocated Size with the same width and height. + // + // Since: 2.4 + // + // Args: + // * side - decimal + // Result: + // * Go(fyne.Size) "square-size": { Doc: "fyne.NewSquareSize", Argsn: 1, @@ -157179,6 +185925,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // static-resource returns a new static resource object with the specified + // name and content. Creating a new static resource in memory results in + // sharable binary data that may be serialised to the system cache location. + // + // Args: + // * name - string + // * content - block[integer] + // Result: + // * Go(*fyne.StaticResource) "static-resource": { Doc: "fyne.NewStaticResource", Argsn: 2, @@ -157195,17 +185950,12 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg1Val = make([]byte, len(v.Series.S)) for i, it := range v.Series.S { - switch v := it.(type) { - case env.Native: - if vc, ok := v.Value.(byte); ok { - arg1Val[i] = vc - } else { - ps.FailureFlag = true - return env.NewError("static-resource: arg 2: " + "block item: " + "expected native of type byte, but got " + objectDebugString(ps.Idx, v)) - } - default: + iv := &arg1Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { ps.FailureFlag = true - return env.NewError("static-resource: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("static-resource: arg 2: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) } } case env.Integer: @@ -157234,6 +185984,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "orientation-horizontal-left": { Doc: "Get fyne.OrientationHorizontalLeft value", Argsn: 0, @@ -157243,6 +185995,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "orientation-horizontal-right": { Doc: "Get fyne.OrientationHorizontalRight value", Argsn: 0, @@ -157252,6 +186006,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "orientation-vertical": { Doc: "Get fyne.OrientationVertical value", Argsn: 0, @@ -157261,6 +186017,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "orientation-vertical-upside-down": { Doc: "Get fyne.OrientationVerticalUpsideDown value", Argsn: 0, @@ -157270,6 +186028,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // set-current-app is an internal function to set the app instance currently running. + // + // Args: + // * current - Go(fyne.App) "set-current-app": { Doc: "fyne.SetCurrentApp", Argsn: 1, @@ -157304,6 +186066,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // Result: + // * integer "text-align-center": { Doc: "Get fyne.TextAlignCenter value", Argsn: 0, @@ -157313,6 +186077,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-align-leading": { Doc: "Get fyne.TextAlignLeading value", Argsn: 0, @@ -157322,6 +186088,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-align-trailing": { Doc: "Get fyne.TextAlignTrailing value", Argsn: 0, @@ -157331,6 +186099,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-truncate": { Doc: "Get fyne.TextTruncate value", Argsn: 0, @@ -157340,6 +186110,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-truncate-clip": { Doc: "Get fyne.TextTruncateClip value", Argsn: 0, @@ -157349,6 +186121,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-truncate-ellipsis": { Doc: "Get fyne.TextTruncateEllipsis value", Argsn: 0, @@ -157358,6 +186132,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-truncate-off": { Doc: "Get fyne.TextTruncateOff value", Argsn: 0, @@ -157367,6 +186143,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-wrap-break": { Doc: "Get fyne.TextWrapBreak value", Argsn: 0, @@ -157376,6 +186154,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-wrap-off": { Doc: "Get fyne.TextWrapOff value", Argsn: 0, @@ -157385,6 +186165,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "text-wrap-word": { Doc: "Get fyne.TextWrapWord value", Argsn: 0, @@ -157394,6 +186176,447 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // lang-add-translations allows an app to load a bundle of translations. + // The language that this relates to will be inferred from the resource name, for example "fr.json". + // The data should be in json format. + // + // Args: + // * r - Go(fyne.Resource) + // Result: + // * error + "lang-add-translations": { + Doc: "lang.AddTranslations", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.Resource + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_Resource(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("lang-add-translations: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Resource); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("lang-add-translations: arg 1: " + "expected native of type fyne.Resource, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("lang-add-translations: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("lang-add-translations: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + resErr := lang.AddTranslations(arg0Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return nil + }, + }, + // lang-add-translations-for-locale allows an app to load a bundle of translations for a specified locale. + // The data should be in json format. + // + // Args: + // * data - block[integer] + // * l - Go(fyne.Locale) + // Result: + // * error + "lang-add-translations-for-locale": { + Doc: "lang.AddTranslationsForLocale", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val []byte + switch v := arg0.(type) { + case env.Block: + arg0Val = make([]byte, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg0Val[i] + if vc, ok := it.(env.Integer); ok { + (*iv) = byte(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-add-translations-for-locale: arg 1: " + "block item: " + "expected integer, but got " + objectDebugString(ps.Idx, it)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("lang-add-translations-for-locale: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("lang-add-translations-for-locale: arg 1: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Locale + { + nat, natOk := arg1.(env.Native) + var natValOk bool + var natVal fyne.Locale + if natOk { + natVal, natValOk = nat.Value.(fyne.Locale) + } + if natValOk { + arg1Val = natVal + } else { + var u string + if vc, ok := arg1.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-add-translations-for-locale: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + arg1Val = fyne.Locale(u) + } + } + resErr := lang.AddTranslationsForLocale(arg0Val, arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return nil + }, + }, + // lang-add-translations-fs supports adding all translations in one calling using an `embed.FS` setup. + // The `dir` parameter specifies the name or path of the directory containing translation files + // inside this embedded filesystem. + // Each file should be a json file with the name following pattern [prefix.]lang.json. + // + // Args: + // * fs - Go(embed.FS) + // * dir - string + // Result: + // * error + "lang-add-translations-fs": { + Doc: "lang.AddTranslationsFS", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val embed.FS + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(embed.FS); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("lang-add-translations-fs: arg 1: " + "expected native of type embed.FS, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("lang-add-translations-fs: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-add-translations-fs: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + resErr := lang.AddTranslationsFS(arg0Val, arg1Val) + var resErrObj env.Object + if resErr != nil { + resErrObj = env.NewError(resErr.Error()) + } + if resErrObj != nil { + ps.FailureFlag = true + return resErrObj + } + return nil + }, + }, + // lang-localize asks the translation engine to translate a string, this behaves like the gettext "_" function. + // The string can be templated and the template data can be passed as a struct with exported fields, + // or as a map of string keys to any suitable value. + // + // Args: + // * in - string + // * data - block[Go(any)] + // Result: + // * string + "lang-localize": { + Doc: "lang.Localize", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val string + if vc, ok := arg0.(env.String); ok { + arg0Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + var arg1Val []any + switch v := arg1.(type) { + case env.Block: + arg1Val = make([]any, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg1Val[i] + switch v := it.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("lang-localize: arg 2: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("lang-localize: arg 2: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("lang-localize: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("lang-localize: arg 2: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + res0 := lang.Localize(arg0Val, arg1Val...) + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // lang-localize-key asks the translation engine for the translation with specific ID. + // If it cannot be found then the fallback will be used. + // The string can be templated and the template data can be passed as a struct with exported fields, + // or as a map of string keys to any suitable value. + // + // Args: + // * key - string + // * fallback - string + // * data - block[Go(any)] + // Result: + // * string + "lang-localize-key": { + Doc: "lang.LocalizeKey", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val string + if vc, ok := arg0.(env.String); ok { + arg0Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-key: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-key: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val []any + switch v := arg2.(type) { + case env.Block: + arg2Val = make([]any, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg2Val[i] + switch v := it.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-key: arg 3: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("lang-localize-key: arg 3: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("lang-localize-key: arg 3: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg2Val = nil + default: + ps.FailureFlag = true + return env.NewError("lang-localize-key: arg 3: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + res0 := lang.LocalizeKey(arg0Val, arg1Val, arg2Val...) + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // lang-localize-plural asks the translation engine to translate a string from one of a number of plural forms. + // This behaves like the ngettext function, with the `count` parameter determining the plurality looked up. + // The string can be templated and the template data can be passed as a struct with exported fields, + // or as a map of string keys to any suitable value. + // + // Args: + // * in - string + // * count - integer + // * data - block[Go(any)] + // Result: + // * string + "lang-localize-plural": { + Doc: "lang.LocalizePlural", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val string + if vc, ok := arg0.(env.String); ok { + arg0Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + var arg1Val int + if vc, ok := arg1.(env.Integer); ok { + arg1Val = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural: arg 2: " + "expected integer, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val []any + switch v := arg2.(type) { + case env.Block: + arg2Val = make([]any, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg2Val[i] + switch v := it.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural: arg 3: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("lang-localize-plural: arg 3: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("lang-localize-plural: arg 3: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg2Val = nil + default: + ps.FailureFlag = true + return env.NewError("lang-localize-plural: arg 3: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + res0 := lang.LocalizePlural(arg0Val, arg1Val, arg2Val...) + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // lang-localize-plural-key asks the translation engine for the translation with specific ID in plural form. + // This behaves like the npgettext function, with the `count` parameter determining the plurality looked up. + // If it cannot be found then the fallback will be used. + // The string can be templated and the template data can be passed as a struct with exported fields, + // or as a map of string keys to any suitable value. + // + // Args: + // * key - string + // * fallback - string + // * count - integer + // * data - block[Go(any)] + // Result: + // * string + "lang-localize-plural-key": { + Doc: "lang.LocalizePluralKey", + Argsn: 4, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val string + if vc, ok := arg0.(env.String); ok { + arg0Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + var arg1Val string + if vc, ok := arg1.(env.String); ok { + arg1Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 2: " + "expected string, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val int + if vc, ok := arg2.(env.Integer); ok { + arg2Val = int(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 3: " + "expected integer, but got " + objectDebugString(ps.Idx, arg2)) + } + var arg3Val []any + switch v := arg3.(type) { + case env.Block: + arg3Val = make([]any, len(v.Series.S)) + for i, it := range v.Series.S { + iv := &arg3Val[i] + switch v := it.(type) { + case env.Native: + if vc, ok := v.Value.(any); ok { + (*iv) = vc + } else { + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 4: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 4: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 4: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg3Val = nil + default: + ps.FailureFlag = true + return env.NewError("lang-localize-plural-key: arg 4: " + "expected block or nil, but got " + objectDebugString(ps.Idx, v)) + } + res0 := lang.LocalizePluralKey(arg0Val, arg1Val, arg2Val, arg3Val...) + var res0Obj env.Object + res0Obj = *env.NewString(res0) + return res0Obj + }, + }, + // lang-system-locale returns the primary locale on the current system. + // This may refer to a language that Fyne does not have translations for. + // + // Result: + // * Go(fyne.Locale) + "lang-system-locale": { + Doc: "lang.SystemLocale", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := lang.SystemLocale() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(fyne.Locale)") + return res0Obj + }, + }, + // layout-adaptive-grid-layout returns a new grid layout which uses columns when horizontal but rows when vertical. + // + // Args: + // * rowcols - integer + // Result: + // * Go(fyne.Layout) "layout-adaptive-grid-layout": { Doc: "layout.NewAdaptiveGridLayout", Argsn: 1, @@ -157411,6 +186634,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-border-layout creates a new BorderLayout instance with top, bottom, left + // and right objects set. All other items in the container will fill the remaining space in the middle. + // Multiple extra items will be stacked in the specified order as a Stack container. + // + // Args: + // * top - Go(fyne.CanvasObject) + // * bottom - Go(fyne.CanvasObject) + // * left - Go(fyne.CanvasObject) + // * right - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Layout) "layout-border-layout": { Doc: "layout.NewBorderLayout", Argsn: 4, @@ -157525,6 +186759,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-center-layout creates a new CenterLayout instance + // + // Result: + // * Go(fyne.Layout) "layout-center-layout": { Doc: "layout.NewCenterLayout", Argsn: 0, @@ -157535,6 +186773,112 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-custom-padded-h-box-layout returns a layout similar to HBoxLayout that uses a custom + // amount of padding in between objects instead of the theme.Padding value. + // + // Since: 2.5 + // + // Args: + // * padding - decimal + // Result: + // * Go(fyne.Layout) + "layout-custom-padded-h-box-layout": { + Doc: "layout.NewCustomPaddedHBoxLayout", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val float32 + if vc, ok := arg0.(env.Decimal); ok { + arg0Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("layout-custom-padded-h-box-layout: arg 1: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg0)) + } + res0 := layout.NewCustomPaddedHBoxLayout(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Layout)") + return res0Obj + }, + }, + // layout-custom-padded-layout creates a new CustomPaddedLayout instance + // with the specified paddings. + // + // Since: 2.5 + // + // Args: + // * pad-top - decimal + // * pad-bottom - decimal + // * pad-left - decimal + // * pad-right - decimal + // Result: + // * Go(fyne.Layout) + "layout-custom-padded-layout": { + Doc: "layout.NewCustomPaddedLayout", + Argsn: 4, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val float32 + if vc, ok := arg0.(env.Decimal); ok { + arg0Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("layout-custom-padded-layout: arg 1: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg0)) + } + var arg1Val float32 + if vc, ok := arg1.(env.Decimal); ok { + arg1Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("layout-custom-padded-layout: arg 2: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg1)) + } + var arg2Val float32 + if vc, ok := arg2.(env.Decimal); ok { + arg2Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("layout-custom-padded-layout: arg 3: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg2)) + } + var arg3Val float32 + if vc, ok := arg3.(env.Decimal); ok { + arg3Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("layout-custom-padded-layout: arg 4: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg3)) + } + res0 := layout.NewCustomPaddedLayout(arg0Val, arg1Val, arg2Val, arg3Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Layout)") + return res0Obj + }, + }, + // layout-custom-padded-v-box-layout returns a layout similar to VBoxLayout that uses a custom + // amount of padding in between objects instead of the theme.Padding value. + // + // Since: 2.5 + // + // Args: + // * padding - decimal + // Result: + // * Go(fyne.Layout) + "layout-custom-padded-v-box-layout": { + Doc: "layout.NewCustomPaddedVBoxLayout", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val float32 + if vc, ok := arg0.(env.Decimal); ok { + arg0Val = float32(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("layout-custom-padded-v-box-layout: arg 1: " + "expected decimal, but got " + objectDebugString(ps.Idx, arg0)) + } + res0 := layout.NewCustomPaddedVBoxLayout(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Layout)") + return res0Obj + }, + }, + // layout-form-layout returns a new FormLayout instance + // + // Result: + // * Go(fyne.Layout) "layout-form-layout": { Doc: "layout.NewFormLayout", Argsn: 0, @@ -157545,6 +186889,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-grid-layout returns a grid layout arranged in a specified number of columns. + // The number of rows will depend on how many children are in the container that uses this layout. + // + // Args: + // * cols - integer + // Result: + // * Go(fyne.Layout) "layout-grid-layout": { Doc: "layout.NewGridLayout", Argsn: 1, @@ -157562,6 +186913,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-grid-layout-with-columns returns a new grid layout that specifies a column count and wrap to new rows when needed. + // + // Args: + // * cols - integer + // Result: + // * Go(fyne.Layout) "layout-grid-layout-with-columns": { Doc: "layout.NewGridLayoutWithColumns", Argsn: 1, @@ -157579,6 +186936,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-grid-layout-with-rows returns a new grid layout that specifies a row count that creates new rows as required. + // + // Args: + // * rows - integer + // Result: + // * Go(fyne.Layout) "layout-grid-layout-with-rows": { Doc: "layout.NewGridLayoutWithRows", Argsn: 1, @@ -157596,6 +186959,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-grid-wrap-layout returns a new GridWrapLayout instance + // + // Args: + // * size - Go(fyne.Size) + // Result: + // * Go(fyne.Layout) "layout-grid-wrap-layout": { Doc: "layout.NewGridWrapLayout", Argsn: 1, @@ -157619,6 +186988,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-h-box-layout returns a horizontal box layout for stacking a number of child + // canvas objects or widgets left to right. The objects are always displayed + // at their horizontal MinSize. Use a different layout if the objects are intended + // to be larger than their horizontal MinSize. + // + // Result: + // * Go(fyne.Layout) "layout-h-box-layout": { Doc: "layout.NewHBoxLayout", Argsn: 0, @@ -157629,6 +187005,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-max-layout creates a new MaxLayout instance + // + // Deprecated: Use layout.NewStackLayout() instead. + // + // Result: + // * Go(fyne.Layout) "layout-max-layout": { Doc: "layout.NewMaxLayout", Argsn: 0, @@ -157639,6 +187021,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-padded-layout creates a new PaddedLayout instance + // + // Since: 1.4 + // + // Result: + // * Go(fyne.Layout) "layout-padded-layout": { Doc: "layout.NewPaddedLayout", Argsn: 0, @@ -157649,6 +187037,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-spacer returns a spacer object which can fill vertical and horizontal + // space. This is primarily used with a box layout. + // + // Result: + // * Go(fyne.CanvasObject) "layout-spacer": { Doc: "layout.NewSpacer", Argsn: 0, @@ -157659,6 +187052,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-stack-layout returns a new StackLayout instance. Objects are stacked + // on top of each other with later objects on top of those before. + // Having only a single object has no impact as CanvasObjects will + // fill the available space even without a Stack. + // + // Since: 2.4 + // + // Result: + // * Go(fyne.Layout) "layout-stack-layout": { Doc: "layout.NewStackLayout", Argsn: 0, @@ -157669,6 +187071,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // layout-v-box-layout returns a vertical box layout for stacking a number of child + // canvas objects or widgets top to bottom. The objects are always displayed + // at their vertical MinSize. Use a different layout if the objects are intended + // to be larger than their vertical MinSize. + // + // Result: + // * Go(fyne.Layout) "layout-v-box-layout": { Doc: "layout.NewVBoxLayout", Argsn: 0, @@ -157679,6 +187088,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * integer "mobile-default-keyboard": { Doc: "Get mobile.DefaultKeyboard value", Argsn: 0, @@ -157688,6 +187099,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "mobile-key-back": { Doc: "Get mobile.KeyBack value", Argsn: 0, @@ -157707,6 +187120,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "mobile-number-keyboard": { Doc: "Get mobile.NumberKeyboard value", Argsn: 0, @@ -157716,6 +187131,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "mobile-password-keyboard": { Doc: "Get mobile.PasswordKeyboard value", Argsn: 0, @@ -157725,6 +187142,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "mobile-single-line-keyboard": { Doc: "Get mobile.SingleLineKeyboard value", Argsn: 0, @@ -157734,6 +187153,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // playground-software-canvas creates a new canvas in memory that can render without hardware support + // + // Result: + // * Go(test.WindowlessCanvas) "playground-software-canvas": { Doc: "playground.NewSoftwareCanvas", Argsn: 0, @@ -157744,6 +187167,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // playground-render takes a canvasobject and converts it into an inline image for showing in the playground + // + // Args: + // * obj - Go(fyne.CanvasObject) "playground-render": { Doc: "playground.Render", Argsn: 1, @@ -157778,6 +187205,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // playground-render-canvas takes a canvas and converts it into an inline image for showing in the playground + // + // Args: + // * c - Go(fyne.Canvas) "playground-render-canvas": { Doc: "playground.RenderCanvas", Argsn: 1, @@ -157812,6 +187243,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // playground-render-window takes a window and converts it's canvas into an inline image for showing in the playground + // + // Args: + // * w - Go(fyne.Window) "playground-render-window": { Doc: "playground.RenderWindow", Argsn: 1, @@ -157846,6 +187281,20 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // repository-for-scheme returns the Repository instance which is registered to handle URIs + // of the given scheme. + // + // NOTE: this function is intended to be used specifically by the storage + // package. It generally should not be used outside of the fyne package - + // instead you should use the methods in the storage package. + // + // Since: 2.0 + // + // Args: + // * scheme - string + // Result: + // * Go(repository.Repository) + // * error "repository-for-scheme": { Doc: "repository.ForScheme", Argsn: 1, @@ -157871,6 +187320,21 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // repository-for-uri returns the Repository instance which is registered to handle URIs of + // the given scheme. This is a helper method that calls ForScheme() on the + // scheme of the given URI. + // + // NOTE: this function is intended to be used specifically by the storage + // package. It generally should not be used outside of the fyne package - + // instead you should use the methods in the storage package. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * Go(repository.Repository) + // * error "repository-for-uri": { Doc: "repository.ForURI", Argsn: 1, @@ -157915,6 +187379,23 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // repository-generic-child can be used as a common-case implementation of + // HierarchicalRepository.Child(). It will create a child URI by separating the + // URI into it's component parts as described in IETF RFC 3986, then appending + // "/" + component to the path, then concatenating the result and parsing it as + // a new URI. + // + // NOTE: this function should not be called except by an implementation of + // the Repository interface - using this for unknown URIs may break. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // * component - string + // Result: + // * Go(fyne.URI) + // * error "repository-generic-child": { Doc: "repository.GenericChild", Argsn: 2, @@ -157966,6 +187447,24 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // repository-generic-copy can be used a common-case implementation of + // CopyableRepository.Copy(). It will perform the copy by obtaining a reader + // for the source URI, a writer for the destination URI, then writing the + // contents of the source to the destination. + // + // For obvious reasons, the destination URI must have a registered + // WritableRepository. + // + // NOTE: this function should not be called except by an implementation of + // the Repository interface - using this for unknown URIs may break. + // + // Since: 2.0 + // + // Args: + // * source - Go(fyne.URI) + // * destination - Go(fyne.URI) + // Result: + // * error "repository-generic-copy": { Doc: "repository.GenericCopy", Argsn: 2, @@ -158034,6 +187533,24 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // repository-generic-move can be used a common-case implementation of + // MovableRepository.Move(). It will perform the move by obtaining a reader + // for the source URI, a writer for the destination URI, then writing the + // contents of the source to the destination. Following this, the source + // will be deleted using WritableRepository.Delete. + // + // For obvious reasons, the source and destination URIs must both be writable. + // + // NOTE: this function should not be called except by an implementation of + // the Repository interface - using this for unknown URIs may break. + // + // Since: 2.0 + // + // Args: + // * source - Go(fyne.URI) + // * destination - Go(fyne.URI) + // Result: + // * error "repository-generic-move": { Doc: "repository.GenericMove", Argsn: 2, @@ -158102,6 +187619,27 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // repository-generic-parent can be used as a common-case implementation of + // HierarchicalRepository.Parent(). It will create a parent URI based on + // IETF RFC3986. + // + // In short, the URI is separated into it's component parts, the path component + // is split along instances of '/', and the trailing element is removed. The + // result is concatenated and parsed as a new URI. + // + // If the URI path is empty or '/', then a nil URI is returned, along with + // ErrURIRoot. + // + // NOTE: this function should not be called except by an implementation of + // the Repository interface - using this for unknown URIs may break. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URI) + // * error "repository-generic-parent": { Doc: "repository.GenericParent", Argsn: 1, @@ -158146,6 +187684,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // repository-file-uri implements the back-end logic to storage.repository-file-uri, which you + // should use instead. This is only here because other functions in repository + // need to call it, and it prevents a circular import. + // + // Since: 2.0 + // + // Args: + // * path - string + // Result: + // * Go(fyne.URI) "repository-file-uri": { Doc: "repository.NewFileURI", Argsn: 1, @@ -158163,6 +187711,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // repository-parse-uri implements the back-end logic for storage.repository-parse-uri, which you + // should use instead. This is only here because other functions in repository + // need to call it, and it prevents a circular import. + // + // Since: 2.0 + // + // Args: + // * s - string + // Result: + // * Go(fyne.URI) + // * error "repository-parse-uri": { Doc: "repository.ParseURI", Argsn: 1, @@ -158188,6 +187747,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // repository-register registers a storage repository so that operations on URIs of the + // registered scheme will use methods implemented by the relevant repository + // implementation. + // + // Since: 2.0 + // + // Args: + // * scheme - string + // * repository - Go(repository.Repository) "repository-register": { Doc: "repository.Register", Argsn: 2, @@ -158229,6 +187797,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // software-canvas creates a new canvas in memory that can render without hardware support. + // + // Result: + // * Go(test.WindowlessCanvas) "software-canvas": { Doc: "software.NewCanvas", Argsn: 0, @@ -158239,6 +187811,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // software-transparent-canvas creates a new canvas in memory that can render without hardware support without a background color. + // + // Since: 2.2 + // + // Result: + // * Go(test.WindowlessCanvas) "software-transparent-canvas": { Doc: "software.NewTransparentCanvas", Argsn: 0, @@ -158249,6 +187827,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // software-render takes a canvas object and renders it to a regular Go image using the provided Theme. + // The returned image will be set to the object's minimum size. + // Use the theme.LightTheme() or theme.DarkTheme() to access the builtin themes. + // + // Args: + // * obj - Go(fyne.CanvasObject) + // * t - Go(fyne.Theme) + // Result: + // * Go(image.Image) "software-render": { Doc: "software.Render", Argsn: 2, @@ -158311,6 +187898,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // software-render-canvas takes a canvas and renders it to a regular Go image using the provided Theme. + // This is the same as setting the application theme and then calling Canvas.Capture(). + // + // Args: + // * c - Go(fyne.Canvas) + // * t - Go(fyne.Theme) + // Result: + // * Go(image.Image) "software-render-canvas": { Doc: "software.RenderCanvas", Argsn: 2, @@ -158373,6 +187968,34 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-can-list will determine if the URI is listable or not. + // + // This method may fail in several ways: + // + // - Different permissions or credentials are required to check if the + // URI supports listing. + // + // - This URI scheme could represent some resources that can be listed, + // but this specific URI is not one of them (e.g. a file on a + // filesystem, as opposed to a directory). + // + // - Checking for listability depended on a lower level operation + // such as network or filesystem access that has failed in some way. + // + // - If the scheme of the given URI does not have a registered + // ListableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-can-list is backed by the repository system - this function calls into a + // scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "storage-can-list": { Doc: "storage.CanList", Argsn: 1, @@ -158417,6 +188040,29 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-can-read determines if a given URI could be written to using the Reader() + // method. It is preferred to check if a URI is readable using this method + // before calling Reader(), because the underlying operations required to + // attempt to read and then report an error may be slower than the operations + // needed to test if a URI is readable. Keep in mind however that even if + // storage-can-read returns true, you must still do appropriate error handling for + // Reader(), as the underlying filesystem may have changed since you called + // storage-can-read. + // + // The non-existence of a resource should not be treated as an error. In other + // words, a Repository implementation which for some URI u returns false, nil + // for Exists(u), storage-can-read(u) should also return false, nil. + // + // storage-can-read is backed by the repository system - this function calls into a + // scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "storage-can-read": { Doc: "storage.CanRead", Argsn: 1, @@ -158461,6 +188107,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-can-write is backed by the repository system - this function calls into a + // scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "storage-can-write": { Doc: "storage.CanWrite", Argsn: 1, @@ -158505,6 +188161,38 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-child returns a URI referencing a resource nested hierarchically below the + // given URI, identified by a string. For example, the child with the string + // component 'quux' of 'file://foo/bar' is 'file://foo/bar/quux'. + // + // This can fail in several ways: + // + // - If the URI refers to a resource which does not exist in a hierarchical + // context (e.g. the URI references something which does not have a + // semantically meaningful "child"), the storage-child() implementation may return an + // error. + // + // - If generating a reference to a child of the referenced resource requires + // interfacing with some external system, failures may propagate through the + // storage-child() implementation. It is expected that this case would occur very + // rarely if ever. + // + // - If the scheme of the given URI does not have a registered + // HierarchicalRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // NOTE: since v2.0.0, storage-child() is backed by the repository system - this + // function is a helper which calls into an appropriate repository instance for + // the scheme of the URI it is given. + // + // Since: 1.4 + // + // Args: + // * u - Go(fyne.URI) + // * component - string + // Result: + // * Go(fyne.URI) + // * error "storage-child": { Doc: "storage.Child", Argsn: 2, @@ -158556,6 +188244,42 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-copy given two URIs, 'src', and 'dest' both of the same scheme, will copy + // one to the other. If the source and destination are of different schemes, + // then the storage-copy implementation for the storage repository registered to the + // scheme of the source will be used. Implementations are recommended to use + // repository.Genericstorage-copy() as a fail-over in the case that they do not + // understand how to operate on the scheme of the destination URI. However, the + // behavior of calling storage-copy() on URIs of non-matching schemes is ultimately + // defined by the storage repository registered to the scheme of the source + // URI. + // + // This method may fail in several ways: + // + // - Different permissions or credentials are required to perform the + // copy operation. + // + // - This URI scheme could represent some resources that can be copied, + // but either the source, destination, or both are not resources + // that support copying. + // + // - Performing the copy operation depended on a lower level operation + // such as network or filesystem access that has failed in some way. + // + // - If the scheme of the given URI does not have a registered + // storage-copyableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-copy is backed by the repository system - this function calls into a + // scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * source - Go(fyne.URI) + // * destination - Go(fyne.URI) + // Result: + // * error "storage-copy": { Doc: "storage.Copy", Argsn: 2, @@ -158624,6 +188348,48 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // storage-create-listable creates a new listable resource referenced by the given URI. + // storage-create-listable will error if the URI already references an extant resource. + // This method is used for storage repositories where listable resources are of + // a different underlying type than other resources - for example, in a typical + // filesystem ('file://'), storage-create-listable() corresponds to directory creation, + // and Writer() implies file creation for non-extant operands. + // + // For storage repositories where listable and non-listable resources are the + // of the same underlying type, storage-create-listable should be equivalent to calling + // Writer(), writing zero bytes, and then closing the `URIWriteCloser - in + // filesystem terms, the same as calling 'touch;'. + // + // Storage repositories which support listing, but not creation of listable + // objects may return repository.ErrOperationNotSupported. + // + // storage-create-listable should generally fail if the parent of it's operand does not + // exist, however this can vary by the implementation details of the specific + // storage repository. In filesystem terms, this function is "mkdir" not "mkdir + // -p". + // + // This method may fail in several ways: + // + // - Different permissions or credentials are required to create the requested + // resource. + // + // - Creating the resource depended on a lower level operation such as network + // or filesystem access that has failed in some way. + // + // - If the scheme of the given URI does not have a registered + // ListableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-create-listable is backed by the repository system - this function either + // calls into a scheme-specific implementation from a registered repository, or + // fails with a URIOperationNotSupported error. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * error "storage-create-listable": { Doc: "storage.CreateListable", Argsn: 1, @@ -158666,6 +188432,31 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // storage-delete destroys, deletes, or otherwise removes the resource referenced + // by the URI. + // + // This can fail in several ways: + // + // - If removing the resource requires interfacing with some external system, + // failures may propagate through Destroy(). For example, deleting a file may + // fail with a permissions error. + // + // - If the referenced resource does not exist, attempting to destroy it should + // throw an error. + // + // - If the scheme of the given URI does not have a registered + // WritableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-delete is backed by the repository system - this function calls + // into a scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * error "storage-delete": { Doc: "storage.Delete", Argsn: 1, @@ -158708,6 +188499,32 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // storage-exists determines if the resource referenced by the URI exists. + // + // This can fail in several ways: + // + // - If checking the existence of a resource requires interfacing with some + // external system, then failures may propagate through storage-exists(). For + // example, checking the existence of a resource requires reading a directory + // may result in a permissions error. + // + // It is understood that a non-nil error value signals that the existence or + // non-existence of the resource cannot be determined and is undefined. + // + // NOTE: since v2.0.0, storage-exists is backed by the repository system - this function + // calls into a scheme-specific implementation from a registered repository. + // + // storage-exists may call into either a generic implementation, or into a + // scheme-specific implementation depending on which storage repositories have + // been registered. + // + // Since: 1.4 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * bool + // * error "storage-exists": { Doc: "storage.Exists", Argsn: 1, @@ -158752,6 +188569,38 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-list returns a list of URIs that reference resources which are nested below + // the resource referenced by the argument. For example, listing a directory on + // a filesystem should return a list of files and directories it contains. + // + // This method may fail in several ways: + // + // - Different permissions or credentials are required to obtain a + // listing for the given URI. + // + // - This URI scheme could represent some resources that can be listed, + // but this specific URI is not one of them (e.g. a file on a + // filesystem, as opposed to a directory). This can be tested in advance + // using the storage-listable() function. + // + // - Obtaining the listing depended on a lower level operation such as + // network or filesystem access that has failed in some way. + // + // - If the scheme of the given URI does not have a registered + // storage-listableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-list is backed by the repository system - this function either calls into a + // scheme-specific implementation from a registered repository, or fails with a + // URIOperationNotSupported error. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * block[Go(fyne.URI)] + // * error "storage-list": { Doc: "storage.List", Argsn: 1, @@ -158802,6 +188651,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-lister-for-uri will attempt to use the application's driver to convert a + // standard URI into a listable URI. + // + // Since: 1.4 + // + // Args: + // * uri - Go(fyne.URI) + // Result: + // * Go(fyne.ListableURI) + // * error "storage-lister-for-uri": { Doc: "storage.ListerForURI", Argsn: 1, @@ -158846,6 +188705,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-load-resource-from-uri creates a new StaticResource in memory using the contents of the specified URI. + // The URI will be opened using the current driver, so valid schemas will vary from platform to platform. + // The file:// schema will always work. + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.Resource) + // * error "storage-load-resource-from-uri": { Doc: "storage.LoadResourceFromURI", Argsn: 1, @@ -158890,6 +188758,46 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-move returns a method that given two URIs, 'src' and 'dest' both of the same + // scheme this will move src to dest. This means the resource referenced by + // src will be copied into the resource referenced by dest, and the resource + // referenced by src will no longer exist after the operation is complete. + // + // If the source and destination are of different schemes, then the storage-move + // implementation for the storage repository registered to the scheme of the + // source will be used. Implementations are recommended to use + // repository.Genericstorage-move() as a fail-over in the case that they do not + // understand how to operate on the scheme of the destination URI. However, the + // behavior of calling storage-move() on URIs of non-matching schemes is ultimately + // defined by the storage repository registered to the scheme of the source + // URI. + // + // This method may fail in several ways: + // + // - Different permissions or credentials are required to perform the + // rename operation. + // + // - This URI scheme could represent some resources that can be renamed, + // but either the source, destination, or both are not resources + // that support renaming. + // + // - Performing the rename operation depended on a lower level operation + // such as network or filesystem access that has failed in some way. + // + // - If the scheme of the given URI does not have a registered + // MovableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-move is backed by the repository system - this function calls into a + // scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * source - Go(fyne.URI) + // * destination - Go(fyne.URI) + // Result: + // * error "storage-move": { Doc: "storage.Move", Argsn: 2, @@ -158958,6 +188866,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // storage-extension-file-filter takes a string slice of extensions with a leading . and creates a filter for the file dialog. + // Example: .jpg, .mp3, .txt, .sh + // + // Args: + // * extensions - block[string] + // Result: + // * Go(storage.FileFilter) "storage-extension-file-filter": { Doc: "storage.NewExtensionFileFilter", Argsn: 1, @@ -158967,8 +188882,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("storage-extension-file-filter: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -158990,6 +188906,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-file-uri creates a new URI from the given file path. + // + // Args: + // * path - string + // Result: + // * Go(fyne.URI) "storage-file-uri": { Doc: "storage.NewFileURI", Argsn: 1, @@ -159007,6 +188929,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-mime-type-file-filter takes a string slice of mimetypes, including globs, and creates a filter for the file dialog. + // Example: image/*, audio/mp3, text/plain, application/* + // + // Args: + // * mime-types - block[string] + // Result: + // * Go(storage.FileFilter) "storage-mime-type-file-filter": { Doc: "storage.NewMimeTypeFileFilter", Argsn: 1, @@ -159016,8 +188945,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("storage-mime-type-file-filter: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -159039,6 +188969,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-uri creates a new URI from the given string representation. This could be + // a URI from an external source or one saved from URI.String() + // + // Deprecated: use ParseURI instead + // + // Args: + // * s - string + // Result: + // * Go(fyne.URI) "storage-uri": { Doc: "storage.NewURI", Argsn: 1, @@ -159056,6 +188995,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-open-file-from-uri loads a file read stream from a resource identifier. + // This is mostly provided so that file references can be saved using their URI and loaded again later. + // + // Deprecated: this has been replaced by storage.Reader(URI) + // + // Args: + // * uri - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "storage-open-file-from-uri": { Doc: "storage.OpenFileFromURI", Argsn: 1, @@ -159100,6 +189049,44 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-parent returns a URI referencing the parent resource of the resource + // referenced by the URI. For example, the storage-parent() of 'file://foo/bar.baz' is + // 'file://foo'. The URI which is returned will be listable. + // + // NOTE: it is not a given that storage-parent() return a parent URI with the same + // Scheme(), though this will normally be the case. + // + // This can fail in several ways: + // + // - If the URI refers to a filesystem root, then the storage-parent() implementation + // must return (nil, URIRootError). + // + // - If the URI refers to a resource which does not exist in a hierarchical + // context (e.g. the URI references something which does not have a + // semantically meaningful "parent"), the storage-parent() implementation may return + // an error. + // + // - If determining the parent of the referenced resource requires + // interfacing with some external system, failures may propagate + // through the storage-parent() implementation. For example if determining + // the parent of a file:// URI requires reading information from + // the filesystem, it could fail with a permission error. + // + // - If the scheme of the given URI does not have a registered + // HierarchicalRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // NOTE: since v2.0.0, storage-parent() is backed by the repository system - this + // function is a helper which calls into an appropriate repository instance for + // the scheme of the URI it is given. + // + // Since: 1.4 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URI) + // * error "storage-parent": { Doc: "storage.Parent", Argsn: 1, @@ -159144,6 +189131,24 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-parse-uri creates a new URI instance by parsing a URI string. + // + // Parse URI will parse up to the first ':' present in the URI string to + // extract the scheme, and then delegate further parsing to the registered + // repository for the given scheme. If no repository is registered for that + // scheme, the URI is parsed on a best-effort basis using net/url. + // + // As a special exception, URIs beginning with 'file:' are always parsed using + // NewFileURI(), which will correctly handle back-slashes appearing in the URI + // path component on Windows. + // + // Since: 2.0 + // + // Args: + // * s - string + // Result: + // * Go(fyne.URI) + // * error "storage-parse-uri": { Doc: "storage.ParseURI", Argsn: 1, @@ -159169,6 +189174,32 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-reader returns URIReadCloser set up to read from the resource that the + // URI references. + // + // This method can fail in several ways: + // + // - Different permissions or credentials are required to read the + // referenced resource. + // + // - This URI scheme could represent some resources that can be read, + // but this particular URI references a resources that is not + // something that can be read. + // + // - Attempting to set up the reader depended on a lower level + // operation such as a network or filesystem access that has failed + // in some way. + // + // storage-reader is backed by the repository system - this function calls + // into a scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIReadCloser) + // * error "storage-reader": { Doc: "storage.Reader", Argsn: 1, @@ -159213,6 +189244,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-save-file-to-uri loads a file write stream to a resource identifier. + // This is mostly provided so that file references can be saved using their URI and written to again later. + // + // Deprecated: this has been replaced by storage.Writer(URI) + // + // Args: + // * uri - Go(fyne.URI) + // Result: + // * Go(fyne.URIWriteCloser) + // * error "storage-save-file-to-uri": { Doc: "storage.SaveFileToURI", Argsn: 1, @@ -159257,6 +189298,42 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // storage-writer returns URIWriteCloser set up to write to the resource that the + // URI references. + // + // Writing to a non-extant resource should create that resource if possible + // (and if not possible, this should be reflected in the return of CanWrite()). + // Writing to an extant resource should overwrite it in-place. At present, this + // API does not provide a mechanism for appending to an already-extant + // resource, except for reading it in and writing all the data back out. + // + // This method can fail in several ways: + // + // - Different permissions or credentials are required to write to the + // referenced resource. + // + // - This URI scheme could represent some resources that can be + // written, but this particular URI references a resources that is + // not something that can be written. + // + // - Attempting to set up the writer depended on a lower level + // operation such as a network or filesystem access that has failed + // in some way. + // + // - If the scheme of the given URI does not have a registered + // WritableRepository instance, then this method will fail with a + // repository.ErrOperationNotSupported. + // + // storage-writer is backed by the repository system - this function calls into a + // scheme-specific implementation from a registered repository. + // + // Since: 2.0 + // + // Args: + // * u - Go(fyne.URI) + // Result: + // * Go(fyne.URIWriteCloser) + // * error "storage-writer": { Doc: "storage.Writer", Argsn: 1, @@ -159301,6 +189378,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-apply-theme sets the given theme and waits for it to be applied to the current app. + // + // Args: + // * t - *Go(testing.T) + // * theme - Go(fyne.Theme) "test-apply-theme": { Doc: "test.ApplyTheme", Argsn: 2, @@ -159354,6 +189436,80 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-assert-all-color-names-defined asserts that all known color names are defined for the given theme. + // + // Args: + // * t - *Go(testing.T) + // * th - Go(fyne.Theme) + // * theme-name - string + "test-assert-all-color-names-defined": { + Doc: "test.AssertAllColorNamesDefined", + Argsn: 3, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *testing.T + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*testing.T); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 1: " + "expected native of type *testing.T, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Theme + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Theme(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Theme); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 2: " + "expected native of type fyne.Theme, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg2Val string + if vc, ok := arg2.(env.String); ok { + arg2Val = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("test-assert-all-color-names-defined: arg 3: " + "expected string, but got " + objectDebugString(ps.Idx, arg2)) + } + test.AssertAllColorNamesDefined(arg0Val, arg1Val, arg2Val) + return nil + }, + }, + // test-assert-canvas-tappable-at asserts that the canvas is tappable at the given position. + // + // Args: + // * t - *Go(testing.T) + // * c - Go(fyne.Canvas) + // * pos - Go(fyne.Position) + // Result: + // * bool "test-assert-canvas-tappable-at": { Doc: "test.AssertCanvasTappableAt", Argsn: 3, @@ -159422,6 +189578,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-assert-image-matches asserts that the given image is the same as the one stored in the master file. + // The master filename is relative to the `testdata` directory which is relative to the test. + // The test `t` fails if the given image is not equal to the loaded master image. + // In this case the given image is written into a file in `testdata/failed/` (relative to the test). + // This path is also reported, thus the file can be used as new master. + // + // Args: + // * t - *Go(testing.T) + // * master-filename - string + // * img - Go(image.Image) + // * msg-and-args - block[Go(any)] + // Result: + // * bool "test-assert-image-matches": { Doc: "test.AssertImageMatches", Argsn: 4, @@ -159465,18 +189634,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("test-assert-image-matches: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg3Val []interface{} + var arg3Val []any switch v := arg3.(type) { case env.Block: - arg3Val = make([]interface{}, len(v.Series.S)) + arg3Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg3Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg3Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("test-assert-image-matches: arg 4: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("test-assert-image-matches: arg 4: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -159499,6 +189669,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-assert-notification-sent allows an app developer to assert that a notification was sent. + // After the content of f has executed this utility will check that the specified notification was sent. + // + // Args: + // * t - *Go(testing.T) + // * n - Go(*fyne.Notification) + // * f - fn { } "test-assert-notification-sent": { Doc: "test.AssertNotificationSent", Argsn: 3, @@ -159567,6 +189744,22 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-assert-object-renders-to-image asserts that the given `CanvasObject` renders the same image as the one stored in the master file. + // The theme used is the standard test theme which may look different to how it shows on your device. + // The master filename is relative to the `testdata` directory which is relative to the test. + // The test `t` fails if the given image is not equal to the loaded master image. + // In this case the given image is written into a file in `testdata/failed/` (relative to the test). + // This path is also reported, thus the file can be used as new master. + // + // Since 2.3 + // + // Args: + // * t - *Go(testing.T) + // * master-filename - string + // * o - Go(fyne.CanvasObject) + // * msg-and-args - block[Go(any)] + // Result: + // * bool "test-assert-object-renders-to-image": { Doc: "test.AssertObjectRendersToImage", Argsn: 4, @@ -159623,18 +189816,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("test-assert-object-renders-to-image: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg3Val []interface{} + var arg3Val []any switch v := arg3.(type) { case env.Block: - arg3Val = make([]interface{}, len(v.Series.S)) + arg3Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg3Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg3Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("test-assert-object-renders-to-image: arg 4: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("test-assert-object-renders-to-image: arg 4: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -159657,6 +189851,26 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-assert-object-renders-to-markup asserts that the given `CanvasObject` renders the same markup as the one stored in the master file. + // The master filename is relative to the `testdata` directory which is relative to the test. + // The test `t` fails if the rendered markup is not equal to the loaded master markup. + // In this case the rendered markup is written into a file in `testdata/failed/` (relative to the test). + // This path is also reported, thus the file can be used as new master. + // + // Be aware, that the indentation has to use tab characters ('\t') instead of spaces. + // Every element starts on a new line indented one more than its parent. + // Closing elements stand on their own line, too, using the same indentation as the opening element. + // The only exception to this are text elements which do not contain line breaks unless the text includes them. + // + // Since 2.3 + // + // Args: + // * t - *Go(testing.T) + // * master-filename - string + // * o - Go(fyne.CanvasObject) + // * msg-and-args - block[Go(any)] + // Result: + // * bool "test-assert-object-renders-to-markup": { Doc: "test.AssertObjectRendersToMarkup", Argsn: 4, @@ -159713,18 +189927,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("test-assert-object-renders-to-markup: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg3Val []interface{} + var arg3Val []any switch v := arg3.(type) { case env.Block: - arg3Val = make([]interface{}, len(v.Series.S)) + arg3Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg3Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg3Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("test-assert-object-renders-to-markup: arg 4: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("test-assert-object-renders-to-markup: arg 4: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -159747,6 +189962,21 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-assert-renders-to-image asserts that the given canvas renders the same image as the one stored in the master file. + // The master filename is relative to the `testdata` directory which is relative to the test. + // The test `t` fails if the given image is not equal to the loaded master image. + // In this case the given image is written into a file in `testdata/failed/` (relative to the test). + // This path is also reported, thus the file can be used as new master. + // + // Since 2.3 + // + // Args: + // * t - *Go(testing.T) + // * master-filename - string + // * c - Go(fyne.Canvas) + // * msg-and-args - block[Go(any)] + // Result: + // * bool "test-assert-renders-to-image": { Doc: "test.AssertRendersToImage", Argsn: 4, @@ -159803,18 +190033,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("test-assert-renders-to-image: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg3Val []interface{} + var arg3Val []any switch v := arg3.(type) { case env.Block: - arg3Val = make([]interface{}, len(v.Series.S)) + arg3Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg3Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg3Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("test-assert-renders-to-image: arg 4: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("test-assert-renders-to-image: arg 4: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -159837,6 +190068,26 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-assert-renders-to-markup asserts that the given canvas renders the same markup as the one stored in the master file. + // The master filename is relative to the `testdata` directory which is relative to the test. + // The test `t` fails if the rendered markup is not equal to the loaded master markup. + // In this case the rendered markup is written into a file in `testdata/failed/` (relative to the test). + // This path is also reported, thus the file can be used as new master. + // + // Be aware, that the indentation has to use tab characters ('\t') instead of spaces. + // Every element starts on a new line indented one more than its parent. + // Closing elements stand on their own line, too, using the same indentation as the opening element. + // The only exception to this are text elements which do not contain line breaks unless the text includes them. + // + // Since: 2.0 + // + // Args: + // * t - *Go(testing.T) + // * master-filename - string + // * c - Go(fyne.Canvas) + // * msg-and-args - block[Go(any)] + // Result: + // * bool "test-assert-renders-to-markup": { Doc: "test.AssertRendersToMarkup", Argsn: 4, @@ -159893,18 +190144,19 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("test-assert-renders-to-markup: arg 3: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } - var arg3Val []interface{} + var arg3Val []any switch v := arg3.(type) { case env.Block: - arg3Val = make([]interface{}, len(v.Series.S)) + arg3Val = make([]any, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg3Val[i] switch v := it.(type) { case env.Native: - if vc, ok := v.Value.(interface{}); ok { - arg3Val[i] = vc + if vc, ok := v.Value.(any); ok { + (*iv) = vc } else { ps.FailureFlag = true - return env.NewError("test-assert-renders-to-markup: arg 4: " + "block item: " + "expected native of type interface{}, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("test-assert-renders-to-markup: arg 4: " + "block item: " + "expected native of type any, but got " + objectDebugString(ps.Idx, v)) } default: ps.FailureFlag = true @@ -159927,6 +190179,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-canvas returns a reusable in-memory canvas used for testing + // + // Result: + // * Go(fyne.test-canvas) "test-canvas": { Doc: "test.Canvas", Argsn: 0, @@ -159937,6 +190193,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-double-tap simulates a double left mouse click on the specified object. + // + // Args: + // * obj - Go(fyne.test-double-tappable) "test-double-tap": { Doc: "test.DoubleTap", Argsn: 1, @@ -159971,6 +190231,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-drag drags at an absolute position on the canvas. + // deltaX/Y is the dragging distance: <0 for dragging up/left, >0 for dragging down/right. + // + // Args: + // * c - Go(fyne.Canvas) + // * pos - Go(fyne.Position) + // * delta-x - decimal + // * delta-y - decimal "test-drag": { Doc: "test.Drag", Argsn: 4, @@ -160032,6 +190300,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-focus-next focuses the next focusable on the canvas. + // + // Args: + // * c - Go(fyne.Canvas) "test-focus-next": { Doc: "test.FocusNext", Argsn: 1, @@ -160066,6 +190338,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-focus-previous focuses the previous focusable on the canvas. + // + // Args: + // * c - Go(fyne.Canvas) "test-focus-previous": { Doc: "test.FocusPrevious", Argsn: 1, @@ -160100,6 +190376,34 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-known-theme-variants returns the known theme variants mapped by a descriptive key. + // + // Result: + // * dict[string, integer] + "test-known-theme-variants": { + Doc: "test.KnownThemeVariants", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := test.KnownThemeVariants() + var res0Obj env.Object + { + data := make(map[string]any, len(res0)) + for mKey, mVal := range res0 { + var dVal env.Object + dVal = *env.NewInteger(int64(uint(mVal))) + data[mKey] = dVal + } + res0Obj = *env.NewDict(data) + } + return res0Obj + }, + }, + // test-laid-out-objects returns all fyne.CanvasObject starting at the given fyne.CanvasObject which is laid out previously. + // + // Args: + // * o - Go(fyne.CanvasObject) + // Result: + // * block[Go(fyne.CanvasObject)] "test-laid-out-objects": { Doc: "test.LaidOutObjects", Argsn: 1, @@ -160142,6 +190446,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-move-mouse simulates a mouse movement to the given position. + // + // Args: + // * c - Go(fyne.Canvas) + // * pos - Go(fyne.Position) "test-move-mouse": { Doc: "test.MoveMouse", Argsn: 2, @@ -160189,6 +190498,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-app returns a new dummy app used for testing. + // It loads a test driver which creates a virtual window in memory for testing. + // + // Result: + // * Go(fyne.App) "test-app": { Doc: "test.NewApp", Argsn: 0, @@ -160199,6 +190513,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-canvas-1 returns a single use in-memory canvas used for testing. + // This canvas has no painter so calls to Capture() will return a blank image. + // + // Result: + // * Go(test.WindowlessCanvas) "test-canvas-1": { Doc: "test.NewCanvas", Argsn: 0, @@ -160209,6 +190528,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-canvas-with-painter allows creation of an in-memory canvas with a specific painter. + // The painter will be used to render in the Capture() call. + // + // Args: + // * painter - Go(test.SoftwarePainter) + // Result: + // * Go(test.WindowlessCanvas) "test-canvas-with-painter": { Doc: "test.NewCanvasWithPainter", Argsn: 1, @@ -160245,6 +190571,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-clipboard returns a single use in-memory clipboard used for testing + // + // Result: + // * Go(fyne.Clipboard) "test-clipboard": { Doc: "test.NewClipboard", Argsn: 0, @@ -160255,6 +190585,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-driver sets up and registers a new dummy driver for test purpose + // + // Result: + // * Go(fyne.Driver) "test-driver": { Doc: "test.NewDriver", Argsn: 0, @@ -160265,6 +190599,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-driver-with-painter creates a new dummy driver that will pass the given + // painter to all canvases created + // + // Args: + // * painter - Go(test.SoftwarePainter) + // Result: + // * Go(fyne.Driver) "test-driver-with-painter": { Doc: "test.NewDriverWithPainter", Argsn: 1, @@ -160301,6 +190642,100 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-temp-app returns a new dummy app and tears it down at the end of the test. + // + // Since: 2.5 + // + // Args: + // * t - Go(testing.TB) + // Result: + // * Go(fyne.App) + "test-temp-app": { + Doc: "test.NewTempApp", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val testing.TB + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(testing.TB); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-temp-app: arg 1: " + "expected native of type testing.TB, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("test-temp-app: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := test.NewTempApp(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.App)") + return res0Obj + }, + }, + // test-temp-window creates and registers a new window for test purposes. + // This window will get removed automatically once the running test ends. + // + // Since: 2.5 + // + // Args: + // * t - Go(testing.TB) + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Window) + "test-temp-window": { + Doc: "test.NewTempWindow", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val testing.TB + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(testing.TB); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-temp-window: arg 1: " + "expected native of type testing.TB, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("test-temp-window: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.CanvasObject + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("test-temp-window: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-temp-window: arg 2: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("test-temp-window: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("test-temp-window: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := test.NewTempWindow(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Window)") + return res0Obj + }, + }, + // test-theme returns a new test theme using quiet ugly colors. + // + // Result: + // * Go(fyne.Theme) "test-theme": { Doc: "test.NewTheme", Argsn: 0, @@ -160311,6 +190746,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-transparent-canvas-with-painter allows creation of an in-memory canvas with a specific painter without a background color. + // The painter will be used to render in the Capture() call. + // + // Since: 2.2 + // + // Args: + // * painter - Go(test.SoftwarePainter) + // Result: + // * Go(test.WindowlessCanvas) "test-transparent-canvas-with-painter": { Doc: "test.NewTransparentCanvasWithPainter", Argsn: 1, @@ -160347,6 +190791,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-window creates and registers a new window for test purposes + // + // Args: + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Window) "test-window": { Doc: "test.NewWindow", Argsn: 1, @@ -160383,6 +190833,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-scroll scrolls at an absolute position on the canvas. + // deltaX/Y is the scrolling distance: <0 for scrolling up/left, >0 for scrolling down/right. + // + // Args: + // * c - Go(fyne.Canvas) + // * pos - Go(fyne.Position) + // * delta-x - decimal + // * delta-y - decimal "test-scroll": { Doc: "test.Scroll", Argsn: 4, @@ -160444,6 +190902,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-tap simulates a left mouse click on the specified object. + // + // Args: + // * obj - Go(fyne.test-tappable) "test-tap": { Doc: "test.Tap", Argsn: 1, @@ -160478,6 +190940,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-tap-at simulates a left mouse click on the passed object at a specified place within it. + // + // Args: + // * obj - Go(fyne.Tappable) + // * pos - Go(fyne.Position) "test-tap-at": { Doc: "test.TapAt", Argsn: 2, @@ -160525,6 +190992,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-tap-canvas taps at an absolute position on the canvas. + // + // Args: + // * c - Go(fyne.Canvas) + // * pos - Go(fyne.Position) "test-tap-canvas": { Doc: "test.TapCanvas", Argsn: 2, @@ -160572,6 +191044,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-tap-secondary simulates a right mouse click on the specified object. + // + // Args: + // * obj - Go(fyne.SecondaryTappable) "test-tap-secondary": { Doc: "test.TapSecondary", Argsn: 1, @@ -160606,6 +191082,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-tap-secondary-at simulates a right mouse click on the passed object at a specified place within it. + // + // Args: + // * obj - Go(fyne.SecondaryTappable) + // * pos - Go(fyne.Position) "test-tap-secondary-at": { Doc: "test.TapSecondaryAt", Argsn: 2, @@ -160653,6 +191134,76 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-temp-widget-renderer allows test scripts to gain access to the current renderer for a widget. + // This can be used for verifying correctness of rendered components for a widget in unit tests. + // The widget renderer is automatically destroyed when the test ends. + // + // Since: 2.5 + // + // Args: + // * t - *Go(testing.T) + // * wid - Go(fyne.Widget) + // Result: + // * Go(fyne.WidgetRenderer) + "test-temp-widget-renderer": { + Doc: "test.TempWidgetRenderer", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val *testing.T + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*testing.T); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 1: " + "expected native of type *testing.T, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("test-temp-widget-renderer: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := test.TempWidgetRenderer(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.WidgetRenderer)") + return res0Obj + }, + }, + // test-theme-1 returns a test theme useful for image based tests. + // + // Result: + // * Go(fyne.test-theme-1) "test-theme-1": { Doc: "test.Theme", Argsn: 0, @@ -160663,6 +191214,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-type performs a series of key events to simulate typing of a value into the specified object. + // The focusable object will be focused before typing begins. + // The chars parameter will be input one rune at a time to the focused object. + // + // Args: + // * obj - Go(fyne.Focusable) + // * chars - string "test-type": { Doc: "test.Type", Argsn: 2, @@ -160704,6 +191262,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-type-on-canvas is like the Type function but it passes the key events to the canvas object + // rather than a focusable widget. + // + // Args: + // * c - Go(fyne.Canvas) + // * chars - string "test-type-on-canvas": { Doc: "test.TypeOnCanvas", Argsn: 2, @@ -160745,6 +191309,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // test-widget-renderer allows test scripts to gain access to the current renderer for a widget. + // This can be used for verifying correctness of rendered components for a widget in unit tests. + // + // Args: + // * wid - Go(fyne.Widget) + // Result: + // * Go(fyne.test-widget-renderer) "test-widget-renderer": { Doc: "test.WidgetRenderer", Argsn: 1, @@ -160781,6 +191352,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // test-with-test-theme runs a function with the testTheme temporarily set. + // + // Args: + // * t - *Go(testing.T) + // * f - fn { } "test-with-test-theme": { Doc: "test.WithTestTheme", Argsn: 2, @@ -160830,6 +191406,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // account-icon returns a resource containing the standard account icon for the current theme + // + // Result: + // * Go(fyne.Resource) "account-icon": { Doc: "theme.AccountIcon", Argsn: 0, @@ -160840,6 +191420,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // background-color returns the theme's background color. + // + // Deprecated: Use Color(theme.ColorNameBackground) instead. + // + // Result: + // * Go(color.Color) "background-color": { Doc: "theme.BackgroundColor", Argsn: 0, @@ -160850,6 +191436,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // broken-image-icon returns a resource containing an icon to specify a broken or missing image + // + // Since: 2.4 + // + // Result: + // * Go(fyne.Resource) "broken-image-icon": { Doc: "theme.BrokenImageIcon", Argsn: 0, @@ -160860,6 +191452,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // button-color returns the theme's standard button color. + // + // Deprecated: Use Color(theme.ColorNameButton) instead. + // + // Result: + // * Go(color.Color) "button-color": { Doc: "theme.ButtonColor", Argsn: 0, @@ -160870,6 +191468,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // cancel-icon returns a resource containing the standard cancel icon for the current theme + // + // Result: + // * Go(fyne.Resource) "cancel-icon": { Doc: "theme.CancelIcon", Argsn: 0, @@ -160880,6 +191482,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // caption-text-size returns the size for caption text. + // + // Result: + // * decimal "caption-text-size": { Doc: "theme.CaptionTextSize", Argsn: 0, @@ -160890,6 +191496,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // check-button-checked-icon returns a resource containing the standard checkbox checked icon for the current theme + // + // Result: + // * Go(fyne.Resource) "check-button-checked-icon": { Doc: "theme.CheckButtonCheckedIcon", Argsn: 0, @@ -160900,6 +191510,26 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // check-button-fill-icon returns a resource containing the filled checkbox icon for the current theme. + // + // Since: 2.5 + // + // Result: + // * Go(fyne.Resource) + "check-button-fill-icon": { + Doc: "theme.CheckButtonFillIcon", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.CheckButtonFillIcon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // check-button-icon returns a resource containing the standard checkbox icon for the current theme + // + // Result: + // * Go(fyne.Resource) "check-button-icon": { Doc: "theme.CheckButtonIcon", Argsn: 0, @@ -160910,6 +191540,49 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // color looks up the named colour for current theme and variant. + // + // Since: 2.5 + // + // Args: + // * name - string + // Result: + // * Go(color.color) + "color": { + Doc: "theme.Color", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemeColorName + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.ThemeColorName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeColorName) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("color: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.ThemeColorName(u) + } + } + res0 := theme.Color(arg0Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(color.Color)") + return res0Obj + }, + }, + // color-achromatic-icon returns a resource containing the standard achromatic color icon for the current theme + // + // Result: + // * Go(fyne.Resource) "color-achromatic-icon": { Doc: "theme.ColorAchromaticIcon", Argsn: 0, @@ -160920,6 +191593,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // color-chromatic-icon returns a resource containing the standard chromatic color icon for the current theme + // + // Result: + // * Go(fyne.Resource) "color-chromatic-icon": { Doc: "theme.ColorChromaticIcon", Argsn: 0, @@ -160930,6 +191607,75 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // color-for-widget looks up the named colour for the requested widget using the current theme and variant. + // If the widget theme has been overridden that theme will be used. + // + // Since: 2.5 + // + // Args: + // * name - string + // * w - Go(fyne.Widget) + // Result: + // * Go(color.Color) + "color-for-widget": { + Doc: "theme.ColorForWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemeColorName + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.ThemeColorName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeColorName) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("color-for-widget: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.ThemeColorName(u) + } + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("color-for-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("color-for-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("color-for-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("color-for-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := theme.ColorForWidget(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(color.Color)") + return res0Obj + }, + }, + // Result: + // * string "color-name-background": { Doc: "Get theme.ColorNameBackground value", Argsn: 0, @@ -160939,6 +191685,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-button": { Doc: "Get theme.ColorNameButton value", Argsn: 0, @@ -160948,6 +191696,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-disabled": { Doc: "Get theme.ColorNameDisabled value", Argsn: 0, @@ -160957,6 +191707,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-disabled-button": { Doc: "Get theme.ColorNameDisabledButton value", Argsn: 0, @@ -160966,6 +191718,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-error": { Doc: "Get theme.ColorNameError value", Argsn: 0, @@ -160975,6 +191729,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-focus": { Doc: "Get theme.ColorNameFocus value", Argsn: 0, @@ -160984,6 +191740,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-foreground": { Doc: "Get theme.ColorNameForeground value", Argsn: 0, @@ -160993,6 +191751,52 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "color-name-foreground-on-error": { + Doc: "Get theme.ColorNameForegroundOnError value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.ColorNameForegroundOnError)) + return resObj + }, + }, + // Result: + // * string + "color-name-foreground-on-primary": { + Doc: "Get theme.ColorNameForegroundOnPrimary value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.ColorNameForegroundOnPrimary)) + return resObj + }, + }, + // Result: + // * string + "color-name-foreground-on-success": { + Doc: "Get theme.ColorNameForegroundOnSuccess value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.ColorNameForegroundOnSuccess)) + return resObj + }, + }, + // Result: + // * string + "color-name-foreground-on-warning": { + Doc: "Get theme.ColorNameForegroundOnWarning value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.ColorNameForegroundOnWarning)) + return resObj + }, + }, + // Result: + // * string "color-name-header-background": { Doc: "Get theme.ColorNameHeaderBackground value", Argsn: 0, @@ -161002,6 +191806,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-hover": { Doc: "Get theme.ColorNameHover value", Argsn: 0, @@ -161011,6 +191817,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-hyperlink": { Doc: "Get theme.ColorNameHyperlink value", Argsn: 0, @@ -161020,6 +191828,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-input-background": { Doc: "Get theme.ColorNameInputBackground value", Argsn: 0, @@ -161029,6 +191839,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-input-border": { Doc: "Get theme.ColorNameInputBorder value", Argsn: 0, @@ -161038,6 +191850,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-menu-background": { Doc: "Get theme.ColorNameMenuBackground value", Argsn: 0, @@ -161047,6 +191861,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-overlay-background": { Doc: "Get theme.ColorNameOverlayBackground value", Argsn: 0, @@ -161056,6 +191872,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-place-holder": { Doc: "Get theme.ColorNamePlaceHolder value", Argsn: 0, @@ -161065,6 +191883,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-pressed": { Doc: "Get theme.ColorNamePressed value", Argsn: 0, @@ -161074,6 +191894,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-primary": { Doc: "Get theme.ColorNamePrimary value", Argsn: 0, @@ -161083,6 +191905,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-scroll-bar": { Doc: "Get theme.ColorNameScrollBar value", Argsn: 0, @@ -161092,6 +191916,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-selection": { Doc: "Get theme.ColorNameSelection value", Argsn: 0, @@ -161101,6 +191927,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-separator": { Doc: "Get theme.ColorNameSeparator value", Argsn: 0, @@ -161110,6 +191938,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-shadow": { Doc: "Get theme.ColorNameShadow value", Argsn: 0, @@ -161119,6 +191949,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-success": { Doc: "Get theme.ColorNameSuccess value", Argsn: 0, @@ -161128,6 +191960,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "color-name-warning": { Doc: "Get theme.ColorNameWarning value", Argsn: 0, @@ -161137,6 +191971,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // color-palette-icon returns a resource containing the standard color palette icon for the current theme + // + // Result: + // * Go(fyne.Resource) "color-palette-icon": { Doc: "theme.ColorPaletteIcon", Argsn: 0, @@ -161147,6 +191985,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // computer-icon returns a resource containing the standard computer icon for the current theme + // + // Result: + // * Go(fyne.Resource) "computer-icon": { Doc: "theme.ComputerIcon", Argsn: 0, @@ -161157,6 +191999,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // confirm-icon returns a resource containing the standard confirm icon for the current theme + // + // Result: + // * Go(fyne.Resource) "confirm-icon": { Doc: "theme.ConfirmIcon", Argsn: 0, @@ -161167,6 +192013,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-add-icon returns a resource containing the standard content add icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-add-icon": { Doc: "theme.ContentAddIcon", Argsn: 0, @@ -161177,6 +192027,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-clear-icon returns a resource containing the standard content clear icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-clear-icon": { Doc: "theme.ContentClearIcon", Argsn: 0, @@ -161187,6 +192041,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-copy-icon returns a resource containing the standard content copy icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-copy-icon": { Doc: "theme.ContentCopyIcon", Argsn: 0, @@ -161197,6 +192055,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-cut-icon returns a resource containing the standard content cut icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-cut-icon": { Doc: "theme.ContentCutIcon", Argsn: 0, @@ -161207,6 +192069,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-paste-icon returns a resource containing the standard content paste icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-paste-icon": { Doc: "theme.ContentPasteIcon", Argsn: 0, @@ -161217,6 +192083,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-redo-icon returns a resource containing the standard content redo icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-redo-icon": { Doc: "theme.ContentRedoIcon", Argsn: 0, @@ -161227,6 +192097,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-remove-icon returns a resource containing the standard content remove icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-remove-icon": { Doc: "theme.ContentRemoveIcon", Argsn: 0, @@ -161237,6 +192111,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // content-undo-icon returns a resource containing the standard content undo icon for the current theme + // + // Result: + // * Go(fyne.Resource) "content-undo-icon": { Doc: "theme.ContentUndoIcon", Argsn: 0, @@ -161247,6 +192125,75 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // current returns the theme that is currently used for the running application. + // It looks up based on user preferences and application configuration. + // + // Since: 2.5 + // + // Result: + // * Go(fyne.Theme) + "current": { + Doc: "theme.Current", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.Current() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // current-for-widget returns the theme that is currently used for the specified widget. + // It looks for widget overrides and falls back to the application's current theme. + // + // Since: 2.5 + // + // Args: + // * w - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.Theme) + "current-for-widget": { + Doc: "theme.CurrentForWidget", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.CanvasObject + switch v := arg0.(type) { + case env.RyeCtx: + var err error + arg0Val, err = ctxTo_fyne_CanvasObject(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("current-for-widget: arg 1: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.CanvasObject); ok { + arg0Val = vc + } else { + ps.FailureFlag = true + return env.NewError("current-for-widget: arg 1: " + "expected native of type fyne.CanvasObject, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("current-for-widget: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg0Val = nil + default: + ps.FailureFlag = true + return env.NewError("current-for-widget: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := theme.CurrentForWidget(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Theme)") + return res0Obj + }, + }, + // dark-theme defines the built-in dark theme colors and sizes. + // + // Deprecated: This method ignores user preference and should not be used, it will be removed in v3.0. + // If developers want to ignore user preference for theme variant they can set a custom theme. + // + // Result: + // * Go(fyne.Theme) "dark-theme": { Doc: "theme.DarkTheme", Argsn: 0, @@ -161257,6 +192204,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-emoji-font returns the font resource for the built-in emoji font. + // This may return nil if the application was packaged without an emoji font. + // + // Since: 2.4 + // + // Result: + // * Go(fyne.Resource) "default-emoji-font": { Doc: "theme.DefaultEmojiFont", Argsn: 0, @@ -161267,6 +192221,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-symbol-font returns the font resource for the built-in symbol font. + // + // Since: 2.2 + // + // Result: + // * Go(fyne.Resource) "default-symbol-font": { Doc: "theme.DefaultSymbolFont", Argsn: 0, @@ -161277,6 +192237,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-text-bold-font returns the font resource for the built-in bold font style. + // + // Result: + // * Go(fyne.Resource) "default-text-bold-font": { Doc: "theme.DefaultTextBoldFont", Argsn: 0, @@ -161287,6 +192251,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-text-bold-italic-font returns the font resource for the built-in bold and italic font style. + // + // Result: + // * Go(fyne.Resource) "default-text-bold-italic-font": { Doc: "theme.DefaultTextBoldItalicFont", Argsn: 0, @@ -161297,6 +192265,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-text-font returns the font resource for the built-in regular font style. + // + // Result: + // * Go(fyne.Resource) "default-text-font": { Doc: "theme.DefaultTextFont", Argsn: 0, @@ -161307,6 +192279,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-text-italic-font returns the font resource for the built-in italic font style. + // + // Result: + // * Go(fyne.Resource) "default-text-italic-font": { Doc: "theme.DefaultTextItalicFont", Argsn: 0, @@ -161317,6 +192293,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-text-monospace-font returns the font resource for the built-in monospace font face. + // + // Result: + // * Go(fyne.Resource) "default-text-monospace-font": { Doc: "theme.DefaultTextMonospaceFont", Argsn: 0, @@ -161327,6 +192307,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // default-theme returns a built-in theme that can adapt to the user preference of light or dark colors. + // + // Since: 2.0 + // + // Result: + // * Go(fyne.Theme) "default-theme": { Doc: "theme.DefaultTheme", Argsn: 0, @@ -161337,6 +192323,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // delete-icon returns a resource containing the standard delete icon for the current theme + // + // Result: + // * Go(fyne.Resource) "delete-icon": { Doc: "theme.DeleteIcon", Argsn: 0, @@ -161347,6 +192337,26 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // desktop-icon returns a resource containing the standard desktop icon for the current theme + // + // Result: + // * Go(fyne.Resource) + "desktop-icon": { + Doc: "theme.DesktopIcon", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.DesktopIcon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // disabled-button-color returns the theme's disabled button color. + // + // Deprecated: Use Color(theme.ColorNameDisabledButton) instead. + // + // Result: + // * Go(color.Color) "disabled-button-color": { Doc: "theme.DisabledButtonColor", Argsn: 0, @@ -161357,6 +192367,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disabled-color returns the foreground color for a disabled UI element. + // + // Since: 2.0 + // + // Deprecated: Use Color(theme.ColorNameDisabled) instead. + // + // Result: + // * Go(color.Color) "disabled-color": { Doc: "theme.DisabledColor", Argsn: 0, @@ -161367,6 +192385,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disabled-text-color returns the theme's disabled text color - this is actually the disabled color since 1.4. + // + // Deprecated: Use Color(theme.ColorNameDisabled) instead. + // + // Result: + // * Go(color.Color) "disabled-text-color": { Doc: "theme.DisabledTextColor", Argsn: 0, @@ -161377,6 +192401,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // document-create-icon returns a resource containing the standard document create icon for the current theme + // + // Result: + // * Go(fyne.Resource) "document-create-icon": { Doc: "theme.DocumentCreateIcon", Argsn: 0, @@ -161387,6 +192415,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // document-icon returns a resource containing the standard document icon for the current theme + // + // Result: + // * Go(fyne.Resource) "document-icon": { Doc: "theme.DocumentIcon", Argsn: 0, @@ -161397,6 +192429,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // document-print-icon returns a resource containing the standard document print icon for the current theme + // + // Result: + // * Go(fyne.Resource) "document-print-icon": { Doc: "theme.DocumentPrintIcon", Argsn: 0, @@ -161407,6 +192443,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // document-save-icon returns a resource containing the standard document save icon for the current theme + // + // Result: + // * Go(fyne.Resource) "document-save-icon": { Doc: "theme.DocumentSaveIcon", Argsn: 0, @@ -161417,6 +192457,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // download-icon returns a resource containing the standard download icon for the current theme + // + // Result: + // * Go(fyne.Resource) "download-icon": { Doc: "theme.DownloadIcon", Argsn: 0, @@ -161427,6 +192471,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // error-color returns the theme's error foreground color. + // + // Since: 2.0 + // + // Deprecated: Use Color(theme.ColorNameError) instead. + // + // Result: + // * Go(color.Color) "error-color": { Doc: "theme.ErrorColor", Argsn: 0, @@ -161437,6 +192489,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // error-icon returns a resource containing the standard dialog error icon for the current theme + // + // Result: + // * Go(fyne.Resource) "error-icon": { Doc: "theme.ErrorIcon", Argsn: 0, @@ -161447,6 +192503,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // file-application-icon returns a resource containing the file icon representing application files for the current theme + // + // Result: + // * Go(fyne.Resource) "file-application-icon": { Doc: "theme.FileApplicationIcon", Argsn: 0, @@ -161457,6 +192517,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // file-audio-icon returns a resource containing the file icon representing audio files for the current theme + // + // Result: + // * Go(fyne.Resource) "file-audio-icon": { Doc: "theme.FileAudioIcon", Argsn: 0, @@ -161467,6 +192531,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // file-icon returns a resource containing the appropriate file icon for the current theme + // + // Result: + // * Go(fyne.Resource) "file-icon": { Doc: "theme.FileIcon", Argsn: 0, @@ -161477,6 +192545,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // file-image-icon returns a resource containing the file icon representing image files for the current theme + // + // Result: + // * Go(fyne.Resource) "file-image-icon": { Doc: "theme.FileImageIcon", Argsn: 0, @@ -161487,6 +192559,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // file-text-icon returns a resource containing the file icon representing text files for the current theme + // + // Result: + // * Go(fyne.Resource) "file-text-icon": { Doc: "theme.FileTextIcon", Argsn: 0, @@ -161497,6 +192573,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // file-video-icon returns a resource containing the file icon representing video files for the current theme + // + // Result: + // * Go(fyne.Resource) "file-video-icon": { Doc: "theme.FileVideoIcon", Argsn: 0, @@ -161507,6 +192587,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // focus-color returns the color used to highlight a focused widget. + // + // Deprecated: Use Color(theme.ColorNameFocus) instead. + // + // Result: + // * Go(color.Color) "focus-color": { Doc: "theme.FocusColor", Argsn: 0, @@ -161517,6 +192603,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // folder-icon returns a resource containing the standard folder icon for the current theme + // + // Result: + // * Go(fyne.Resource) "folder-icon": { Doc: "theme.FolderIcon", Argsn: 0, @@ -161527,6 +192617,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // folder-new-icon returns a resource containing the standard folder creation icon for the current theme + // + // Result: + // * Go(fyne.Resource) "folder-new-icon": { Doc: "theme.FolderNewIcon", Argsn: 0, @@ -161537,6 +192631,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // folder-open-icon returns a resource containing the standard folder open icon for the current theme + // + // Result: + // * Go(fyne.Resource) "folder-open-icon": { Doc: "theme.FolderOpenIcon", Argsn: 0, @@ -161547,6 +192645,45 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // font looks up the font for current theme and text style. + // + // Since: 2.5 + // + // Args: + // * style - Go(fyne.TextStyle) + // Result: + // * Go(fyne.Resource) + "font": { + Doc: "theme.Font", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.TextStyle + switch v := arg0.(type) { + case env.Native: + if vc, ok := v.Value.(*fyne.TextStyle); ok { + arg0Val = *vc + } else { + ps.FailureFlag = true + return env.NewError("font: arg 1: " + "expected native of type *fyne.TextStyle, but got " + objectDebugString(ps.Idx, v)) + } + default: + ps.FailureFlag = true + return env.NewError("font: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := theme.Font(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // foreground-color returns the theme's standard foreground color for text and icons. + // + // Since: 2.0 + // + // Deprecated: Use Color(theme.ColorNameForeground) instead. + // + // Result: + // * Go(color.Color) "foreground-color": { Doc: "theme.ForegroundColor", Argsn: 0, @@ -161557,6 +192694,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // from-json returns a Theme created from the given JSON metadata. + // Any values not present in the data will fall back to the default theme. + // If a parse error occurs it will be returned along with a default theme. + // + // Since: 2.2 + // + // Args: + // * data - string + // Result: + // * Go(fyne.Theme) + // * error "from-json": { Doc: "theme.FromJSON", Argsn: 1, @@ -161582,6 +192730,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // from-json-reader returns a Theme created from the given JSON metadata through the reader. + // Any values not present in the data will fall back to the default theme. + // If a parse error occurs it will be returned along with a default theme. + // + // Since: 2.2 + // + // Args: + // * r - Go(io.Reader) + // Result: + // * Go(fyne.Theme) + // * error "from-json-reader": { Doc: "theme.FromJSONReader", Argsn: 1, @@ -161626,6 +192785,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // from-legacy returns a 2.0 Theme created from the given LegacyTheme data. + // This is a transition path and will be removed in the future (probably version 3.0). + // + // Since: 2.0 + // + // Args: + // * t - Go(fyne.LegacyTheme) + // Result: + // * Go(fyne.Theme) "from-legacy": { Doc: "theme.FromLegacy", Argsn: 1, @@ -161662,6 +192830,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // fyne-logo returns a resource containing the Fyne logo. + // + // Deprecated: Applications should use their own icon in most cases. + // + // Result: + // * Go(fyne.Resource) "fyne-logo": { Doc: "theme.FyneLogo", Argsn: 0, @@ -161672,6 +192846,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // grid-icon returns a resource containing the standard grid icon for the current theme + // + // Result: + // * Go(fyne.Resource) "grid-icon": { Doc: "theme.GridIcon", Argsn: 0, @@ -161682,6 +192860,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // header-background-color returns the color used to draw underneath collection headers. + // + // Since: 2.4 + // + // Deprecated: Use Color(theme.ColorNameHeaderBackground) instead. + // + // Result: + // * Go(color.Color) "header-background-color": { Doc: "theme.HeaderBackgroundColor", Argsn: 0, @@ -161692,6 +192878,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // help-icon returns a resource containing the standard help icon for the current theme + // + // Result: + // * Go(fyne.Resource) "help-icon": { Doc: "theme.HelpIcon", Argsn: 0, @@ -161702,6 +192892,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // history-icon returns a resource containing the standard history icon for the current theme + // + // Result: + // * Go(fyne.Resource) "history-icon": { Doc: "theme.HistoryIcon", Argsn: 0, @@ -161712,6 +192906,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // home-icon returns a resource containing the standard home folder icon for the current theme + // + // Result: + // * Go(fyne.Resource) "home-icon": { Doc: "theme.HomeIcon", Argsn: 0, @@ -161722,6 +192920,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // hover-color returns the color used to highlight interactive elements currently under a cursor. + // + // Deprecated: Use Color(theme.ColorNameHover) instead. + // + // Result: + // * Go(color.Color) "hover-color": { Doc: "theme.HoverColor", Argsn: 0, @@ -161732,6 +192936,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // hyperlink-color returns the color used for the Hyperlink widget and hyperlink text elements. + // + // Deprecated: Use Color(theme.ColorNameHyperlink) instead. + // + // Result: + // * Go(color.Color) "hyperlink-color": { Doc: "theme.HyperlinkColor", Argsn: 0, @@ -161742,6 +192952,116 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // icon looks up the specified icon for current theme. + // + // Since: 2.5 + // + // Args: + // * name - string + // Result: + // * Go(fyne.Resource) + "icon": { + Doc: "theme.Icon", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemeIconName + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.ThemeIconName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeIconName) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("icon: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.ThemeIconName(u) + } + } + res0 := theme.Icon(arg0Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // icon-for-widget looks up the specified icon for requested widget using the current theme. + // If the widget theme has been overridden that theme will be used. + // + // Since: 2.5 + // + // Args: + // * name - string + // * w - Go(fyne.Widget) + // Result: + // * Go(fyne.Resource) + "icon-for-widget": { + Doc: "theme.IconForWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemeIconName + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.ThemeIconName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeIconName) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("icon-for-widget: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.ThemeIconName(u) + } + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("icon-for-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("icon-for-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("icon-for-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("icon-for-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := theme.IconForWidget(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // icon-inline-size is the standard size of icons which appear within buttons, labels etc. + // + // Result: + // * decimal "icon-inline-size": { Doc: "theme.IconInlineSize", Argsn: 0, @@ -161752,6 +193072,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * string "icon-name-account": { Doc: "Get theme.IconNameAccount value", Argsn: 0, @@ -161761,6 +193083,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-arrow-drop-down": { Doc: "Get theme.IconNameArrowDropDown value", Argsn: 0, @@ -161770,6 +193094,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-arrow-drop-up": { Doc: "Get theme.IconNameArrowDropUp value", Argsn: 0, @@ -161779,6 +193105,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-broken-image": { Doc: "Get theme.IconNameBrokenImage value", Argsn: 0, @@ -161788,6 +193116,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-cancel": { Doc: "Get theme.IconNameCancel value", Argsn: 0, @@ -161797,6 +193127,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-check-button": { Doc: "Get theme.IconNameCheckButton value", Argsn: 0, @@ -161806,6 +193138,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-check-button-checked": { Doc: "Get theme.IconNameCheckButtonChecked value", Argsn: 0, @@ -161815,6 +193149,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "icon-name-check-button-fill": { + Doc: "Get theme.IconNameCheckButtonFill value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameCheckButtonFill)) + return resObj + }, + }, + // Result: + // * string "icon-name-color-achromatic": { Doc: "Get theme.IconNameColorAchromatic value", Argsn: 0, @@ -161824,6 +193171,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-color-chromatic": { Doc: "Get theme.IconNameColorChromatic value", Argsn: 0, @@ -161833,6 +193182,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-color-palette": { Doc: "Get theme.IconNameColorPalette value", Argsn: 0, @@ -161842,6 +193193,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-computer": { Doc: "Get theme.IconNameComputer value", Argsn: 0, @@ -161851,6 +193204,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-confirm": { Doc: "Get theme.IconNameConfirm value", Argsn: 0, @@ -161860,6 +193215,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-add": { Doc: "Get theme.IconNameContentAdd value", Argsn: 0, @@ -161869,6 +193226,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-clear": { Doc: "Get theme.IconNameContentClear value", Argsn: 0, @@ -161878,6 +193237,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-copy": { Doc: "Get theme.IconNameContentCopy value", Argsn: 0, @@ -161887,6 +193248,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-cut": { Doc: "Get theme.IconNameContentCut value", Argsn: 0, @@ -161896,6 +193259,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-paste": { Doc: "Get theme.IconNameContentPaste value", Argsn: 0, @@ -161905,6 +193270,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-redo": { Doc: "Get theme.IconNameContentRedo value", Argsn: 0, @@ -161914,6 +193281,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-remove": { Doc: "Get theme.IconNameContentRemove value", Argsn: 0, @@ -161923,6 +193292,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-content-undo": { Doc: "Get theme.IconNameContentUndo value", Argsn: 0, @@ -161932,6 +193303,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-delete": { Doc: "Get theme.IconNameDelete value", Argsn: 0, @@ -161941,6 +193314,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "icon-name-desktop": { + Doc: "Get theme.IconNameDesktop value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameDesktop)) + return resObj + }, + }, + // Result: + // * string "icon-name-document": { Doc: "Get theme.IconNameDocument value", Argsn: 0, @@ -161950,6 +193336,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-document-create": { Doc: "Get theme.IconNameDocumentCreate value", Argsn: 0, @@ -161959,6 +193347,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-document-print": { Doc: "Get theme.IconNameDocumentPrint value", Argsn: 0, @@ -161968,6 +193358,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-document-save": { Doc: "Get theme.IconNameDocumentSave value", Argsn: 0, @@ -161977,6 +193369,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-download": { Doc: "Get theme.IconNameDownload value", Argsn: 0, @@ -161986,6 +193380,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "icon-name-drag-corner-indicator": { + Doc: "Get theme.IconNameDragCornerIndicator value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameDragCornerIndicator)) + return resObj + }, + }, + // Result: + // * string "icon-name-error": { Doc: "Get theme.IconNameError value", Argsn: 0, @@ -161995,6 +193402,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-file": { Doc: "Get theme.IconNameFile value", Argsn: 0, @@ -162004,6 +193413,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-file-application": { Doc: "Get theme.IconNameFileApplication value", Argsn: 0, @@ -162013,6 +193424,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-file-audio": { Doc: "Get theme.IconNameFileAudio value", Argsn: 0, @@ -162022,6 +193435,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-file-image": { Doc: "Get theme.IconNameFileImage value", Argsn: 0, @@ -162031,6 +193446,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-file-text": { Doc: "Get theme.IconNameFileText value", Argsn: 0, @@ -162040,6 +193457,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-file-video": { Doc: "Get theme.IconNameFileVideo value", Argsn: 0, @@ -162049,6 +193468,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-folder": { Doc: "Get theme.IconNameFolder value", Argsn: 0, @@ -162058,6 +193479,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-folder-new": { Doc: "Get theme.IconNameFolderNew value", Argsn: 0, @@ -162067,6 +193490,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-folder-open": { Doc: "Get theme.IconNameFolderOpen value", Argsn: 0, @@ -162076,6 +193501,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-grid": { Doc: "Get theme.IconNameGrid value", Argsn: 0, @@ -162085,6 +193512,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-help": { Doc: "Get theme.IconNameHelp value", Argsn: 0, @@ -162094,6 +193523,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-history": { Doc: "Get theme.IconNameHistory value", Argsn: 0, @@ -162103,6 +193534,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-home": { Doc: "Get theme.IconNameHome value", Argsn: 0, @@ -162112,6 +193545,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-info": { Doc: "Get theme.IconNameInfo value", Argsn: 0, @@ -162121,6 +193556,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-list": { Doc: "Get theme.IconNameList value", Argsn: 0, @@ -162130,6 +193567,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-login": { Doc: "Get theme.IconNameLogin value", Argsn: 0, @@ -162139,6 +193578,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-logout": { Doc: "Get theme.IconNameLogout value", Argsn: 0, @@ -162148,6 +193589,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-mail-attachment": { Doc: "Get theme.IconNameMailAttachment value", Argsn: 0, @@ -162157,6 +193600,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-mail-compose": { Doc: "Get theme.IconNameMailCompose value", Argsn: 0, @@ -162166,6 +193611,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-mail-forward": { Doc: "Get theme.IconNameMailForward value", Argsn: 0, @@ -162175,6 +193622,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-mail-reply": { Doc: "Get theme.IconNameMailReply value", Argsn: 0, @@ -162184,6 +193633,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-mail-reply-all": { Doc: "Get theme.IconNameMailReplyAll value", Argsn: 0, @@ -162193,6 +193644,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-mail-send": { Doc: "Get theme.IconNameMailSend value", Argsn: 0, @@ -162202,6 +193655,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-fast-forward": { Doc: "Get theme.IconNameMediaFastForward value", Argsn: 0, @@ -162211,6 +193666,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-fast-rewind": { Doc: "Get theme.IconNameMediaFastRewind value", Argsn: 0, @@ -162220,6 +193677,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-music": { Doc: "Get theme.IconNameMediaMusic value", Argsn: 0, @@ -162229,6 +193688,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-pause": { Doc: "Get theme.IconNameMediaPause value", Argsn: 0, @@ -162238,6 +193699,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-photo": { Doc: "Get theme.IconNameMediaPhoto value", Argsn: 0, @@ -162247,6 +193710,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-play": { Doc: "Get theme.IconNameMediaPlay value", Argsn: 0, @@ -162256,6 +193721,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-record": { Doc: "Get theme.IconNameMediaRecord value", Argsn: 0, @@ -162265,6 +193732,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-replay": { Doc: "Get theme.IconNameMediaReplay value", Argsn: 0, @@ -162274,6 +193743,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-skip-next": { Doc: "Get theme.IconNameMediaSkipNext value", Argsn: 0, @@ -162283,6 +193754,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-skip-previous": { Doc: "Get theme.IconNameMediaSkipPrevious value", Argsn: 0, @@ -162292,6 +193765,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-stop": { Doc: "Get theme.IconNameMediaStop value", Argsn: 0, @@ -162301,6 +193776,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-media-video": { Doc: "Get theme.IconNameMediaVideo value", Argsn: 0, @@ -162310,6 +193787,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-menu": { Doc: "Get theme.IconNameMenu value", Argsn: 0, @@ -162319,6 +193798,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-menu-expand": { Doc: "Get theme.IconNameMenuExpand value", Argsn: 0, @@ -162328,6 +193809,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-more-horizontal": { Doc: "Get theme.IconNameMoreHorizontal value", Argsn: 0, @@ -162337,6 +193820,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-more-vertical": { Doc: "Get theme.IconNameMoreVertical value", Argsn: 0, @@ -162346,6 +193831,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-move-down": { Doc: "Get theme.IconNameMoveDown value", Argsn: 0, @@ -162355,6 +193842,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-move-up": { Doc: "Get theme.IconNameMoveUp value", Argsn: 0, @@ -162364,6 +193853,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-navigate-back": { Doc: "Get theme.IconNameNavigateBack value", Argsn: 0, @@ -162373,6 +193864,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-navigate-next": { Doc: "Get theme.IconNameNavigateNext value", Argsn: 0, @@ -162382,6 +193875,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-question": { Doc: "Get theme.IconNameQuestion value", Argsn: 0, @@ -162391,6 +193886,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-radio-button": { Doc: "Get theme.IconNameRadioButton value", Argsn: 0, @@ -162400,6 +193897,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-radio-button-checked": { Doc: "Get theme.IconNameRadioButtonChecked value", Argsn: 0, @@ -162409,6 +193908,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "icon-name-radio-button-fill": { + Doc: "Get theme.IconNameRadioButtonFill value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameRadioButtonFill)) + return resObj + }, + }, + // Result: + // * string "icon-name-search": { Doc: "Get theme.IconNameSearch value", Argsn: 0, @@ -162418,6 +193930,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-search-replace": { Doc: "Get theme.IconNameSearchReplace value", Argsn: 0, @@ -162427,6 +193941,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-settings": { Doc: "Get theme.IconNameSettings value", Argsn: 0, @@ -162436,6 +193952,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-storage": { Doc: "Get theme.IconNameStorage value", Argsn: 0, @@ -162445,6 +193963,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-upload": { Doc: "Get theme.IconNameUpload value", Argsn: 0, @@ -162454,6 +193974,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-view-full-screen": { Doc: "Get theme.IconNameViewFullScreen value", Argsn: 0, @@ -162463,6 +193985,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-view-refresh": { Doc: "Get theme.IconNameViewRefresh value", Argsn: 0, @@ -162472,6 +193996,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-view-restore": { Doc: "Get theme.IconNameViewRestore value", Argsn: 0, @@ -162481,6 +194007,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-view-zoom-fit": { Doc: "Get theme.IconNameViewZoomFit value", Argsn: 0, @@ -162490,6 +194018,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-view-zoom-in": { Doc: "Get theme.IconNameViewZoomIn value", Argsn: 0, @@ -162499,6 +194029,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-view-zoom-out": { Doc: "Get theme.IconNameViewZoomOut value", Argsn: 0, @@ -162508,6 +194040,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-visibility": { Doc: "Get theme.IconNameVisibility value", Argsn: 0, @@ -162517,6 +194051,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-visibility-off": { Doc: "Get theme.IconNameVisibilityOff value", Argsn: 0, @@ -162526,6 +194062,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-volume-down": { Doc: "Get theme.IconNameVolumeDown value", Argsn: 0, @@ -162535,6 +194073,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-volume-mute": { Doc: "Get theme.IconNameVolumeMute value", Argsn: 0, @@ -162544,6 +194084,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-volume-up": { Doc: "Get theme.IconNameVolumeUp value", Argsn: 0, @@ -162553,6 +194095,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "icon-name-warning": { Doc: "Get theme.IconNameWarning value", Argsn: 0, @@ -162562,6 +194106,43 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "icon-name-window-close": { + Doc: "Get theme.IconNameWindowClose value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameWindowClose)) + return resObj + }, + }, + // Result: + // * string + "icon-name-window-maximize": { + Doc: "Get theme.IconNameWindowMaximize value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameWindowMaximize)) + return resObj + }, + }, + // Result: + // * string + "icon-name-window-minimize": { + Doc: "Get theme.IconNameWindowMinimize value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(string(theme.IconNameWindowMinimize)) + return resObj + }, + }, + // info-icon returns a resource containing the standard dialog info icon for the current theme + // + // Result: + // * Go(fyne.Resource) "info-icon": { Doc: "theme.InfoIcon", Argsn: 0, @@ -162572,6 +194153,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // inner-padding is the standard gap between element content and the outside edge of a widget. + // + // Since: 2.3 + // + // Result: + // * decimal "inner-padding": { Doc: "theme.InnerPadding", Argsn: 0, @@ -162582,6 +194169,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // input-background-color returns the color used to draw underneath input elements. + // + // Deprecated: Use Color(theme.ColorNameInputBackground) instead. + // + // Result: + // * Go(color.Color) "input-background-color": { Doc: "theme.InputBackgroundColor", Argsn: 0, @@ -162592,6 +194185,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // input-border-color returns the color used to draw underneath input elements. + // + // Since: 2.3 + // + // Deprecated: Use Color(theme.ColorNameInputBorder) instead. + // + // Result: + // * Go(color.Color) "input-border-color": { Doc: "theme.InputBorderColor", Argsn: 0, @@ -162602,6 +194203,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // input-border-size returns the input border size (or underline size for an entry). + // + // Since: 2.0 + // + // Result: + // * decimal "input-border-size": { Doc: "theme.InputBorderSize", Argsn: 0, @@ -162612,6 +194219,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // input-radius-size returns the input radius size. + // + // Since: 2.4 + // + // Result: + // * decimal "input-radius-size": { Doc: "theme.InputRadiusSize", Argsn: 0, @@ -162622,6 +194235,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // light-theme defines the built-in light theme colors and sizes. + // + // Deprecated: This method ignores user preference and should not be used, it will be removed in v3.0. + // If developers want to ignore user preference for theme variant they can set a custom theme. + // + // Result: + // * Go(fyne.Theme) "light-theme": { Doc: "theme.LightTheme", Argsn: 0, @@ -162632,6 +194252,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // line-spacing is the default gap between multiple lines of text. + // + // Since: 2.3 + // + // Result: + // * decimal "line-spacing": { Doc: "theme.LineSpacing", Argsn: 0, @@ -162642,6 +194268,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // list-icon returns a resource containing the standard list icon for the current theme + // + // Result: + // * Go(fyne.Resource) "list-icon": { Doc: "theme.ListIcon", Argsn: 0, @@ -162652,6 +194282,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // login-icon returns a resource containing the standard login icon for the current theme + // + // Result: + // * Go(fyne.Resource) "login-icon": { Doc: "theme.LoginIcon", Argsn: 0, @@ -162662,6 +194296,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // logout-icon returns a resource containing the standard logout icon for the current theme + // + // Result: + // * Go(fyne.Resource) "logout-icon": { Doc: "theme.LogoutIcon", Argsn: 0, @@ -162672,6 +194310,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mail-attachment-icon returns a resource containing the standard mail attachment icon for the current theme + // + // Result: + // * Go(fyne.Resource) "mail-attachment-icon": { Doc: "theme.MailAttachmentIcon", Argsn: 0, @@ -162682,6 +194324,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mail-compose-icon returns a resource containing the standard mail compose icon for the current theme + // + // Result: + // * Go(fyne.Resource) "mail-compose-icon": { Doc: "theme.MailComposeIcon", Argsn: 0, @@ -162692,6 +194338,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mail-forward-icon returns a resource containing the standard mail forward icon for the current theme + // + // Result: + // * Go(fyne.Resource) "mail-forward-icon": { Doc: "theme.MailForwardIcon", Argsn: 0, @@ -162702,6 +194352,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mail-reply-all-icon returns a resource containing the standard mail reply all icon for the current theme + // + // Result: + // * Go(fyne.Resource) "mail-reply-all-icon": { Doc: "theme.MailReplyAllIcon", Argsn: 0, @@ -162712,6 +194366,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mail-reply-icon returns a resource containing the standard mail reply icon for the current theme + // + // Result: + // * Go(fyne.Resource) "mail-reply-icon": { Doc: "theme.MailReplyIcon", Argsn: 0, @@ -162722,6 +194380,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // mail-send-icon returns a resource containing the standard mail send icon for the current theme + // + // Result: + // * Go(fyne.Resource) "mail-send-icon": { Doc: "theme.MailSendIcon", Argsn: 0, @@ -162732,6 +194394,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-fast-forward-icon returns a resource containing the standard media fast-forward icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-fast-forward-icon": { Doc: "theme.MediaFastForwardIcon", Argsn: 0, @@ -162742,6 +194408,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-fast-rewind-icon returns a resource containing the standard media fast-rewind icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-fast-rewind-icon": { Doc: "theme.MediaFastRewindIcon", Argsn: 0, @@ -162752,6 +194422,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-music-icon returns a resource containing the standard media music icon for the current theme + // + // Since: 2.1 + // + // Result: + // * Go(fyne.Resource) "media-music-icon": { Doc: "theme.MediaMusicIcon", Argsn: 0, @@ -162762,6 +194438,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-pause-icon returns a resource containing the standard media pause icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-pause-icon": { Doc: "theme.MediaPauseIcon", Argsn: 0, @@ -162772,6 +194452,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-photo-icon returns a resource containing the standard media photo icon for the current theme + // + // Since: 2.1 + // + // Result: + // * Go(fyne.Resource) "media-photo-icon": { Doc: "theme.MediaPhotoIcon", Argsn: 0, @@ -162782,6 +194468,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-play-icon returns a resource containing the standard media play icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-play-icon": { Doc: "theme.MediaPlayIcon", Argsn: 0, @@ -162792,6 +194482,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-record-icon returns a resource containing the standard media record icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-record-icon": { Doc: "theme.MediaRecordIcon", Argsn: 0, @@ -162802,6 +194496,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-replay-icon returns a resource containing the standard media replay icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-replay-icon": { Doc: "theme.MediaReplayIcon", Argsn: 0, @@ -162812,6 +194510,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-skip-next-icon returns a resource containing the standard media skip next icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-skip-next-icon": { Doc: "theme.MediaSkipNextIcon", Argsn: 0, @@ -162822,6 +194524,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-skip-previous-icon returns a resource containing the standard media skip previous icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-skip-previous-icon": { Doc: "theme.MediaSkipPreviousIcon", Argsn: 0, @@ -162832,6 +194538,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-stop-icon returns a resource containing the standard media stop icon for the current theme + // + // Result: + // * Go(fyne.Resource) "media-stop-icon": { Doc: "theme.MediaStopIcon", Argsn: 0, @@ -162842,6 +194552,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // media-video-icon returns a resource containing the standard media video icon for the current theme + // + // Since: 2.1 + // + // Result: + // * Go(fyne.Resource) "media-video-icon": { Doc: "theme.MediaVideoIcon", Argsn: 0, @@ -162852,6 +194568,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-background-color returns the theme's background color for menus. + // + // Since: 2.3 + // + // Deprecated: Use Color(theme.ColorNameMenuBackground) instead. + // + // Result: + // * Go(color.Color) "menu-background-color": { Doc: "theme.MenuBackgroundColor", Argsn: 0, @@ -162862,6 +194586,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-drop-down-icon returns a resource containing the standard menu drop down icon for the current theme + // + // Result: + // * Go(fyne.Resource) "menu-drop-down-icon": { Doc: "theme.MenuDropDownIcon", Argsn: 0, @@ -162872,6 +194600,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-drop-up-icon returns a resource containing the standard menu drop up icon for the current theme + // + // Result: + // * Go(fyne.Resource) "menu-drop-up-icon": { Doc: "theme.MenuDropUpIcon", Argsn: 0, @@ -162882,6 +194614,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-expand-icon returns a resource containing the standard (mobile) expand "submenu icon for the current theme + // + // Result: + // * Go(fyne.Resource) "menu-expand-icon": { Doc: "theme.MenuExpandIcon", Argsn: 0, @@ -162892,6 +194628,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // menu-icon returns a resource containing the standard (mobile) menu icon for the current theme + // + // Result: + // * Go(fyne.Resource) "menu-icon": { Doc: "theme.MenuIcon", Argsn: 0, @@ -162902,6 +194642,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // more-horizontal-icon returns a resource containing the standard horizontal more icon for the current theme + // + // Result: + // * Go(fyne.Resource) "more-horizontal-icon": { Doc: "theme.MoreHorizontalIcon", Argsn: 0, @@ -162912,6 +194656,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // more-vertical-icon returns a resource containing the standard vertical more icon for the current theme + // + // Result: + // * Go(fyne.Resource) "more-vertical-icon": { Doc: "theme.MoreVerticalIcon", Argsn: 0, @@ -162922,6 +194670,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move-down-icon returns a resource containing the standard down arrow icon for the current theme + // + // Result: + // * Go(fyne.Resource) "move-down-icon": { Doc: "theme.MoveDownIcon", Argsn: 0, @@ -162932,6 +194684,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // move-up-icon returns a resource containing the standard up arrow icon for the current theme + // + // Result: + // * Go(fyne.Resource) "move-up-icon": { Doc: "theme.MoveUpIcon", Argsn: 0, @@ -162942,6 +194698,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // navigate-back-icon returns a resource containing the standard backward navigation icon for the current theme + // + // Result: + // * Go(fyne.Resource) "navigate-back-icon": { Doc: "theme.NavigateBackIcon", Argsn: 0, @@ -162952,6 +194712,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // navigate-next-icon returns a resource containing the standard forward navigation icon for the current theme + // + // Result: + // * Go(fyne.Resource) "navigate-next-icon": { Doc: "theme.NavigateNextIcon", Argsn: 0, @@ -162962,6 +194726,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // colored-resource creates a resource that adapts to the current theme setting using + // the color named in the constructor. + // + // Since: 2.4 + // + // Args: + // * src - Go(fyne.Resource) + // * name - string + // Result: + // * Go(*theme.ThemedResource) "colored-resource": { Doc: "theme.NewColoredResource", Argsn: 2, @@ -163019,6 +194793,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // disabled-resource creates a resource that adapts to the current theme's DisabledColor setting. + // + // Args: + // * res - Go(fyne.Resource) + // Result: + // * Go(*theme.DisabledResource) "disabled-resource": { Doc: "theme.NewDisabledResource", Argsn: 1, @@ -163055,6 +194835,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // error-themed-resource creates a resource that adapts to the error color for the current theme. + // + // Args: + // * orig - Go(fyne.Resource) + // Result: + // * Go(*theme.ErrorThemedResource) "error-themed-resource": { Doc: "theme.NewErrorThemedResource", Argsn: 1, @@ -163091,6 +194877,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // inverted-themed-resource creates a resource that adapts to the current theme for use over highlighted elements. + // + // Args: + // * orig - Go(fyne.Resource) + // Result: + // * Go(*theme.InvertedThemedResource) "inverted-themed-resource": { Doc: "theme.NewInvertedThemedResource", Argsn: 1, @@ -163127,6 +194919,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // primary-themed-resource creates a resource that adapts to the primary color for the current theme. + // + // Args: + // * orig - Go(fyne.Resource) + // Result: + // * Go(*theme.PrimaryThemedResource) "primary-themed-resource": { Doc: "theme.NewPrimaryThemedResource", Argsn: 1, @@ -163163,6 +194961,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // success-themed-resource creates a resource that adapts to the current theme success color. + // + // Since: 2.4 + // + // Args: + // * src - Go(fyne.Resource) + // Result: + // * Go(*theme.ThemedResource) "success-themed-resource": { Doc: "theme.NewSuccessThemedResource", Argsn: 1, @@ -163199,6 +195005,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // themed-resource creates a resource that adapts to the current theme setting. + // By default, this will match the foreground color, but it can be changed using the `ColorName` field. + // + // Args: + // * src - Go(fyne.Resource) + // Result: + // * Go(*theme.ThemedResource) "themed-resource": { Doc: "theme.NewThemedResource", Argsn: 1, @@ -163235,6 +195048,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // warning-themed-resource creates a resource that adapts to the current theme warning color. + // + // Since: 2.4 + // + // Args: + // * src - Go(fyne.Resource) + // Result: + // * Go(*theme.ThemedResource) "warning-themed-resource": { Doc: "theme.NewWarningThemedResource", Argsn: 1, @@ -163271,6 +195092,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // overlay-background-color returns the theme's background color for overlays like dialogs. + // + // Since: 2.3 + // + // Deprecated: Use Color(theme.ColorNameOverlayBackground) instead. + // + // Result: + // * Go(color.Color) "overlay-background-color": { Doc: "theme.OverlayBackgroundColor", Argsn: 0, @@ -163281,6 +195110,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // padding is the standard gap between elements and the border around interface elements. + // + // Result: + // * decimal "padding": { Doc: "theme.Padding", Argsn: 0, @@ -163291,6 +195124,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // place-holder-color returns the theme's standard text color. + // + // Deprecated: Use Color(theme.ColorNamePlaceHolder) instead. + // + // Result: + // * Go(color.Color) "place-holder-color": { Doc: "theme.PlaceHolderColor", Argsn: 0, @@ -163301,6 +195140,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // pressed-color returns the color used to overlap tapped features. + // + // Since: 2.0 + // + // Deprecated: Use Color(theme.ColorNamePressed) instead. + // + // Result: + // * Go(color.Color) "pressed-color": { Doc: "theme.PressedColor", Argsn: 0, @@ -163311,6 +195158,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // primary-color returns the color used to highlight primary features. + // + // Deprecated: Use Color(theme.ColorNamePrimary) instead. + // + // Result: + // * Go(color.Color) "primary-color": { Doc: "theme.PrimaryColor", Argsn: 0, @@ -163321,6 +195174,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // primary-color-named returns a theme specific color value for a named primary color. + // + // Since: 1.4 + // + // Deprecated: You should not access named primary colors but access the primary color using Color(theme.ColorNamePrimary) instead. + // + // Args: + // * name - string + // Result: + // * Go(color.Color) "primary-color-named": { Doc: "theme.PrimaryColorNamed", Argsn: 1, @@ -163338,6 +195201,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // primary-color-names returns a list of the standard primary color options. + // + // Since: 1.4 + // + // Result: + // * block[string] "primary-color-names": { Doc: "theme.PrimaryColorNames", Argsn: 0, @@ -163354,6 +195223,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // question-icon returns a resource containing the standard dialog question icon for the current theme + // + // Result: + // * Go(fyne.Resource) "question-icon": { Doc: "theme.QuestionIcon", Argsn: 0, @@ -163364,6 +195237,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // radio-button-checked-icon returns a resource containing the standard radio button checked icon for the current theme + // + // Result: + // * Go(fyne.Resource) "radio-button-checked-icon": { Doc: "theme.RadioButtonCheckedIcon", Argsn: 0, @@ -163374,6 +195251,26 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // radio-button-fill-icon returns a resource containing the filled checkbox icon for the current theme. + // + // Since: 2.5 + // + // Result: + // * Go(fyne.Resource) + "radio-button-fill-icon": { + Doc: "theme.RadioButtonFillIcon", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.RadioButtonFillIcon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // radio-button-icon returns a resource containing the standard radio button icon for the current theme + // + // Result: + // * Go(fyne.Resource) "radio-button-icon": { Doc: "theme.RadioButtonIcon", Argsn: 0, @@ -163384,6 +195281,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // scroll-bar-color returns the color (and translucency) for a scrollBar. + // + // Deprecated: Use Color(theme.ColorNameScrollBar) instead. + // + // Result: + // * Go(color.Color) "scroll-bar-color": { Doc: "theme.ScrollBarColor", Argsn: 0, @@ -163394,6 +195297,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // scroll-bar-size is the width (or height) of the bars on a ScrollContainer. + // + // Result: + // * decimal "scroll-bar-size": { Doc: "theme.ScrollBarSize", Argsn: 0, @@ -163404,6 +195311,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // scroll-bar-small-size is the width (or height) of the minimized bars on a ScrollContainer. + // + // Result: + // * decimal "scroll-bar-small-size": { Doc: "theme.ScrollBarSmallSize", Argsn: 0, @@ -163414,6 +195325,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // search-icon returns a resource containing the standard search icon for the current theme + // + // Result: + // * Go(fyne.Resource) "search-icon": { Doc: "theme.SearchIcon", Argsn: 0, @@ -163424,6 +195339,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // search-replace-icon returns a resource containing the standard search and replace icon for the current theme + // + // Result: + // * Go(fyne.Resource) "search-replace-icon": { Doc: "theme.SearchReplaceIcon", Argsn: 0, @@ -163434,6 +195353,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // selection-color returns the color for a selected element. + // + // Since: 2.1 + // + // Deprecated: Use Color(theme.ColorNameSelection) instead. + // + // Result: + // * Go(color.Color) "selection-color": { Doc: "theme.SelectionColor", Argsn: 0, @@ -163444,6 +195371,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // selection-radius-size returns the selection highlight radius size. + // + // Since: 2.4 + // + // Result: + // * decimal "selection-radius-size": { Doc: "theme.SelectionRadiusSize", Argsn: 0, @@ -163454,6 +195387,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // separator-color returns the color for the separator element. + // + // Since: 2.3 + // + // Deprecated: Use Color(theme.ColorNameSeparator) instead. + // + // Result: + // * Go(color.Color) "separator-color": { Doc: "theme.SeparatorColor", Argsn: 0, @@ -163464,6 +195405,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // separator-thickness-size is the standard thickness of the separator widget. + // + // Since: 2.0 + // + // Result: + // * decimal "separator-thickness-size": { Doc: "theme.SeparatorThicknessSize", Argsn: 0, @@ -163474,6 +195421,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // settings-icon returns a resource containing the standard settings icon for the current theme + // + // Result: + // * Go(fyne.Resource) "settings-icon": { Doc: "theme.SettingsIcon", Argsn: 0, @@ -163484,6 +195435,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // shadow-color returns the color (and translucency) for shadows used for indicating elevation. + // + // Deprecated: Use Color(theme.ColorNameShadow) instead. + // + // Result: + // * Go(color.Color) "shadow-color": { Doc: "theme.ShadowColor", Argsn: 0, @@ -163494,6 +195451,114 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // theme-size looks up the specified size for current theme. + // + // Since: 2.5 + // + // Args: + // * name - string + // Result: + // * decimal + "theme-size": { + Doc: "theme.Size", + Argsn: 1, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemeSizeName + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.ThemeSizeName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeSizeName) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("theme-size: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.ThemeSizeName(u) + } + } + res0 := theme.Size(arg0Val) + var res0Obj env.Object + res0Obj = *env.NewDecimal(float64(res0)) + return res0Obj + }, + }, + // size-for-widget looks up the specified size for the requested widget using the current theme. + // If the widget theme has been overridden that theme will be used. + // + // Since: 2.5 + // + // Args: + // * name - string + // * w - Go(fyne.Widget) + // Result: + // * decimal + "size-for-widget": { + Doc: "theme.SizeForWidget", + Argsn: 2, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var arg0Val fyne.ThemeSizeName + { + nat, natOk := arg0.(env.Native) + var natValOk bool + var natVal fyne.ThemeSizeName + if natOk { + natVal, natValOk = nat.Value.(fyne.ThemeSizeName) + } + if natValOk { + arg0Val = natVal + } else { + var u string + if vc, ok := arg0.(env.String); ok { + u = string(vc.Value) + } else { + ps.FailureFlag = true + return env.NewError("size-for-widget: arg 1: " + "expected string, but got " + objectDebugString(ps.Idx, arg0)) + } + arg0Val = fyne.ThemeSizeName(u) + } + } + var arg1Val fyne.Widget + switch v := arg1.(type) { + case env.RyeCtx: + var err error + arg1Val, err = ctxTo_fyne_Widget(ps, v) + if err != nil { + ps.FailureFlag = true + return env.NewError("size-for-widget: arg 2: " + err.Error()) + } + case env.Native: + if vc, ok := v.Value.(fyne.Widget); ok { + arg1Val = vc + } else { + ps.FailureFlag = true + return env.NewError("size-for-widget: arg 2: " + "expected native of type fyne.Widget, but got " + objectDebugString(ps.Idx, v)) + } + case env.Integer: + if v.Value != 0 { + ps.FailureFlag = true + return env.NewError("size-for-widget: arg 2: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + } + arg1Val = nil + default: + ps.FailureFlag = true + return env.NewError("size-for-widget: arg 2: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + } + res0 := theme.SizeForWidget(arg0Val, arg1Val) + var res0Obj env.Object + res0Obj = *env.NewDecimal(float64(res0)) + return res0Obj + }, + }, + // Result: + // * string "size-name-caption-text": { Doc: "Get theme.SizeNameCaptionText value", Argsn: 0, @@ -163503,6 +195568,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-heading-text": { Doc: "Get theme.SizeNameHeadingText value", Argsn: 0, @@ -163512,6 +195579,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-inline-icon": { Doc: "Get theme.SizeNameInlineIcon value", Argsn: 0, @@ -163521,6 +195590,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-inner-padding": { Doc: "Get theme.SizeNameInnerPadding value", Argsn: 0, @@ -163530,6 +195601,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-input-border": { Doc: "Get theme.SizeNameInputBorder value", Argsn: 0, @@ -163539,6 +195612,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-input-radius": { Doc: "Get theme.SizeNameInputRadius value", Argsn: 0, @@ -163548,6 +195623,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-line-spacing": { Doc: "Get theme.SizeNameLineSpacing value", Argsn: 0, @@ -163557,6 +195634,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-padding": { Doc: "Get theme.SizeNamePadding value", Argsn: 0, @@ -163566,6 +195645,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-scroll-bar": { Doc: "Get theme.SizeNameScrollBar value", Argsn: 0, @@ -163575,6 +195656,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string + "size-name-scroll-bar-radius": { + Doc: "Get theme.SizeNameScrollBarRadius value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewString(theme.SizeNameScrollBarRadius) + return resObj + }, + }, + // Result: + // * string "size-name-scroll-bar-small": { Doc: "Get theme.SizeNameScrollBarSmall value", Argsn: 0, @@ -163584,6 +195678,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-selection-radius": { Doc: "Get theme.SizeNameSelectionRadius value", Argsn: 0, @@ -163593,6 +195689,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-separator-thickness": { Doc: "Get theme.SizeNameSeparatorThickness value", Argsn: 0, @@ -163602,6 +195700,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-sub-heading-text": { Doc: "Get theme.SizeNameSubHeadingText value", Argsn: 0, @@ -163611,6 +195711,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * string "size-name-text": { Doc: "Get theme.SizeNameText value", Argsn: 0, @@ -163620,6 +195722,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // storage-icon returns a resource containing the standard storage icon for the current theme + // + // Result: + // * Go(fyne.Resource) "storage-icon": { Doc: "theme.StorageIcon", Argsn: 0, @@ -163630,6 +195736,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // success-color returns the theme's success foreground color. + // + // Since: 2.3 + // + // Deprecated: Use Color(theme.ColorNameSuccess) instead. + // + // Result: + // * Go(color.Color) "success-color": { Doc: "theme.SuccessColor", Argsn: 0, @@ -163640,6 +195754,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // symbol-font returns the font resource for the symbol font style. + // + // Since: 2.4 + // + // Result: + // * Go(fyne.Resource) "symbol-font": { Doc: "theme.SymbolFont", Argsn: 0, @@ -163650,6 +195770,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-bold-font returns the font resource for the bold font style. + // + // Result: + // * Go(fyne.Resource) "text-bold-font": { Doc: "theme.TextBoldFont", Argsn: 0, @@ -163660,6 +195784,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-bold-italic-font returns the font resource for the bold and italic font style. + // + // Result: + // * Go(fyne.Resource) "text-bold-italic-font": { Doc: "theme.TextBoldItalicFont", Argsn: 0, @@ -163670,6 +195798,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-color returns the theme's standard text color - this is actually the foreground color since 1.4. + // + // Deprecated: Use theme.ForegroundColor() colour instead. + // + // Result: + // * Go(color.Color) "text-color": { Doc: "theme.TextColor", Argsn: 0, @@ -163680,6 +195814,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-font returns the font resource for the regular font style. + // + // Result: + // * Go(fyne.Resource) "text-font": { Doc: "theme.TextFont", Argsn: 0, @@ -163690,6 +195828,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-heading-size returns the text size for header text. + // + // Since: 2.1 + // + // Result: + // * decimal "text-heading-size": { Doc: "theme.TextHeadingSize", Argsn: 0, @@ -163700,6 +195844,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-italic-font returns the font resource for the italic font style. + // + // Result: + // * Go(fyne.Resource) "text-italic-font": { Doc: "theme.TextItalicFont", Argsn: 0, @@ -163710,6 +195858,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-monospace-font returns the font resource for the monospace font face. + // + // Result: + // * Go(fyne.Resource) "text-monospace-font": { Doc: "theme.TextMonospaceFont", Argsn: 0, @@ -163720,6 +195872,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-size returns the standard text size. + // + // Result: + // * decimal "text-size": { Doc: "theme.TextSize", Argsn: 0, @@ -163730,6 +195886,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-sub-heading-size returns the text size for sub-header text. + // + // Since: 2.1 + // + // Result: + // * decimal "text-sub-heading-size": { Doc: "theme.TextSubHeadingSize", Argsn: 0, @@ -163740,6 +195902,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // upload-icon returns a resource containing the standard upload icon for the current theme + // + // Result: + // * Go(fyne.Resource) "upload-icon": { Doc: "theme.UploadIcon", Argsn: 0, @@ -163750,24 +195916,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, - "variant-dark": { - Doc: "Get theme.VariantDark value", - Argsn: 0, - Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var resObj env.Object - resObj = *env.NewInteger(int64(uint(theme.VariantDark))) - return resObj - }, - }, - "variant-light": { - Doc: "Get theme.VariantLight value", - Argsn: 0, - Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { - var resObj env.Object - resObj = *env.NewInteger(int64(uint(theme.VariantLight))) - return resObj - }, - }, + // view-full-screen-icon returns a resource containing the standard fullscreen icon for the current theme + // + // Result: + // * Go(fyne.Resource) "view-full-screen-icon": { Doc: "theme.ViewFullScreenIcon", Argsn: 0, @@ -163778,6 +195930,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // view-refresh-icon returns a resource containing the standard refresh icon for the current theme + // + // Result: + // * Go(fyne.Resource) "view-refresh-icon": { Doc: "theme.ViewRefreshIcon", Argsn: 0, @@ -163788,6 +195944,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // view-restore-icon returns a resource containing the standard exit fullscreen icon for the current theme + // + // Result: + // * Go(fyne.Resource) "view-restore-icon": { Doc: "theme.ViewRestoreIcon", Argsn: 0, @@ -163798,6 +195958,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // visibility-icon returns a resource containing the standard visibility icon for the current theme + // + // Result: + // * Go(fyne.Resource) "visibility-icon": { Doc: "theme.VisibilityIcon", Argsn: 0, @@ -163808,6 +195972,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // visibility-off-icon returns a resource containing the standard visibility off icon for the current theme + // + // Result: + // * Go(fyne.Resource) "visibility-off-icon": { Doc: "theme.VisibilityOffIcon", Argsn: 0, @@ -163818,6 +195986,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // volume-down-icon returns a resource containing the standard volume down icon for the current theme + // + // Result: + // * Go(fyne.Resource) "volume-down-icon": { Doc: "theme.VolumeDownIcon", Argsn: 0, @@ -163828,6 +196000,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // volume-mute-icon returns a resource containing the standard volume mute icon for the current theme + // + // Result: + // * Go(fyne.Resource) "volume-mute-icon": { Doc: "theme.VolumeMuteIcon", Argsn: 0, @@ -163838,6 +196014,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // volume-up-icon returns a resource containing the standard volume up icon for the current theme + // + // Result: + // * Go(fyne.Resource) "volume-up-icon": { Doc: "theme.VolumeUpIcon", Argsn: 0, @@ -163848,6 +196028,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // warning-color returns the theme's warning foreground color. + // + // Since: 2.3 + // + // Deprecated: Use Color(theme.ColorNameWarning) instead. + // + // Result: + // * Go(color.Color) "warning-color": { Doc: "theme.WarningColor", Argsn: 0, @@ -163858,6 +196046,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // warning-icon returns a resource containing the standard dialog warning icon for the current theme + // + // Result: + // * Go(fyne.Resource) "warning-icon": { Doc: "theme.WarningIcon", Argsn: 0, @@ -163868,6 +196060,58 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // window-close-icon returns a resource containing the window close icon for the current theme + // + // Since: 2.5 + // + // Result: + // * Go(fyne.Resource) + "window-close-icon": { + Doc: "theme.WindowCloseIcon", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.WindowCloseIcon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // window-maximize-icon returns a resource containing the window maximize icon for the current theme + // + // Since: 2.5 + // + // Result: + // * Go(fyne.Resource) + "window-maximize-icon": { + Doc: "theme.WindowMaximizeIcon", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.WindowMaximizeIcon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // window-minimize-icon returns a resource containing the window minimize icon for the current theme + // + // Since: 2.5 + // + // Result: + // * Go(fyne.Resource) + "window-minimize-icon": { + Doc: "theme.WindowMinimizeIcon", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := theme.WindowMinimizeIcon() + var res0Obj env.Object + res0Obj = ifaceToNative(ps.Idx, res0, "Go(fyne.Resource)") + return res0Obj + }, + }, + // zoom-fit-icon returns a resource containing the standard zoom fit icon for the current theme + // + // Result: + // * Go(fyne.Resource) "zoom-fit-icon": { Doc: "theme.ZoomFitIcon", Argsn: 0, @@ -163878,6 +196122,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // zoom-in-icon returns a resource containing the standard zoom in icon for the current theme + // + // Result: + // * Go(fyne.Resource) "zoom-in-icon": { Doc: "theme.ZoomInIcon", Argsn: 0, @@ -163888,6 +196136,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // zoom-out-icon returns a resource containing the standard zoom out icon for the current theme + // + // Result: + // * Go(fyne.Resource) "zoom-out-icon": { Doc: "theme.ZoomOutIcon", Argsn: 0, @@ -163898,6 +196150,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // validation-all-strings creates a validator that requires all of the passed string validators to pass. + // In short, it combines multiple string validators into one. + // + // Since: 2.2 + // + // Args: + // * validators - block[fn { string } -> Go(error)] + // Result: + // * fn { string } -> Go(error) "validation-all-strings": { Doc: "validation.NewAllStrings", Argsn: 1, @@ -163907,6 +196168,7 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]fyne.StringValidator, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] { nat, natOk := it.(env.Native) var natValOk bool @@ -163915,7 +196177,7 @@ var builtinsGenerated = map[string]*env.Builtin{ natVal, natValOk = nat.Value.(fyne.StringValidator) } if natValOk { - arg0Val[i] = natVal + (*iv) = natVal } else { var u func(string) error switch fn := it.(type) { @@ -163968,7 +196230,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("validation-all-strings: arg 1: " + "block item: " + "expected function or nil, but got " + objectDebugString(ps.Idx, fn)) } - arg0Val[i] = fyne.StringValidator(u) + (*iv) = fyne.StringValidator(u) } } } @@ -164006,6 +196268,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // validation-regexp creates a new validator that uses regular expression parsing. + // The validator will return nil if valid, otherwise returns an error with a reason text. + // + // Since: 1.4 + // + // Args: + // * regexpstr - string + // * reason - string + // Result: + // * fn { string } -> Go(error) "validation-regexp": { Doc: "validation.NewRegexp", Argsn: 2, @@ -164048,6 +196320,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // validation-time creates a new validator that verifies times using time.Parse. + // The validator will return nil if valid, otherwise returns an error with a reason text. + // The reference time for the format: Mon Jan 2 15:04:05 -0700 MST 2006. + // See time.Parse() for more information about the reference time: https://pkg.go.dev/time#Parse + // + // Since: 2.1 + // + // Args: + // * format - string + // Result: + // * fn { string } -> Go(error) "validation-time": { Doc: "validation.NewTime", Argsn: 1, @@ -164083,6 +196366,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // Result: + // * integer + "adaptive": { + Doc: "Get widget.Adaptive value", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + var resObj env.Object + resObj = *env.NewInteger(int64(int(widget.Adaptive))) + return resObj + }, + }, + // Result: + // * integer "button-align-center": { Doc: "Get widget.ButtonAlignCenter value", Argsn: 0, @@ -164092,6 +196388,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "button-align-leading": { Doc: "Get widget.ButtonAlignLeading value", Argsn: 0, @@ -164101,6 +196399,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "button-align-trailing": { Doc: "Get widget.ButtonAlignTrailing value", Argsn: 0, @@ -164110,6 +196410,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "button-icon-leading-text": { Doc: "Get widget.ButtonIconLeadingText value", Argsn: 0, @@ -164119,6 +196421,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "button-icon-trailing-text": { Doc: "Get widget.ButtonIconTrailingText value", Argsn: 0, @@ -164128,6 +196432,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "danger-importance": { Doc: "Get widget.DangerImportance value", Argsn: 0, @@ -164137,6 +196443,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "high-importance": { Doc: "Get widget.HighImportance value", Argsn: 0, @@ -164146,6 +196454,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "horizontal": { Doc: "Get widget.Horizontal value", Argsn: 0, @@ -164155,6 +196465,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "low-importance": { Doc: "Get widget.LowImportance value", Argsn: 0, @@ -164164,6 +196476,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "medium-importance": { Doc: "Get widget.MediumImportance value", Argsn: 0, @@ -164173,6 +196487,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // accordion creates a new accordion widget. + // + // Args: + // * items - block[Go(*widget.AccordionItem)] + // Result: + // * Go(*widget.Accordion) "accordion": { Doc: "widget.NewAccordion", Argsn: 1, @@ -164182,10 +196502,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]*widget.AccordionItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*widget.AccordionItem); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("accordion: arg 1: " + "block item: " + "expected native of type *widget.AccordionItem, but got " + objectDebugString(ps.Idx, v)) @@ -164195,7 +196516,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("accordion: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("accordion: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -164217,6 +196538,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // accordion-item creates a new item for an Accordion. + // + // Args: + // * title - string + // * detail - Go(fyne.CanvasObject) + // Result: + // * Go(*widget.AccordionItem) "accordion-item": { Doc: "widget.NewAccordionItem", Argsn: 2, @@ -164260,6 +196588,22 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // activity returns a widget for indicating activity + // + // Since: 2.5 + // + // Result: + // * Go(*widget.Activity) + "activity": { + Doc: "widget.NewActivity", + Argsn: 0, + Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { + res0 := widget.NewActivity() + var res0Obj env.Object + res0Obj = *env.NewNative(ps.Idx, res0, "Go(*widget.Activity)") + return res0Obj + }, + }, "base-widget": { Doc: "Create a new widget.BaseWidget struct", Argsn: 0, @@ -164270,6 +196614,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // button creates a new button widget with the set label and tap handler + // + // Args: + // * label - string + // * tapped - fn { } + // Result: + // * Go(*widget.Button) "button": { Doc: "widget.NewButton", Argsn: 2, @@ -164309,6 +196660,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // button-with-icon creates a new button widget with the specified label, themed icon and tap handler + // + // Args: + // * label - string + // * icon - Go(fyne.Resource) + // * tapped - fn { } + // Result: + // * Go(*widget.Button) "button-with-icon": { Doc: "widget.NewButtonWithIcon", Argsn: 3, @@ -164374,6 +196733,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // card creates a new card widget with the specified title, subtitle and content (all optional). + // + // Since: 1.4 + // + // Args: + // * title - string + // * subtitle - string + // * content - Go(fyne.CanvasObject) + // Result: + // * Go(*widget.Card) "card": { Doc: "widget.NewCard", Argsn: 3, @@ -164424,6 +196793,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // check creates a new check widget with the set label and change handler + // + // Args: + // * label - string + // * changed - fn { bool } + // Result: + // * Go(*widget.Check) "check": { Doc: "widget.NewCheck", Argsn: 2, @@ -164465,6 +196841,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // check-group creates a new check group widget with the set options and change handler + // + // Since: 2.1 + // + // Args: + // * options - block[string] + // * changed - fn { block[string] } + // Result: + // * Go(*widget.CheckGroup) "check-group": { Doc: "widget.NewCheckGroup", Argsn: 2, @@ -164474,8 +196859,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("check-group: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -164527,6 +196913,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // check-with-data returns a check widget connected with the specified data source. + // + // Since: 2.0 + // + // Args: + // * label - string + // * data - Go(binding.Bool) + // Result: + // * Go(*widget.Check) "check-with-data": { Doc: "widget.NewCheckWithData", Argsn: 2, @@ -164590,6 +196985,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // entry creates a new single line entry widget. + // + // Result: + // * Go(*widget.Entry) "entry": { Doc: "widget.NewEntry", Argsn: 0, @@ -164600,6 +196999,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // entry-with-data returns an Entry widget connected to the specified data source. + // + // Since: 2.0 + // + // Args: + // * data - Go(binding.String) + // Result: + // * Go(*widget.Entry) "entry-with-data": { Doc: "widget.NewEntryWithData", Argsn: 1, @@ -164636,6 +197043,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // widget-file-icon takes a filepath and creates an icon with an overlaid label using the detected mimetype and extension + // + // Since: 1.4 + // + // Args: + // * uri - Go(fyne.URI) + // Result: + // * Go(*widget.FileIcon) "widget-file-icon": { Doc: "widget.NewFileIcon", Argsn: 1, @@ -164672,6 +197087,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // form creates a new form widget with the specified rows of form items + // and (if any of them should be shown) a form controls row at the bottom + // + // Args: + // * items - block[Go(*widget.FormItem)] + // Result: + // * Go(*widget.Form) "form": { Doc: "widget.NewForm", Argsn: 1, @@ -164681,10 +197103,11 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]*widget.FormItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.Native: if vc, ok := v.Value.(*widget.FormItem); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("form: arg 1: " + "block item: " + "expected native of type *widget.FormItem, but got " + objectDebugString(ps.Idx, v)) @@ -164694,7 +197117,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("form: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("form: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -164716,6 +197139,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // form-item creates a new form item with the specified label text and input widget + // + // Args: + // * text - string + // * widget - Go(fyne.CanvasObject) + // Result: + // * Go(*widget.FormItem) "form-item": { Doc: "widget.NewFormItem", Argsn: 2, @@ -164759,6 +197189,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // widget-grid-wrap creates and returns a GridWrap widget for displaying items in + // a wrapping grid layout with scrolling and caching for performance. + // + // Since: 2.4 + // + // Args: + // * length - fn { } -> integer + // * create-item - fn { } -> Go(fyne.CanvasObject) + // * update-item - fn { integer Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.GridWrap) "widget-grid-wrap": { Doc: "widget.NewGridWrap", Argsn: 3, @@ -164898,6 +197339,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // grid-wrap-with-data creates a new GridWrap widget that will display the contents of the provided data. + // + // Since: 2.4 + // + // Args: + // * data - Go(binding.DataList) + // * create-item - fn { } -> Go(fyne.CanvasObject) + // * update-item - fn { Go(binding.DataItem) Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.GridWrap) "grid-wrap-with-data": { Doc: "widget.NewGridWrapWithData", Argsn: 3, @@ -165028,6 +197479,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // hyperlink creates a new hyperlink widget with the set text content + // + // Args: + // * text - string + // * url - *Go(url.URL) + // Result: + // * Go(*widget.Hyperlink) "hyperlink": { Doc: "widget.NewHyperlink", Argsn: 2, @@ -165074,6 +197532,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // hyperlink-with-style creates a new hyperlink widget with the set text content + // + // Args: + // * text - string + // * url - *Go(url.URL) + // * alignment - integer + // * style - Go(fyne.TextStyle) + // Result: + // * Go(*widget.Hyperlink) "hyperlink-with-style": { Doc: "widget.NewHyperlinkWithStyle", Argsn: 4, @@ -165144,7 +197611,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, - "icon": { + // widget-icon returns a new icon widget that displays a themed icon resource + // + // Args: + // * res - Go(fyne.Resource) + // Result: + // * Go(*widget.Icon) + "widget-icon": { Doc: "widget.NewIcon", Argsn: 1, Fn: func(ps *env.ProgramState, arg0, arg1, arg2, arg3, arg4 env.Object) env.Object { @@ -165155,24 +197628,24 @@ var builtinsGenerated = map[string]*env.Builtin{ arg0Val, err = ctxTo_fyne_Resource(ps, v) if err != nil { ps.FailureFlag = true - return env.NewError("icon: arg 1: " + err.Error()) + return env.NewError("widget-icon: arg 1: " + err.Error()) } case env.Native: if vc, ok := v.Value.(fyne.Resource); ok { arg0Val = vc } else { ps.FailureFlag = true - return env.NewError("icon: arg 1: " + "expected native of type fyne.Resource, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("widget-icon: arg 1: " + "expected native of type fyne.Resource, but got " + objectDebugString(ps.Idx, v)) } case env.Integer: if v.Value != 0 { ps.FailureFlag = true - return env.NewError("icon: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) + return env.NewError("widget-icon: arg 1: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } arg0Val = nil default: ps.FailureFlag = true - return env.NewError("icon: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) + return env.NewError("widget-icon: arg 1: " + "expected native, but got " + objectDebugString(ps.Idx, v)) } res0 := widget.NewIcon(arg0Val) var res0Obj env.Object @@ -165190,6 +197663,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // label creates a new label widget with the set text content + // + // Args: + // * text - string + // Result: + // * Go(*widget.Label) "label": { Doc: "widget.NewLabel", Argsn: 1, @@ -165207,6 +197686,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // label-with-data returns an Label widget connected to the specified data source. + // + // Since: 2.0 + // + // Args: + // * data - Go(binding.String) + // Result: + // * Go(*widget.Label) "label-with-data": { Doc: "widget.NewLabelWithData", Argsn: 1, @@ -165243,6 +197730,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // label-with-style creates a new label widget with the set text content + // + // Args: + // * text - string + // * alignment - integer + // * style - Go(fyne.TextStyle) + // Result: + // * Go(*widget.Label) "label-with-style": { Doc: "widget.NewLabelWithStyle", Argsn: 3, @@ -165294,6 +197789,17 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // list creates and returns a list widget for displaying items in + // a vertical layout with scrolling and caching for performance. + // + // Since: 1.4 + // + // Args: + // * length - fn { } -> integer + // * create-item - fn { } -> Go(fyne.CanvasObject) + // * update-item - fn { integer Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.List) "list": { Doc: "widget.NewList", Argsn: 3, @@ -165443,6 +197949,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // list-with-data creates a new list widget that will display the contents of the provided data. + // + // Since: 2.0 + // + // Args: + // * data - Go(binding.DataList) + // * create-item - fn { } -> Go(fyne.CanvasObject) + // * update-item - fn { Go(binding.DataItem) Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.List) "list-with-data": { Doc: "widget.NewListWithData", Argsn: 3, @@ -165573,6 +198089,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // widget-menu creates a new Menu. + // + // Args: + // * menu - Go(*fyne.Menu) + // Result: + // * Go(*widget.Menu) "widget-menu": { Doc: "widget.NewMenu", Argsn: 1, @@ -165602,6 +198124,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // modal-pop-up creates a new popUp for the specified content and displays it on the passed canvas. + // A modal PopUp blocks interactions with underlying elements, covered with a semi-transparent overlay. + // + // Args: + // * content - Go(fyne.CanvasObject) + // * canvas - Go(fyne.Canvas) + // Result: + // * Go(*widget.PopUp) "modal-pop-up": { Doc: "widget.NewModalPopUp", Argsn: 2, @@ -165664,6 +198194,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // multi-line-entry creates a new entry that allows multiple lines + // + // Result: + // * Go(*widget.Entry) "multi-line-entry": { Doc: "widget.NewMultiLineEntry", Argsn: 0, @@ -165684,6 +198218,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // password-entry creates a new entry password widget + // + // Result: + // * Go(*widget.Entry) "password-entry": { Doc: "widget.NewPasswordEntry", Argsn: 0, @@ -165694,6 +198232,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // pop-up creates a new popUp for the specified content and displays it on the passed canvas. + // + // Args: + // * content - Go(fyne.CanvasObject) + // * canvas - Go(fyne.Canvas) + // Result: + // * Go(*widget.PopUp) "pop-up": { Doc: "widget.NewPopUp", Argsn: 2, @@ -165756,6 +198301,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // pop-up-menu creates a new, reusable popup menu. You can show it using ShowAtPosition. + // + // Since: 2.0 + // + // Args: + // * menu - Go(*fyne.Menu) + // * c - Go(fyne.Canvas) + // Result: + // * Go(*widget.PopUpMenu) "pop-up-menu": { Doc: "widget.NewPopUpMenu", Argsn: 2, @@ -165811,6 +198365,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // progress-bar creates a new progress bar widget. + // The default Min is 0 and Max is 1, Values set should be between those numbers. + // The display will convert this to a percentage. + // + // Result: + // * Go(*widget.ProgressBar) "progress-bar": { Doc: "widget.NewProgressBar", Argsn: 0, @@ -165821,6 +198381,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // progress-bar-infinite creates a new progress bar widget that loops indefinitely from 0% -> 100% + // SetValue() is not defined for infinite progress bar + // To stop the looping progress and set the progress bar to 100%, call ProgressBarInfinite.Stop() + // + // Result: + // * Go(*widget.ProgressBarInfinite) "progress-bar-infinite": { Doc: "widget.NewProgressBarInfinite", Argsn: 0, @@ -165831,6 +198397,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // progress-bar-with-data returns a progress bar connected with the specified data source. + // + // Since: 2.0 + // + // Args: + // * data - Go(binding.Float) + // Result: + // * Go(*widget.ProgressBar) "progress-bar-with-data": { Doc: "widget.NewProgressBarWithData", Argsn: 1, @@ -165867,6 +198441,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // radio-group creates a new radio group widget with the set options and change handler + // + // Since: 1.4 + // + // Args: + // * options - block[string] + // * changed - fn { string } + // Result: + // * Go(*widget.RadioGroup) "radio-group": { Doc: "widget.NewRadioGroup", Argsn: 2, @@ -165876,8 +198459,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("radio-group: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -165923,6 +198507,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // rich-text returns a new RichText widget that renders the given text and segments. + // If no segments are specified it will be converted to a single segment using the default text settings. + // + // Since: 2.1 + // + // Args: + // * segments - block[Go(widget.RichTextSegment)] + // Result: + // * Go(*widget.RichText) "rich-text": { Doc: "widget.NewRichText", Argsn: 1, @@ -165932,17 +198525,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]widget.RichTextSegment, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_widget_RichTextSegment(ps, v) + (*iv), err = ctxTo_widget_RichTextSegment(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("rich-text: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(widget.RichTextSegment); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("rich-text: arg 1: " + "block item: " + "expected native of type widget.RichTextSegment, but got " + objectDebugString(ps.Idx, v)) @@ -165952,7 +198546,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("rich-text: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("rich-text: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -165974,6 +198568,14 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // rich-text-from-markdown configures a RichText widget by parsing the provided markdown content. + // + // Since: 2.1 + // + // Args: + // * content - string + // Result: + // * Go(*widget.RichText) "rich-text-from-markdown": { Doc: "widget.NewRichTextFromMarkdown", Argsn: 1, @@ -166001,6 +198603,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // rich-text-with-text returns a new RichText widget that renders the given text. + // The string will be converted to a single text segment using the default text settings. + // + // Since: 2.1 + // + // Args: + // * text - string + // Result: + // * Go(*widget.RichText) "rich-text-with-text": { Doc: "widget.NewRichTextWithText", Argsn: 1, @@ -166018,6 +198629,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select creates a new select widget with the set list of options and changes handler + // + // Args: + // * options - block[string] + // * changed - fn { string } + // Result: + // * Go(*widget.Select) "select": { Doc: "widget.NewSelect", Argsn: 2, @@ -166027,8 +198645,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("select: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -166074,6 +198693,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // select-entry creates a SelectEntry. + // + // Args: + // * options - block[string] + // Result: + // * Go(*widget.SelectEntry) "select-entry": { Doc: "widget.NewSelectEntry", Argsn: 1, @@ -166083,8 +198708,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] if vc, ok := it.(env.String); ok { - arg0Val[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("select-entry: arg 1: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -166106,6 +198732,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // separator creates a new separator. + // + // Since: 1.4 + // + // Result: + // * Go(*widget.Separator) "separator": { Doc: "widget.NewSeparator", Argsn: 0, @@ -166126,6 +198758,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // simple-renderer creates a new SimpleRenderer to render a widget using a + // single fyne.CanvasObject. + // + // Since: 2.1 + // + // Args: + // * object - Go(fyne.CanvasObject) + // Result: + // * Go(fyne.WidgetRenderer) "simple-renderer": { Doc: "widget.NewSimpleRenderer", Argsn: 1, @@ -166162,6 +198803,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // slider returns a basic slider. + // + // Args: + // * min - decimal + // * max - decimal + // Result: + // * Go(*widget.Slider) "slider": { Doc: "widget.NewSlider", Argsn: 2, @@ -166186,6 +198834,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // slider-with-data returns a slider connected with the specified data source. + // + // Since: 2.0 + // + // Args: + // * min - decimal + // * max - decimal + // * data - Go(binding.Float) + // Result: + // * Go(*widget.Slider) "slider-with-data": { Doc: "widget.NewSliderWithData", Argsn: 3, @@ -166236,6 +198894,19 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // table returns a new performant table widget defined by the passed functions. + // The first returns the data size in rows and columns, second parameter is a function that returns cell + // template objects that can be cached and the third is used to apply data at specified data location to the + // passed template CanvasObject. + // + // Since: 1.4 + // + // Args: + // * length - fn { } -> [ integer integer ] + // * create - fn { } -> Go(fyne.CanvasObject) + // * update - fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.Table) "table": { Doc: "widget.NewTable", Argsn: 3, @@ -166416,6 +199087,20 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // table-with-headers returns a new performant table widget defined by the passed functions including sticky headers. + // The first returns the data size in rows and columns, second parameter is a function that returns cell + // template objects that can be cached and the third is used to apply data at specified data location to the + // passed template CanvasObject. + // The row and column headers will stick to the leading and top edges of the table and contain "1-10" and "A-Z" formatted labels. + // + // Since: 2.4 + // + // Args: + // * length - fn { } -> [ integer integer ] + // * create - fn { } -> Go(fyne.CanvasObject) + // * update - fn { Go(widget.TableCellID) Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.Table) "table-with-headers": { Doc: "widget.NewTableWithHeaders", Argsn: 3, @@ -166586,6 +199271,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // text-grid creates a new empty TextGrid widget. + // + // Result: + // * Go(*widget.TextGrid) "text-grid": { Doc: "widget.NewTextGrid", Argsn: 0, @@ -166606,6 +199295,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // text-grid-from-string creates a new TextGrid widget with the specified string content. + // + // Args: + // * content - string + // Result: + // * Go(*widget.TextGrid) "text-grid-from-string": { Doc: "widget.NewTextGridFromString", Argsn: 1, @@ -166643,6 +199338,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // toolbar creates a new toolbar widget. + // + // Args: + // * items - block[Go(widget.ToolbarItem)] + // Result: + // * Go(*widget.Toolbar) "toolbar": { Doc: "widget.NewToolbar", Argsn: 1, @@ -166652,17 +199353,18 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: arg0Val = make([]widget.ToolbarItem, len(v.Series.S)) for i, it := range v.Series.S { + iv := &arg0Val[i] switch v := it.(type) { case env.RyeCtx: var err error - arg0Val[i], err = ctxTo_widget_ToolbarItem(ps, v) + (*iv), err = ctxTo_widget_ToolbarItem(ps, v) if err != nil { ps.FailureFlag = true return env.NewError("toolbar: arg 1: " + "block item: " + err.Error()) } case env.Native: if vc, ok := v.Value.(widget.ToolbarItem); ok { - arg0Val[i] = vc + (*iv) = vc } else { ps.FailureFlag = true return env.NewError("toolbar: arg 1: " + "block item: " + "expected native of type widget.ToolbarItem, but got " + objectDebugString(ps.Idx, v)) @@ -166672,7 +199374,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ps.FailureFlag = true return env.NewError("toolbar: arg 1: " + "block item: " + "expected integer to be 0 or nil, but got " + strconv.FormatInt(v.Value, 10)) } - arg0Val[i] = nil + (*iv) = nil default: ps.FailureFlag = true return env.NewError("toolbar: arg 1: " + "block item: " + "expected native, but got " + objectDebugString(ps.Idx, v)) @@ -166694,6 +199396,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // toolbar-action returns a new push button style ToolbarItem + // + // Args: + // * icon - Go(fyne.Resource) + // * on-activated - fn { } + // Result: + // * Go(*widget.ToolbarAction) "toolbar-action": { Doc: "widget.NewToolbarAction", Argsn: 2, @@ -166752,6 +199461,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // toolbar-separator returns a new separator item for a Toolbar to assist with ToolbarItem grouping + // + // Result: + // * Go(*widget.ToolbarSeparator) "toolbar-separator": { Doc: "widget.NewToolbarSeparator", Argsn: 0, @@ -166762,6 +199475,10 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // toolbar-spacer returns a new spacer item for a Toolbar to assist with ToolbarItem alignment + // + // Result: + // * Go(*widget.ToolbarSpacer) "toolbar-spacer": { Doc: "widget.NewToolbarSpacer", Argsn: 0, @@ -166772,6 +199489,21 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tree returns a new performant tree widget defined by the passed functions. + // childUIDs returns the child TreeNodeIDs of the given node. + // isBranch returns true if the given node is a branch, false if it is a leaf. + // create returns a new template object that can be cached. + // update is used to apply data at specified data location to the passed template CanvasObject. + // + // Since: 1.4 + // + // Args: + // * child-ui-ds - fn { string } -> block[string] + // * is-branch - fn { string } -> bool + // * create - fn { bool } -> Go(fyne.CanvasObject) + // * update - fn { string bool Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.Tree) "tree": { Doc: "widget.NewTree", Argsn: 4, @@ -166794,6 +199526,7 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: res = make([]widget.TreeNodeID, len(v.Series.S)) for i, it := range v.Series.S { + iv := &res[i] { nat, natOk := it.(env.Native) var natValOk bool @@ -166802,7 +199535,7 @@ var builtinsGenerated = map[string]*env.Builtin{ natVal, natValOk = nat.Value.(widget.TreeNodeID) } if natValOk { - res[i] = natVal + (*iv) = natVal } else { var u string if vc, ok := it.(env.String); ok { @@ -166816,7 +199549,7 @@ var builtinsGenerated = map[string]*env.Builtin{ ) return res } - res[i] = widget.TreeNodeID(u) + (*iv) = widget.TreeNodeID(u) } } } @@ -166992,6 +199725,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tree-with-data creates a new tree widget that will display the contents of the provided data. + // + // Since: 2.4 + // + // Args: + // * data - Go(binding.DataTree) + // * create-item - fn { bool } -> Go(fyne.CanvasObject) + // * update-item - fn { Go(binding.DataItem) bool Go(fyne.CanvasObject) } + // Result: + // * Go(*widget.Tree) "tree-with-data": { Doc: "widget.NewTreeWithData", Argsn: 3, @@ -167125,6 +199868,15 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // tree-with-strings creates a new tree with the given string map. + // Data must contain a mapping for the root, which defaults to empty string (""). + // + // Since: 1.4 + // + // Args: + // * data - dict[string, block[string]] + // Result: + // * Go(*widget.Tree) "tree-with-strings": { Doc: "widget.NewTreeWithStrings", Argsn: 1, @@ -167150,8 +199902,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("tree-with-strings: arg 1: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -167178,8 +199931,9 @@ var builtinsGenerated = map[string]*env.Builtin{ case env.Block: mapV = make([]string, len(v.Series.S)) for i, it := range v.Series.S { + iv := &mapV[i] if vc, ok := it.(env.String); ok { - mapV[i] = string(vc.Value) + (*iv) = string(vc.Value) } else { ps.FailureFlag = true return env.NewError("tree-with-strings: arg 1: " + "map value: " + "block item: " + "expected string, but got " + objectDebugString(ps.Idx, it)) @@ -167213,6 +199967,12 @@ var builtinsGenerated = map[string]*env.Builtin{ return res0Obj }, }, + // show-modal-pop-up creates a new popUp for the specified content and displays it on the passed canvas. + // A modal PopUp blocks interactions with underlying elements, covered with a semi-transparent overlay. + // + // Args: + // * content - Go(fyne.CanvasObject) + // * canvas - Go(fyne.Canvas) "show-modal-pop-up": { Doc: "widget.ShowModalPopUp", Argsn: 2, @@ -167273,6 +200033,11 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // show-pop-up creates a new popUp for the specified content and displays it on the passed canvas. + // + // Args: + // * content - Go(fyne.CanvasObject) + // * canvas - Go(fyne.Canvas) "show-pop-up": { Doc: "widget.ShowPopUp", Argsn: 2, @@ -167333,6 +200098,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // show-pop-up-at-position creates a new popUp for the specified content at the specified absolute position. + // It will then display the popup on the passed canvas. + // + // Args: + // * content - Go(fyne.CanvasObject) + // * canvas - Go(fyne.Canvas) + // * pos - Go(fyne.Position) "show-pop-up-at-position": { Doc: "widget.ShowPopUpAtPosition", Argsn: 3, @@ -167406,6 +200178,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // show-pop-up-at-relative-position shows a new popUp for the specified content at the given position relative to stated object. + // It will then display the popup on the passed canvas. + // + // Since 2.4 + // + // Args: + // * content - Go(fyne.CanvasObject) + // * canvas - Go(fyne.Canvas) + // * rel - Go(fyne.Position) + // * to - Go(fyne.CanvasObject) "show-pop-up-at-relative-position": { Doc: "widget.ShowPopUpAtRelativePosition", Argsn: 4, @@ -167505,6 +200287,13 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // show-pop-up-menu-at-position creates a PopUp menu populated with items from the passed menu structure. + // It will automatically be positioned at the provided location and shown as an overlay on the specified canvas. + // + // Args: + // * menu - Go(*fyne.Menu) + // * c - Go(fyne.Canvas) + // * pos - Go(fyne.Position) "show-pop-up-menu-at-position": { Doc: "widget.ShowPopUpMenuAtPosition", Argsn: 3, @@ -167571,6 +200360,16 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // show-pop-up-menu-at-relative-position creates a PopUp menu populated with meny items from the passed menu structure. + // It will automatically be positioned at the given position relative to stated object and shown as an overlay on the specified canvas. + // + // Since 2.4 + // + // Args: + // * menu - Go(*fyne.Menu) + // * c - Go(fyne.Canvas) + // * rel - Go(fyne.Position) + // * to - Go(fyne.CanvasObject) "show-pop-up-menu-at-relative-position": { Doc: "widget.ShowPopUpMenuAtRelativePosition", Argsn: 4, @@ -167663,6 +200462,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return nil }, }, + // Result: + // * integer "success-importance": { Doc: "Get widget.SuccessImportance value", Argsn: 0, @@ -167672,6 +200473,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(widget.TextGridStyle) "text-grid-style-default": { Doc: "Get widget.TextGridStyleDefault value", Argsn: 0, @@ -167681,6 +200484,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * Go(widget.TextGridStyle) "text-grid-style-whitespace": { Doc: "Get widget.TextGridStyleWhitespace value", Argsn: 0, @@ -167690,6 +200495,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "vertical": { Doc: "Get widget.Vertical value", Argsn: 0, @@ -167699,6 +200506,8 @@ var builtinsGenerated = map[string]*env.Builtin{ return resObj }, }, + // Result: + // * integer "warning-importance": { Doc: "Get widget.WarningImportance value", Argsn: 0, diff --git a/examples/demo.rye b/examples/demo.rye index 000dca7..2295a27 100644 --- a/examples/demo.rye +++ b/examples/demo.rye @@ -25,18 +25,18 @@ do\in fyne { separator label "Icons" center [ h-box [ - icon file-icon - icon document-save-icon - icon document-create-icon - icon delete-icon - icon content-undo-icon - icon content-redo-icon + widget-icon file-icon + widget-icon document-save-icon + widget-icon document-create-icon + widget-icon delete-icon + widget-icon content-undo-icon + widget-icon content-redo-icon ;file-icon storage-uri "file:///nonexistant/path/image.png" ] ] separator label "Infinite progress bar" - progress-bar-infinite + progress-bar-infinite |start ] tab-item "Entry" v-scroll v-box [ @@ -94,6 +94,7 @@ do\in fyne { } ] ] + tab-item "Misc" v-scroll v-box [ accordion [ diff --git a/examples/list_gastown.rye b/examples/list_gastown.rye index ceaf1e7..0a38e21 100644 --- a/examples/list_gastown.rye +++ b/examples/list_gastown.rye @@ -16,7 +16,6 @@ do\in fyne { with win { .set-content lst , .set-title "Gastown games players" , - .resize size 200.0 180.0 , .show-and-run } } diff --git a/examples/progress-clock/data-ctx.rye b/examples/progress-clock/data-ctx.rye index 41dbd9d..661cafc 100644 --- a/examples/progress-clock/data-ctx.rye +++ b/examples/progress-clock/data-ctx.rye @@ -14,16 +14,14 @@ Data: context { started: false } - sessions: ref spreadsheet { "type" "minutes" "title" "percentage" } + sessions: ref spreadsheet { "type" "minutes" "title" } { -; "work" 45 "spravi mobi na play" 70 + "work" 45 "spravi mobi na play" + "work" 25 "reši bug uporabnici @popsi!!!" } work-sessions?: does { sessions |deref |where-equal "type" "work" } - add-current-work-session!: does { sessions .add-rows! [ "work" Work/current-minutes Work/current-title to-integer 100 * Work/current-progress? ] } - - save-all: does { sessions .to-bson |write* %sessions.spr.bson } - load-all: does { read\bytes %sessions.spr.bson |^fix { save-all } |from-bson |ref |change! 'sessions } + add-sessions!: does { sessions .add-rows! { "work" 34 "this is magic" } } Leisure: context { from: 15 @@ -33,6 +31,4 @@ Data: context { current-minutes: 0 started: false } - - load-all } diff --git a/examples/progress-clock/work-tab.rye b/examples/progress-clock/work-tab.rye index 326cef3..2e710ea 100644 --- a/examples/progress-clock/work-tab.rye +++ b/examples/progress-clock/work-tab.rye @@ -9,27 +9,16 @@ show-add-work-form: fn { hb } { .objects! [ v-box [ nil nil label "named" - button "Add" closure { } { Data/Work/start! to-integer minw .text? titlw .text? , hb .show-stop-form } + button "Add" closure { } { Data/Work/start! to-integer minw .text? titlw .text? , hb .show-stop-form , Data/add-sessions! } [ titlw: entry ] ] ] } show-stop-form: fn { hb } { .objects! [ - button "Stop session" closure { } { Data/add-current-work-session! , Data/save-all , Data/Work/stop! , hbw .show-toolbar , work-list .refresh } + button "Stop session" closure { } { Data/Work/stop! } ] } -show-toolbar: fn { hb } { .objects! [ - button "Start session" does { hbw .show-add-work-form } - ] } - -work-list: list does { length? Data/work-sessions? } -does { h-box [ label "title" label "minutes" label "percent" ] } -fn { i box } { set! box .objects? { title minutes percent } - minutes .set-text to-string 1 <- i <- Data/work-sessions? - title .set-text 2 <- i <- Data/work-sessions? - percent .set-text concat to-string 3 <- i <- Data/work-sessions? "%" } - work-cont: border v-box [ label "Today [hours]" @@ -40,10 +29,15 @@ v-box [ ] nil nil nil [ - work-list + wrk-lst: list does { length? Data/work-sessions? } + does { h-box [ label "title" label "minutes" ] } + fn { i box } { set! box .objects? { title minutes } + minutes .set-text to-string 1 <- i <- Data/work-sessions? + title .set-text 2 <- i <- Data/work-sessions? } ] update-work-tab: fn { Data } { + ; enter-console "GOGO" if Data/Work/started { Data/Work/current-progress? |set-value* pw lw .set-text Data/Work/current-title diff --git a/fyne/bindings.txt b/fyne/bindings.txt index f4b3ce5..b8a57e2 100644 --- a/fyne/bindings.txt +++ b/fyne/bindings.txt @@ -1,5 +1,9 @@ # This file contains a list of bindings, which can be enabled/disabled by placing them under the according section. # Re-run `go generate ./...` to update and sort the list. +# Renaming a binding: e.g. `some-func => my-some-func` or `Go(*X)//method => my-method` +# Bindings placed in the export section will be exposed as a public function in the generated file. + +[export] [enabled] Go(*app.SettingsSchema)//cloud-config! "Set *app.SettingsSchema CloudConfig value" @@ -82,6 +86,7 @@ Go(*canvas.LinearGradient)//generate "(*canvas.LinearGradien Go(*canvas.LinearGradient)//hide "(*canvas.LinearGradient).Hide" Go(*canvas.LinearGradient)//move "(*canvas.LinearGradient).Move" Go(*canvas.LinearGradient)//refresh "(*canvas.LinearGradient).Refresh" +Go(*canvas.LinearGradient)//resize "(*canvas.LinearGradient).Resize" Go(*canvas.LinearGradient)//start-color! "Set *canvas.LinearGradient StartColor value" Go(*canvas.LinearGradient)//start-color? "Get *canvas.LinearGradient StartColor value" Go(*canvas.RadialGradient)//center-offset-x! "Set *canvas.RadialGradient CenterOffsetX value" @@ -94,6 +99,7 @@ Go(*canvas.RadialGradient)//generate "(*canvas.RadialGradien Go(*canvas.RadialGradient)//hide "(*canvas.RadialGradient).Hide" Go(*canvas.RadialGradient)//move "(*canvas.RadialGradient).Move" Go(*canvas.RadialGradient)//refresh "(*canvas.RadialGradient).Refresh" +Go(*canvas.RadialGradient)//resize "(*canvas.RadialGradient).Resize" Go(*canvas.RadialGradient)//start-color! "Set *canvas.RadialGradient StartColor value" Go(*canvas.RadialGradient)//start-color? "Get *canvas.RadialGradient StartColor value" Go(*canvas.Raster)//alpha "(*canvas.Raster).Alpha" @@ -123,6 +129,8 @@ Go(*canvas.Text)//alignment! "Set *canvas.Text Align Go(*canvas.Text)//alignment? "Get *canvas.Text Alignment value" Go(*canvas.Text)//color! "Set *canvas.Text Color value" Go(*canvas.Text)//color? "Get *canvas.Text Color value" +Go(*canvas.Text)//font-source! "Set *canvas.Text FontSource value" +Go(*canvas.Text)//font-source? "Get *canvas.Text FontSource value" Go(*canvas.Text)//hide "(*canvas.Text).Hide" Go(*canvas.Text)//min-size "(*canvas.Text).MinSize" Go(*canvas.Text)//move "(*canvas.Text).Move" @@ -174,6 +182,7 @@ Go(*container.AppTabs)//set-items "(*container.AppTabs).S Go(*container.AppTabs)//set-tab-location "(*container.AppTabs).SetTabLocation" Go(*container.AppTabs)//show "(*container.AppTabs).Show" Go(*container.AppTabs)//size "(*container.AppTabs).Size" +Go(*container.AppTabs)//theme "(*container.AppTabs).Theme" Go(*container.AppTabs)//visible "(*container.AppTabs).Visible" Go(*container.DocTabs)//append "(*container.DocTabs).Append" Go(*container.DocTabs)//base-widget! "Set *container.DocTabs BaseWidget value" @@ -214,7 +223,63 @@ Go(*container.DocTabs)//set-items "(*container.DocTabs).S Go(*container.DocTabs)//set-tab-location "(*container.DocTabs).SetTabLocation" Go(*container.DocTabs)//show "(*container.DocTabs).Show" Go(*container.DocTabs)//size "(*container.DocTabs).Size" +Go(*container.DocTabs)//theme "(*container.DocTabs).Theme" Go(*container.DocTabs)//visible "(*container.DocTabs).Visible" +Go(*container.InnerWindow)//base-widget! "Set *container.InnerWindow BaseWidget value" +Go(*container.InnerWindow)//base-widget? "Get *container.InnerWindow BaseWidget value" +Go(*container.InnerWindow)//close "(*container.InnerWindow).Close" +Go(*container.InnerWindow)//close-intercept! "Set *container.InnerWindow CloseIntercept value" +Go(*container.InnerWindow)//close-intercept? "Get *container.InnerWindow CloseIntercept value" +Go(*container.InnerWindow)//create-renderer "(*container.InnerWindow).CreateRenderer" +Go(*container.InnerWindow)//extend-base-widget "(*container.InnerWindow).ExtendBaseWidget" +Go(*container.InnerWindow)//hidden! "Set *container.InnerWindow Hidden value" +Go(*container.InnerWindow)//hidden? "Get *container.InnerWindow Hidden value" +Go(*container.InnerWindow)//hide "(*container.InnerWindow).Hide" +Go(*container.InnerWindow)//icon! "Set *container.InnerWindow Icon value" +Go(*container.InnerWindow)//icon? "Get *container.InnerWindow Icon value" +Go(*container.InnerWindow)//min-size "(*container.InnerWindow).MinSize" +Go(*container.InnerWindow)//move "(*container.InnerWindow).Move" +Go(*container.InnerWindow)//on-dragged! "Set *container.InnerWindow OnDragged value" +Go(*container.InnerWindow)//on-dragged? "Get *container.InnerWindow OnDragged value" +Go(*container.InnerWindow)//on-maximized! "Set *container.InnerWindow OnMaximized value" +Go(*container.InnerWindow)//on-maximized? "Get *container.InnerWindow OnMaximized value" +Go(*container.InnerWindow)//on-minimized! "Set *container.InnerWindow OnMinimized value" +Go(*container.InnerWindow)//on-minimized? "Get *container.InnerWindow OnMinimized value" +Go(*container.InnerWindow)//on-resized! "Set *container.InnerWindow OnResized value" +Go(*container.InnerWindow)//on-resized? "Get *container.InnerWindow OnResized value" +Go(*container.InnerWindow)//on-tapped-bar! "Set *container.InnerWindow OnTappedBar value" +Go(*container.InnerWindow)//on-tapped-bar? "Get *container.InnerWindow OnTappedBar value" +Go(*container.InnerWindow)//on-tapped-icon! "Set *container.InnerWindow OnTappedIcon value" +Go(*container.InnerWindow)//on-tapped-icon? "Get *container.InnerWindow OnTappedIcon value" +Go(*container.InnerWindow)//position "(*container.InnerWindow).Position" +Go(*container.InnerWindow)//refresh "(*container.InnerWindow).Refresh" +Go(*container.InnerWindow)//resize "(*container.InnerWindow).Resize" +Go(*container.InnerWindow)//set-content "(*container.InnerWindow).SetContent" +Go(*container.InnerWindow)//set-padded "(*container.InnerWindow).SetPadded" +Go(*container.InnerWindow)//set-title "(*container.InnerWindow).SetTitle" +Go(*container.InnerWindow)//show "(*container.InnerWindow).Show" +Go(*container.InnerWindow)//size "(*container.InnerWindow).Size" +Go(*container.InnerWindow)//theme "(*container.InnerWindow).Theme" +Go(*container.InnerWindow)//visible "(*container.InnerWindow).Visible" +Go(*container.MultipleWindows)//add "(*container.MultipleWindows).Add" +Go(*container.MultipleWindows)//base-widget! "Set *container.MultipleWindows BaseWidget value" +Go(*container.MultipleWindows)//base-widget? "Get *container.MultipleWindows BaseWidget value" +Go(*container.MultipleWindows)//create-renderer "(*container.MultipleWindows).CreateRenderer" +Go(*container.MultipleWindows)//extend-base-widget "(*container.MultipleWindows).ExtendBaseWidget" +Go(*container.MultipleWindows)//hidden! "Set *container.MultipleWindows Hidden value" +Go(*container.MultipleWindows)//hidden? "Get *container.MultipleWindows Hidden value" +Go(*container.MultipleWindows)//hide "(*container.MultipleWindows).Hide" +Go(*container.MultipleWindows)//min-size "(*container.MultipleWindows).MinSize" +Go(*container.MultipleWindows)//move "(*container.MultipleWindows).Move" +Go(*container.MultipleWindows)//position "(*container.MultipleWindows).Position" +Go(*container.MultipleWindows)//refresh "(*container.MultipleWindows).Refresh" +Go(*container.MultipleWindows)//resize "(*container.MultipleWindows).Resize" +Go(*container.MultipleWindows)//show "(*container.MultipleWindows).Show" +Go(*container.MultipleWindows)//size "(*container.MultipleWindows).Size" +Go(*container.MultipleWindows)//theme "(*container.MultipleWindows).Theme" +Go(*container.MultipleWindows)//visible "(*container.MultipleWindows).Visible" +Go(*container.MultipleWindows)//windows! "Set *container.MultipleWindows Windows value" +Go(*container.MultipleWindows)//windows? "Get *container.MultipleWindows Windows value" Go(*container.Split)//base-widget! "Set *container.Split BaseWidget value" Go(*container.Split)//base-widget? "Get *container.Split BaseWidget value" Go(*container.Split)//create-renderer "(*container.Split).CreateRenderer" @@ -236,6 +301,7 @@ Go(*container.Split)//resize "(*container.Split).Res Go(*container.Split)//set-offset "(*container.Split).SetOffset" Go(*container.Split)//show "(*container.Split).Show" Go(*container.Split)//size "(*container.Split).Size" +Go(*container.Split)//theme "(*container.Split).Theme" Go(*container.Split)//trailing! "Set *container.Split Trailing value" Go(*container.Split)//trailing? "Get *container.Split Trailing value" Go(*container.Split)//visible "(*container.Split).Visible" @@ -246,6 +312,25 @@ Go(*container.TabItem)//icon! "Set *container.TabItem Go(*container.TabItem)//icon? "Get *container.TabItem Icon value" Go(*container.TabItem)//text! "Set *container.TabItem Text value" Go(*container.TabItem)//text? "Get *container.TabItem Text value" +Go(*container.ThemeOverride)//base-widget! "Set *container.ThemeOverride BaseWidget value" +Go(*container.ThemeOverride)//base-widget? "Get *container.ThemeOverride BaseWidget value" +Go(*container.ThemeOverride)//content! "Set *container.ThemeOverride Content value" +Go(*container.ThemeOverride)//content? "Get *container.ThemeOverride Content value" +Go(*container.ThemeOverride)//create-renderer "(*container.ThemeOverride).CreateRenderer" +Go(*container.ThemeOverride)//extend-base-widget "(*container.ThemeOverride).ExtendBaseWidget" +Go(*container.ThemeOverride)//hidden! "Set *container.ThemeOverride Hidden value" +Go(*container.ThemeOverride)//hidden? "Get *container.ThemeOverride Hidden value" +Go(*container.ThemeOverride)//hide "(*container.ThemeOverride).Hide" +Go(*container.ThemeOverride)//min-size "(*container.ThemeOverride).MinSize" +Go(*container.ThemeOverride)//move "(*container.ThemeOverride).Move" +Go(*container.ThemeOverride)//position "(*container.ThemeOverride).Position" +Go(*container.ThemeOverride)//refresh "(*container.ThemeOverride).Refresh" +Go(*container.ThemeOverride)//resize "(*container.ThemeOverride).Resize" +Go(*container.ThemeOverride)//show "(*container.ThemeOverride).Show" +Go(*container.ThemeOverride)//size "(*container.ThemeOverride).Size" +Go(*container.ThemeOverride)//theme! "Set *container.ThemeOverride Theme value" +Go(*container.ThemeOverride)//theme? "Get *container.ThemeOverride Theme value" +Go(*container.ThemeOverride)//visible "(*container.ThemeOverride).Visible" Go(*desktop.CustomShortcut)//key "(*desktop.CustomShortcut).Key" Go(*desktop.CustomShortcut)//key-name! "Set *desktop.CustomShortcut KeyName value" Go(*desktop.CustomShortcut)//key-name? "Get *desktop.CustomShortcut KeyName value" @@ -287,6 +372,7 @@ Go(*dialog.FileDialog)//set-file-name "(*dialog.FileDialog).S Go(*dialog.FileDialog)//set-filter "(*dialog.FileDialog).SetFilter" Go(*dialog.FileDialog)//set-location "(*dialog.FileDialog).SetLocation" Go(*dialog.FileDialog)//set-on-closed "(*dialog.FileDialog).SetOnClosed" +Go(*dialog.FileDialog)//set-view "(*dialog.FileDialog).SetView" Go(*dialog.FileDialog)//show "(*dialog.FileDialog).Show" Go(*dialog.FormDialog)//submit "(*dialog.FormDialog).Submit" Go(*dialog.ProgressDialog)//set-value "(*dialog.ProgressDialog).SetValue" @@ -426,9 +512,15 @@ Go(*fyne.ShortcutPaste)//clipboard? "Get *fyne.ShortcutPast Go(*fyne.ShortcutPaste)//key "(*fyne.ShortcutPaste).Key" Go(*fyne.ShortcutPaste)//mod "(*fyne.ShortcutPaste).Mod" Go(*fyne.ShortcutPaste)//shortcut-name "(*fyne.ShortcutPaste).ShortcutName" +Go(*fyne.ShortcutRedo)//key "(*fyne.ShortcutRedo).Key" +Go(*fyne.ShortcutRedo)//mod "(*fyne.ShortcutRedo).Mod" +Go(*fyne.ShortcutRedo)//shortcut-name "(*fyne.ShortcutRedo).ShortcutName" Go(*fyne.ShortcutSelectAll)//key "(*fyne.ShortcutSelectAll).Key" Go(*fyne.ShortcutSelectAll)//mod "(*fyne.ShortcutSelectAll).Mod" Go(*fyne.ShortcutSelectAll)//shortcut-name "(*fyne.ShortcutSelectAll).ShortcutName" +Go(*fyne.ShortcutUndo)//key "(*fyne.ShortcutUndo).Key" +Go(*fyne.ShortcutUndo)//mod "(*fyne.ShortcutUndo).Mod" +Go(*fyne.ShortcutUndo)//shortcut-name "(*fyne.ShortcutUndo).ShortcutName" Go(*fyne.Size)//add "fyne.Size.Add" Go(*fyne.Size)//add-width-height "fyne.Size.AddWidthHeight" Go(*fyne.Size)//components "fyne.Size.Components" @@ -458,12 +550,42 @@ Go(*fyne.TextStyle)//symbol! "Set *fyne.TextStyle Sy Go(*fyne.TextStyle)//symbol? "Get *fyne.TextStyle Symbol value" Go(*fyne.TextStyle)//tab-width! "Set *fyne.TextStyle TabWidth value" Go(*fyne.TextStyle)//tab-width? "Get *fyne.TextStyle TabWidth value" +Go(*fyne.TextStyle)//underline! "Set *fyne.TextStyle Underline value" +Go(*fyne.TextStyle)//underline? "Get *fyne.TextStyle Underline value" Go(*fyne_driver.AndroidContext)//ctx! "Set *fyne_driver.AndroidContext Ctx value" Go(*fyne_driver.AndroidContext)//ctx? "Get *fyne_driver.AndroidContext Ctx value" Go(*fyne_driver.AndroidContext)//env! "Set *fyne_driver.AndroidContext Env value" Go(*fyne_driver.AndroidContext)//env? "Get *fyne_driver.AndroidContext Env value" Go(*fyne_driver.AndroidContext)//vm! "Set *fyne_driver.AndroidContext VM value" Go(*fyne_driver.AndroidContext)//vm? "Get *fyne_driver.AndroidContext VM value" +Go(*fyne_driver.AndroidWindowContext)//android-context! "Set *fyne_driver.AndroidWindowContext AndroidContext value" +Go(*fyne_driver.AndroidWindowContext)//android-context? "Get *fyne_driver.AndroidWindowContext AndroidContext value" +Go(*fyne_driver.AndroidWindowContext)//ctx! "Set *fyne_driver.AndroidWindowContext Ctx value" +Go(*fyne_driver.AndroidWindowContext)//ctx? "Get *fyne_driver.AndroidWindowContext Ctx value" +Go(*fyne_driver.AndroidWindowContext)//env! "Set *fyne_driver.AndroidWindowContext Env value" +Go(*fyne_driver.AndroidWindowContext)//env? "Get *fyne_driver.AndroidWindowContext Env value" +Go(*fyne_driver.AndroidWindowContext)//native-window! "Set *fyne_driver.AndroidWindowContext NativeWindow value" +Go(*fyne_driver.AndroidWindowContext)//native-window? "Get *fyne_driver.AndroidWindowContext NativeWindow value" +Go(*fyne_driver.AndroidWindowContext)//vm! "Set *fyne_driver.AndroidWindowContext VM value" +Go(*fyne_driver.AndroidWindowContext)//vm? "Get *fyne_driver.AndroidWindowContext VM value" +Go(*fyne_driver.MacWindowContext)//ns-window! "Set *fyne_driver.MacWindowContext NSWindow value" +Go(*fyne_driver.MacWindowContext)//ns-window? "Get *fyne_driver.MacWindowContext NSWindow value" +Go(*fyne_driver.WaylandWindowContext)//wayland-surface! "Set *fyne_driver.WaylandWindowContext WaylandSurface value" +Go(*fyne_driver.WaylandWindowContext)//wayland-surface? "Get *fyne_driver.WaylandWindowContext WaylandSurface value" +Go(*fyne_driver.WindowsWindowContext)//hwnd! "Set *fyne_driver.WindowsWindowContext HWND value" +Go(*fyne_driver.WindowsWindowContext)//hwnd? "Get *fyne_driver.WindowsWindowContext HWND value" +Go(*fyne_driver.X11WindowContext)//window-handle! "Set *fyne_driver.X11WindowContext WindowHandle value" +Go(*fyne_driver.X11WindowContext)//window-handle? "Get *fyne_driver.X11WindowContext WindowHandle value" +Go(*layout.CustomPaddedLayout)//bottom-padding! "Set *layout.CustomPaddedLayout BottomPadding value" +Go(*layout.CustomPaddedLayout)//bottom-padding? "Get *layout.CustomPaddedLayout BottomPadding value" +Go(*layout.CustomPaddedLayout)//layout "layout.CustomPaddedLayout.Layout" +Go(*layout.CustomPaddedLayout)//left-padding! "Set *layout.CustomPaddedLayout LeftPadding value" +Go(*layout.CustomPaddedLayout)//left-padding? "Get *layout.CustomPaddedLayout LeftPadding value" +Go(*layout.CustomPaddedLayout)//min-size "layout.CustomPaddedLayout.MinSize" +Go(*layout.CustomPaddedLayout)//right-padding! "Set *layout.CustomPaddedLayout RightPadding value" +Go(*layout.CustomPaddedLayout)//right-padding? "Get *layout.CustomPaddedLayout RightPadding value" +Go(*layout.CustomPaddedLayout)//top-padding! "Set *layout.CustomPaddedLayout TopPadding value" +Go(*layout.CustomPaddedLayout)//top-padding? "Get *layout.CustomPaddedLayout TopPadding value" Go(*layout.Spacer)//expand-horizontal "(*layout.Spacer).ExpandHorizontal" Go(*layout.Spacer)//expand-vertical "(*layout.Spacer).ExpandVertical" Go(*layout.Spacer)//fix-horizontal! "Set *layout.Spacer FixHorizontal value" @@ -499,6 +621,7 @@ Go(*theme.ErrorThemedResource)//original "(*theme.ErrorThemedRes Go(*theme.InvertedThemedResource)//content "(*theme.InvertedThemedResource).Content" Go(*theme.InvertedThemedResource)//name "(*theme.InvertedThemedResource).Name" Go(*theme.InvertedThemedResource)//original "(*theme.InvertedThemedResource).Original" +Go(*theme.InvertedThemedResource)//theme-color-name "(*theme.InvertedThemedResource).ThemeColorName" Go(*theme.PrimaryThemedResource)//content "(*theme.PrimaryThemedResource).Content" Go(*theme.PrimaryThemedResource)//name "(*theme.PrimaryThemedResource).Name" Go(*theme.PrimaryThemedResource)//original "(*theme.PrimaryThemedResource).Original" @@ -507,6 +630,7 @@ Go(*theme.ThemedResource)//color-name? "Get *theme.ThemedResou Go(*theme.ThemedResource)//content "(*theme.ThemedResource).Content" Go(*theme.ThemedResource)//error "(*theme.ThemedResource).Error" Go(*theme.ThemedResource)//name "(*theme.ThemedResource).Name" +Go(*theme.ThemedResource)//theme-color-name "(*theme.ThemedResource).ThemeColorName" Go(*widget.Accordion)//append "(*widget.Accordion).Append" Go(*widget.Accordion)//base-widget! "Set *widget.Accordion BaseWidget value" Go(*widget.Accordion)//base-widget? "Get *widget.Accordion BaseWidget value" @@ -532,6 +656,7 @@ Go(*widget.Accordion)//remove-index "(*widget.Accordion).Re Go(*widget.Accordion)//resize "(*widget.Accordion).Resize" Go(*widget.Accordion)//show "(*widget.Accordion).Show" Go(*widget.Accordion)//size "(*widget.Accordion).Size" +Go(*widget.Accordion)//theme "(*widget.Accordion).Theme" Go(*widget.Accordion)//visible "(*widget.Accordion).Visible" Go(*widget.AccordionItem)//detail! "Set *widget.AccordionItem Detail value" Go(*widget.AccordionItem)//detail? "Get *widget.AccordionItem Detail value" @@ -539,6 +664,24 @@ Go(*widget.AccordionItem)//open! "Set *widget.AccordionI Go(*widget.AccordionItem)//open? "Get *widget.AccordionItem Open value" Go(*widget.AccordionItem)//title! "Set *widget.AccordionItem Title value" Go(*widget.AccordionItem)//title? "Get *widget.AccordionItem Title value" +Go(*widget.Activity)//base-widget! "Set *widget.Activity BaseWidget value" +Go(*widget.Activity)//base-widget? "Get *widget.Activity BaseWidget value" +Go(*widget.Activity)//create-renderer "(*widget.Activity).CreateRenderer" +Go(*widget.Activity)//extend-base-widget "(*widget.Activity).ExtendBaseWidget" +Go(*widget.Activity)//hidden! "Set *widget.Activity Hidden value" +Go(*widget.Activity)//hidden? "Get *widget.Activity Hidden value" +Go(*widget.Activity)//hide "(*widget.Activity).Hide" +Go(*widget.Activity)//min-size "(*widget.Activity).MinSize" +Go(*widget.Activity)//move "(*widget.Activity).Move" +Go(*widget.Activity)//position "(*widget.Activity).Position" +Go(*widget.Activity)//refresh "(*widget.Activity).Refresh" +Go(*widget.Activity)//resize "(*widget.Activity).Resize" +Go(*widget.Activity)//show "(*widget.Activity).Show" +Go(*widget.Activity)//size "(*widget.Activity).Size" +Go(*widget.Activity)//start "(*widget.Activity).Start" +Go(*widget.Activity)//stop "(*widget.Activity).Stop" +Go(*widget.Activity)//theme "(*widget.Activity).Theme" +Go(*widget.Activity)//visible "(*widget.Activity).Visible" Go(*widget.BaseWidget)//extend-base-widget "(*widget.BaseWidget).ExtendBaseWidget" Go(*widget.BaseWidget)//hidden! "Set *widget.BaseWidget Hidden value" Go(*widget.BaseWidget)//hidden? "Get *widget.BaseWidget Hidden value" @@ -550,6 +693,7 @@ Go(*widget.BaseWidget)//refresh "(*widget.BaseWidget).R Go(*widget.BaseWidget)//resize "(*widget.BaseWidget).Resize" Go(*widget.BaseWidget)//show "(*widget.BaseWidget).Show" Go(*widget.BaseWidget)//size "(*widget.BaseWidget).Size" +Go(*widget.BaseWidget)//theme "(*widget.BaseWidget).Theme" Go(*widget.BaseWidget)//visible "(*widget.BaseWidget).Visible" Go(*widget.Button)//alignment! "Set *widget.Button Alignment value" Go(*widget.Button)//alignment? "Get *widget.Button Alignment value" @@ -591,6 +735,7 @@ Go(*widget.Button)//size "(*widget.Button).Size" Go(*widget.Button)//tapped "(*widget.Button).Tapped" Go(*widget.Button)//text! "Set *widget.Button Text value" Go(*widget.Button)//text? "Get *widget.Button Text value" +Go(*widget.Button)//theme "(*widget.Button).Theme" Go(*widget.Button)//typed-key "(*widget.Button).TypedKey" Go(*widget.Button)//typed-rune "(*widget.Button).TypedRune" Go(*widget.Button)//visible "(*widget.Button).Visible" @@ -618,6 +763,7 @@ Go(*widget.Card)//show "(*widget.Card).Show" Go(*widget.Card)//size "(*widget.Card).Size" Go(*widget.Card)//subtitle! "Set *widget.Card Subtitle value" Go(*widget.Card)//subtitle? "Get *widget.Card Subtitle value" +Go(*widget.Card)//theme "(*widget.Card).Theme" Go(*widget.Card)//title! "Set *widget.Card Title value" Go(*widget.Card)//title? "Get *widget.Card Title value" Go(*widget.Card)//visible "(*widget.Card).Visible" @@ -655,6 +801,7 @@ Go(*widget.Check)//size "(*widget.Check).Size" Go(*widget.Check)//tapped "(*widget.Check).Tapped" Go(*widget.Check)//text! "Set *widget.Check Text value" Go(*widget.Check)//text? "Get *widget.Check Text value" +Go(*widget.Check)//theme "(*widget.Check).Theme" Go(*widget.Check)//typed-key "(*widget.Check).TypedKey" Go(*widget.Check)//typed-rune "(*widget.Check).TypedRune" Go(*widget.Check)//unbind "(*widget.Check).Unbind" @@ -691,13 +838,17 @@ Go(*widget.CheckGroup)//selected? "Get *widget.CheckGroup Go(*widget.CheckGroup)//set-selected "(*widget.CheckGroup).SetSelected" Go(*widget.CheckGroup)//show "(*widget.CheckGroup).Show" Go(*widget.CheckGroup)//size "(*widget.CheckGroup).Size" +Go(*widget.CheckGroup)//theme "(*widget.CheckGroup).Theme" Go(*widget.CheckGroup)//visible "(*widget.CheckGroup).Visible" Go(*widget.CustomTextGridStyle)//background-color "(*widget.CustomTextGridStyle).BackgroundColor" Go(*widget.CustomTextGridStyle)//bg-color! "Set *widget.CustomTextGridStyle BGColor value" Go(*widget.CustomTextGridStyle)//bg-color? "Get *widget.CustomTextGridStyle BGColor value" Go(*widget.CustomTextGridStyle)//fg-color! "Set *widget.CustomTextGridStyle FGColor value" Go(*widget.CustomTextGridStyle)//fg-color? "Get *widget.CustomTextGridStyle FGColor value" +Go(*widget.CustomTextGridStyle)//style "(*widget.CustomTextGridStyle).Style" Go(*widget.CustomTextGridStyle)//text-color "(*widget.CustomTextGridStyle).TextColor" +Go(*widget.CustomTextGridStyle)//text-style! "Set *widget.CustomTextGridStyle TextStyle value" +Go(*widget.CustomTextGridStyle)//text-style? "Get *widget.CustomTextGridStyle TextStyle value" Go(*widget.DisableableWidget)//base-widget! "Set *widget.DisableableWidget BaseWidget value" Go(*widget.DisableableWidget)//base-widget? "Get *widget.DisableableWidget BaseWidget value" Go(*widget.DisableableWidget)//disable "(*widget.DisableableWidget).Disable" @@ -714,6 +865,7 @@ Go(*widget.DisableableWidget)//refresh "(*widget.DisableableWi Go(*widget.DisableableWidget)//resize "(*widget.DisableableWidget).Resize" Go(*widget.DisableableWidget)//show "(*widget.DisableableWidget).Show" Go(*widget.DisableableWidget)//size "(*widget.DisableableWidget).Size" +Go(*widget.DisableableWidget)//theme "(*widget.DisableableWidget).Theme" Go(*widget.DisableableWidget)//visible "(*widget.DisableableWidget).Visible" Go(*widget.Entry)//accepts-tab "(*widget.Entry).AcceptsTab" Go(*widget.Entry)//action-item! "Set *widget.Entry ActionItem value" @@ -762,6 +914,7 @@ Go(*widget.Entry)//password? "Get *widget.Entry Pass Go(*widget.Entry)//place-holder! "Set *widget.Entry PlaceHolder value" Go(*widget.Entry)//place-holder? "Get *widget.Entry PlaceHolder value" Go(*widget.Entry)//position "(*widget.Entry).Position" +Go(*widget.Entry)//redo "(*widget.Entry).Redo" Go(*widget.Entry)//refresh "(*widget.Entry).Refresh" Go(*widget.Entry)//resize "(*widget.Entry).Resize" Go(*widget.Entry)//selected-text "(*widget.Entry).SelectedText" @@ -778,6 +931,7 @@ Go(*widget.Entry)//text! "Set *widget.Entry Text Go(*widget.Entry)//text-style! "Set *widget.Entry TextStyle value" Go(*widget.Entry)//text-style? "Get *widget.Entry TextStyle value" Go(*widget.Entry)//text? "Get *widget.Entry Text value" +Go(*widget.Entry)//theme "(*widget.Entry).Theme" Go(*widget.Entry)//touch-cancel "(*widget.Entry).TouchCancel" Go(*widget.Entry)//touch-down "(*widget.Entry).TouchDown" Go(*widget.Entry)//touch-up "(*widget.Entry).TouchUp" @@ -785,6 +939,7 @@ Go(*widget.Entry)//typed-key "(*widget.Entry).TypedK Go(*widget.Entry)//typed-rune "(*widget.Entry).TypedRune" Go(*widget.Entry)//typed-shortcut "(*widget.Entry).TypedShortcut" Go(*widget.Entry)//unbind "(*widget.Entry).Unbind" +Go(*widget.Entry)//undo "(*widget.Entry).Undo" Go(*widget.Entry)//validate "(*widget.Entry).Validate" Go(*widget.Entry)//validator! "Set *widget.Entry Validator value" Go(*widget.Entry)//validator? "Get *widget.Entry Validator value" @@ -809,6 +964,7 @@ Go(*widget.FileIcon)//set-selected "(*widget.FileIcon).Set Go(*widget.FileIcon)//set-uri "(*widget.FileIcon).SetURI" Go(*widget.FileIcon)//show "(*widget.FileIcon).Show" Go(*widget.FileIcon)//size "(*widget.FileIcon).Size" +Go(*widget.FileIcon)//theme "(*widget.FileIcon).Theme" Go(*widget.FileIcon)//uri! "Set *widget.FileIcon URI value" Go(*widget.FileIcon)//uri? "Get *widget.FileIcon URI value" Go(*widget.FileIcon)//visible "(*widget.FileIcon).Visible" @@ -834,6 +990,8 @@ Go(*widget.Form)//on-cancel! "Set *widget.Form OnCan Go(*widget.Form)//on-cancel? "Get *widget.Form OnCancel value" Go(*widget.Form)//on-submit! "Set *widget.Form OnSubmit value" Go(*widget.Form)//on-submit? "Get *widget.Form OnSubmit value" +Go(*widget.Form)//orientation! "Set *widget.Form Orientation value" +Go(*widget.Form)//orientation? "Get *widget.Form Orientation value" Go(*widget.Form)//position "(*widget.Form).Position" Go(*widget.Form)//refresh "(*widget.Form).Refresh" Go(*widget.Form)//resize "(*widget.Form).Resize" @@ -842,6 +1000,7 @@ Go(*widget.Form)//show "(*widget.Form).Show" Go(*widget.Form)//size "(*widget.Form).Size" Go(*widget.Form)//submit-text! "Set *widget.Form SubmitText value" Go(*widget.Form)//submit-text? "Get *widget.Form SubmitText value" +Go(*widget.Form)//theme "(*widget.Form).Theme" Go(*widget.Form)//validate "(*widget.Form).Validate" Go(*widget.Form)//visible "(*widget.Form).Visible" Go(*widget.FormItem)//hint-text! "Set *widget.FormItem HintText value" @@ -852,6 +1011,7 @@ Go(*widget.FormItem)//widget! "Set *widget.FormItem W Go(*widget.FormItem)//widget? "Get *widget.FormItem Widget value" Go(*widget.GridWrap)//base-widget! "Set *widget.GridWrap BaseWidget value" Go(*widget.GridWrap)//base-widget? "Get *widget.GridWrap BaseWidget value" +Go(*widget.GridWrap)//column-count "(*widget.GridWrap).ColumnCount" Go(*widget.GridWrap)//create-item! "Set *widget.GridWrap CreateItem value" Go(*widget.GridWrap)//create-item? "Get *widget.GridWrap CreateItem value" Go(*widget.GridWrap)//create-renderer "(*widget.GridWrap).CreateRenderer" @@ -881,6 +1041,7 @@ Go(*widget.GridWrap)//scroll-to-top "(*widget.GridWrap).Scr Go(*widget.GridWrap)//select "(*widget.GridWrap).Select" Go(*widget.GridWrap)//show "(*widget.GridWrap).Show" Go(*widget.GridWrap)//size "(*widget.GridWrap).Size" +Go(*widget.GridWrap)//theme "(*widget.GridWrap).Theme" Go(*widget.GridWrap)//typed-key "(*widget.GridWrap).TypedKey" Go(*widget.GridWrap)//typed-rune "(*widget.GridWrap).TypedRune" Go(*widget.GridWrap)//unselect "(*widget.GridWrap).Unselect" @@ -915,11 +1076,16 @@ Go(*widget.Hyperlink)//set-url "(*widget.Hyperlink).Se Go(*widget.Hyperlink)//set-url-from-string "(*widget.Hyperlink).SetURLFromString" Go(*widget.Hyperlink)//show "(*widget.Hyperlink).Show" Go(*widget.Hyperlink)//size "(*widget.Hyperlink).Size" +Go(*widget.Hyperlink)//size-name! "Set *widget.Hyperlink SizeName value" +Go(*widget.Hyperlink)//size-name? "Get *widget.Hyperlink SizeName value" Go(*widget.Hyperlink)//tapped "(*widget.Hyperlink).Tapped" Go(*widget.Hyperlink)//text! "Set *widget.Hyperlink Text value" Go(*widget.Hyperlink)//text-style! "Set *widget.Hyperlink TextStyle value" Go(*widget.Hyperlink)//text-style? "Get *widget.Hyperlink TextStyle value" Go(*widget.Hyperlink)//text? "Get *widget.Hyperlink Text value" +Go(*widget.Hyperlink)//theme "(*widget.Hyperlink).Theme" +Go(*widget.Hyperlink)//truncation! "Set *widget.Hyperlink Truncation value" +Go(*widget.Hyperlink)//truncation? "Get *widget.Hyperlink Truncation value" Go(*widget.Hyperlink)//typed-key "(*widget.Hyperlink).TypedKey" Go(*widget.Hyperlink)//typed-rune "(*widget.Hyperlink).TypedRune" Go(*widget.Hyperlink)//url! "Set *widget.Hyperlink URL value" @@ -959,6 +1125,7 @@ Go(*widget.Icon)//resource? "Get *widget.Icon Resou Go(*widget.Icon)//set-resource "(*widget.Icon).SetResource" Go(*widget.Icon)//show "(*widget.Icon).Show" Go(*widget.Icon)//size "(*widget.Icon).Size" +Go(*widget.Icon)//theme "(*widget.Icon).Theme" Go(*widget.Icon)//visible "(*widget.Icon).Visible" Go(*widget.ImageSegment)//alignment! "Set *widget.ImageSegment Alignment value" Go(*widget.ImageSegment)//alignment? "Get *widget.ImageSegment Alignment value" @@ -997,6 +1164,7 @@ Go(*widget.Label)//text! "Set *widget.Label Text Go(*widget.Label)//text-style! "Set *widget.Label TextStyle value" Go(*widget.Label)//text-style? "Get *widget.Label TextStyle value" Go(*widget.Label)//text? "Get *widget.Label Text value" +Go(*widget.Label)//theme "(*widget.Label).Theme" Go(*widget.Label)//truncation! "Set *widget.Label Truncation value" Go(*widget.Label)//truncation? "Get *widget.Label Truncation value" Go(*widget.Label)//unbind "(*widget.Label).Unbind" @@ -1011,9 +1179,12 @@ Go(*widget.List)//create-renderer "(*widget.List).CreateR Go(*widget.List)//extend-base-widget "(*widget.List).ExtendBaseWidget" Go(*widget.List)//focus-gained "(*widget.List).FocusGained" Go(*widget.List)//focus-lost "(*widget.List).FocusLost" +Go(*widget.List)//get-scroll-offset "(*widget.List).GetScrollOffset" Go(*widget.List)//hidden! "Set *widget.List Hidden value" Go(*widget.List)//hidden? "Get *widget.List Hidden value" Go(*widget.List)//hide "(*widget.List).Hide" +Go(*widget.List)//hide-separators! "Set *widget.List HideSeparators value" +Go(*widget.List)//hide-separators? "Get *widget.List HideSeparators value" Go(*widget.List)//length! "Set *widget.List Length value" Go(*widget.List)//length? "Get *widget.List Length value" Go(*widget.List)//min-size "(*widget.List).MinSize" @@ -1028,11 +1199,13 @@ Go(*widget.List)//refresh-item "(*widget.List).Refresh Go(*widget.List)//resize "(*widget.List).Resize" Go(*widget.List)//scroll-to "(*widget.List).ScrollTo" Go(*widget.List)//scroll-to-bottom "(*widget.List).ScrollToBottom" +Go(*widget.List)//scroll-to-offset "(*widget.List).ScrollToOffset" Go(*widget.List)//scroll-to-top "(*widget.List).ScrollToTop" Go(*widget.List)//select "(*widget.List).Select" Go(*widget.List)//set-item-height "(*widget.List).SetItemHeight" Go(*widget.List)//show "(*widget.List).Show" Go(*widget.List)//size "(*widget.List).Size" +Go(*widget.List)//theme "(*widget.List).Theme" Go(*widget.List)//typed-key "(*widget.List).TypedKey" Go(*widget.List)//typed-rune "(*widget.List).TypedRune" Go(*widget.List)//unselect "(*widget.List).Unselect" @@ -1077,6 +1250,7 @@ Go(*widget.Menu)//resize "(*widget.Menu).Resize" Go(*widget.Menu)//show "(*widget.Menu).Show" Go(*widget.Menu)//size "(*widget.Menu).Size" Go(*widget.Menu)//tapped "(*widget.Menu).Tapped" +Go(*widget.Menu)//theme "(*widget.Menu).Theme" Go(*widget.Menu)//trigger-last "(*widget.Menu).TriggerLast" Go(*widget.Menu)//visible "(*widget.Menu).Visible" Go(*widget.ParagraphSegment)//inline "(*widget.ParagraphSegment).Inline" @@ -1111,6 +1285,7 @@ Go(*widget.PopUp)//show-at-relative-position "(*widget.PopUp).ShowAt Go(*widget.PopUp)//size "(*widget.PopUp).Size" Go(*widget.PopUp)//tapped "(*widget.PopUp).Tapped" Go(*widget.PopUp)//tapped-secondary "(*widget.PopUp).TappedSecondary" +Go(*widget.PopUp)//theme "(*widget.PopUp).Theme" Go(*widget.PopUp)//visible "(*widget.PopUp).Visible" Go(*widget.PopUpMenu)//activate-last-submenu "(*widget.PopUpMenu).ActivateLastSubmenu" Go(*widget.PopUpMenu)//activate-next "(*widget.PopUpMenu).ActivateNext" @@ -1143,6 +1318,7 @@ Go(*widget.PopUpMenu)//show-at-position "(*widget.PopUpMenu).Sh Go(*widget.PopUpMenu)//show-at-relative-position "(*widget.PopUpMenu).ShowAtRelativePosition" Go(*widget.PopUpMenu)//size "(*widget.PopUpMenu).Size" Go(*widget.PopUpMenu)//tapped "(*widget.PopUpMenu).Tapped" +Go(*widget.PopUpMenu)//theme "(*widget.PopUpMenu).Theme" Go(*widget.PopUpMenu)//trigger-last "(*widget.PopUpMenu).TriggerLast" Go(*widget.PopUpMenu)//typed-key "(*widget.PopUpMenu).TypedKey" Go(*widget.PopUpMenu)//typed-rune "(*widget.PopUpMenu).TypedRune" @@ -1169,6 +1345,7 @@ Go(*widget.ProgressBar)//show "(*widget.ProgressBar). Go(*widget.ProgressBar)//size "(*widget.ProgressBar).Size" Go(*widget.ProgressBar)//text-formatter! "Set *widget.ProgressBar TextFormatter value" Go(*widget.ProgressBar)//text-formatter? "Get *widget.ProgressBar TextFormatter value" +Go(*widget.ProgressBar)//theme "(*widget.ProgressBar).Theme" Go(*widget.ProgressBar)//unbind "(*widget.ProgressBar).Unbind" Go(*widget.ProgressBar)//value! "Set *widget.ProgressBar Value value" Go(*widget.ProgressBar)//value? "Get *widget.ProgressBar Value value" @@ -1190,6 +1367,7 @@ Go(*widget.ProgressBarInfinite)//show "(*widget.ProgressBarIn Go(*widget.ProgressBarInfinite)//size "(*widget.ProgressBarInfinite).Size" Go(*widget.ProgressBarInfinite)//start "(*widget.ProgressBarInfinite).Start" Go(*widget.ProgressBarInfinite)//stop "(*widget.ProgressBarInfinite).Stop" +Go(*widget.ProgressBarInfinite)//theme "(*widget.ProgressBarInfinite).Theme" Go(*widget.ProgressBarInfinite)//visible "(*widget.ProgressBarInfinite).Visible" Go(*widget.RadioGroup)//append "(*widget.RadioGroup).Append" Go(*widget.RadioGroup)//base-widget! "Set *widget.RadioGroup BaseWidget value" @@ -1222,7 +1400,9 @@ Go(*widget.RadioGroup)//selected? "Get *widget.RadioGroup Go(*widget.RadioGroup)//set-selected "(*widget.RadioGroup).SetSelected" Go(*widget.RadioGroup)//show "(*widget.RadioGroup).Show" Go(*widget.RadioGroup)//size "(*widget.RadioGroup).Size" +Go(*widget.RadioGroup)//theme "(*widget.RadioGroup).Theme" Go(*widget.RadioGroup)//visible "(*widget.RadioGroup).Visible" +Go(*widget.RichText)//append-markdown "(*widget.RichText).AppendMarkdown" Go(*widget.RichText)//base-widget! "Set *widget.RichText BaseWidget value" Go(*widget.RichText)//base-widget? "Get *widget.RichText BaseWidget value" Go(*widget.RichText)//create-renderer "(*widget.RichText).CreateRenderer" @@ -1241,6 +1421,7 @@ Go(*widget.RichText)//segments? "Get *widget.RichText S Go(*widget.RichText)//show "(*widget.RichText).Show" Go(*widget.RichText)//size "(*widget.RichText).Size" Go(*widget.RichText)//string "(*widget.RichText).String" +Go(*widget.RichText)//theme "(*widget.RichText).Theme" Go(*widget.RichText)//truncation! "Set *widget.RichText Truncation value" Go(*widget.RichText)//truncation? "Get *widget.RichText Truncation value" Go(*widget.RichText)//visible "(*widget.RichText).Visible" @@ -1296,6 +1477,7 @@ Go(*widget.Select)//set-selected-index "(*widget.Select).SetSe Go(*widget.Select)//show "(*widget.Select).Show" Go(*widget.Select)//size "(*widget.Select).Size" Go(*widget.Select)//tapped "(*widget.Select).Tapped" +Go(*widget.Select)//theme "(*widget.Select).Theme" Go(*widget.Select)//typed-key "(*widget.Select).TypedKey" Go(*widget.Select)//typed-rune "(*widget.Select).TypedRune" Go(*widget.Select)//visible "(*widget.Select).Visible" @@ -1348,6 +1530,7 @@ Go(*widget.SelectEntry)//password? "Get *widget.SelectEntr Go(*widget.SelectEntry)//place-holder! "Set *widget.SelectEntry PlaceHolder value" Go(*widget.SelectEntry)//place-holder? "Get *widget.SelectEntry PlaceHolder value" Go(*widget.SelectEntry)//position "(*widget.SelectEntry).Position" +Go(*widget.SelectEntry)//redo "(*widget.SelectEntry).Redo" Go(*widget.SelectEntry)//refresh "(*widget.SelectEntry).Refresh" Go(*widget.SelectEntry)//resize "(*widget.SelectEntry).Resize" Go(*widget.SelectEntry)//selected-text "(*widget.SelectEntry).SelectedText" @@ -1365,6 +1548,7 @@ Go(*widget.SelectEntry)//text! "Set *widget.SelectEntr Go(*widget.SelectEntry)//text-style! "Set *widget.SelectEntry TextStyle value" Go(*widget.SelectEntry)//text-style? "Get *widget.SelectEntry TextStyle value" Go(*widget.SelectEntry)//text? "Get *widget.SelectEntry Text value" +Go(*widget.SelectEntry)//theme "(*widget.SelectEntry).Theme" Go(*widget.SelectEntry)//touch-cancel "(*widget.SelectEntry).TouchCancel" Go(*widget.SelectEntry)//touch-down "(*widget.SelectEntry).TouchDown" Go(*widget.SelectEntry)//touch-up "(*widget.SelectEntry).TouchUp" @@ -1372,6 +1556,7 @@ Go(*widget.SelectEntry)//typed-key "(*widget.SelectEntry). Go(*widget.SelectEntry)//typed-rune "(*widget.SelectEntry).TypedRune" Go(*widget.SelectEntry)//typed-shortcut "(*widget.SelectEntry).TypedShortcut" Go(*widget.SelectEntry)//unbind "(*widget.SelectEntry).Unbind" +Go(*widget.SelectEntry)//undo "(*widget.SelectEntry).Undo" Go(*widget.SelectEntry)//validate "(*widget.SelectEntry).Validate" Go(*widget.SelectEntry)//validator! "Set *widget.SelectEntry Validator value" Go(*widget.SelectEntry)//validator? "Get *widget.SelectEntry Validator value" @@ -1392,6 +1577,7 @@ Go(*widget.Separator)//refresh "(*widget.Separator).Re Go(*widget.Separator)//resize "(*widget.Separator).Resize" Go(*widget.Separator)//show "(*widget.Separator).Show" Go(*widget.Separator)//size "(*widget.Separator).Size" +Go(*widget.Separator)//theme "(*widget.Separator).Theme" Go(*widget.Separator)//visible "(*widget.Separator).Visible" Go(*widget.SeparatorSegment)//inline "(*widget.SeparatorSegment).Inline" Go(*widget.SeparatorSegment)//select "(*widget.SeparatorSegment).Select" @@ -1404,8 +1590,11 @@ Go(*widget.Slider)//base-widget! "Set *widget.Slider Bas Go(*widget.Slider)//base-widget? "Get *widget.Slider BaseWidget value" Go(*widget.Slider)//bind "(*widget.Slider).Bind" Go(*widget.Slider)//create-renderer "(*widget.Slider).CreateRenderer" +Go(*widget.Slider)//disable "(*widget.Slider).Disable" +Go(*widget.Slider)//disabled "(*widget.Slider).Disabled" Go(*widget.Slider)//drag-end "(*widget.Slider).DragEnd" Go(*widget.Slider)//dragged "(*widget.Slider).Dragged" +Go(*widget.Slider)//enable "(*widget.Slider).Enable" Go(*widget.Slider)//extend-base-widget "(*widget.Slider).ExtendBaseWidget" Go(*widget.Slider)//focus-gained "(*widget.Slider).FocusGained" Go(*widget.Slider)//focus-lost "(*widget.Slider).FocusLost" @@ -1436,6 +1625,7 @@ Go(*widget.Slider)//size "(*widget.Slider).Size" Go(*widget.Slider)//step! "Set *widget.Slider Step value" Go(*widget.Slider)//step? "Get *widget.Slider Step value" Go(*widget.Slider)//tapped "(*widget.Slider).Tapped" +Go(*widget.Slider)//theme "(*widget.Slider).Theme" Go(*widget.Slider)//typed-key "(*widget.Slider).TypedKey" Go(*widget.Slider)//typed-rune "(*widget.Slider).TypedRune" Go(*widget.Slider)//unbind "(*widget.Slider).Unbind" @@ -1458,6 +1648,8 @@ Go(*widget.Table)//focus-lost "(*widget.Table).FocusL Go(*widget.Table)//hidden! "Set *widget.Table Hidden value" Go(*widget.Table)//hidden? "Get *widget.Table Hidden value" Go(*widget.Table)//hide "(*widget.Table).Hide" +Go(*widget.Table)//hide-separators! "Set *widget.Table HideSeparators value" +Go(*widget.Table)//hide-separators? "Get *widget.Table HideSeparators value" Go(*widget.Table)//length! "Set *widget.Table Length value" Go(*widget.Table)//length? "Get *widget.Table Length value" Go(*widget.Table)//min-size "(*widget.Table).MinSize" @@ -1494,6 +1686,7 @@ Go(*widget.Table)//sticky-column-count? "Get *widget.Table Stic Go(*widget.Table)//sticky-row-count! "Set *widget.Table StickyRowCount value" Go(*widget.Table)//sticky-row-count? "Get *widget.Table StickyRowCount value" Go(*widget.Table)//tapped "(*widget.Table).Tapped" +Go(*widget.Table)//theme "(*widget.Table).Theme" Go(*widget.Table)//touch-cancel "(*widget.Table).TouchCancel" Go(*widget.Table)//touch-down "(*widget.Table).TouchDown" Go(*widget.Table)//touch-up "(*widget.Table).TouchUp" @@ -1541,6 +1734,7 @@ Go(*widget.TextGrid)//size "(*widget.TextGrid).Siz Go(*widget.TextGrid)//tab-width! "Set *widget.TextGrid TabWidth value" Go(*widget.TextGrid)//tab-width? "Get *widget.TextGrid TabWidth value" Go(*widget.TextGrid)//text "(*widget.TextGrid).Text" +Go(*widget.TextGrid)//theme "(*widget.TextGrid).Theme" Go(*widget.TextGrid)//visible "(*widget.TextGrid).Visible" Go(*widget.TextGridCell)//rune! "Set *widget.TextGridCell Rune value" Go(*widget.TextGridCell)//rune? "Get *widget.TextGridCell Rune value" @@ -1579,7 +1773,11 @@ Go(*widget.Toolbar)//refresh "(*widget.Toolbar).Refr Go(*widget.Toolbar)//resize "(*widget.Toolbar).Resize" Go(*widget.Toolbar)//show "(*widget.Toolbar).Show" Go(*widget.Toolbar)//size "(*widget.Toolbar).Size" +Go(*widget.Toolbar)//theme "(*widget.Toolbar).Theme" Go(*widget.Toolbar)//visible "(*widget.Toolbar).Visible" +Go(*widget.ToolbarAction)//disable "(*widget.ToolbarAction).Disable" +Go(*widget.ToolbarAction)//disabled "(*widget.ToolbarAction).Disabled" +Go(*widget.ToolbarAction)//enable "(*widget.ToolbarAction).Enable" Go(*widget.ToolbarAction)//icon! "Set *widget.ToolbarAction Icon value" Go(*widget.ToolbarAction)//icon? "Get *widget.ToolbarAction Icon value" Go(*widget.ToolbarAction)//on-activated! "Set *widget.ToolbarAction OnActivated value" @@ -1603,6 +1801,8 @@ Go(*widget.Tree)//focus-lost "(*widget.Tree).FocusLo Go(*widget.Tree)//hidden! "Set *widget.Tree Hidden value" Go(*widget.Tree)//hidden? "Get *widget.Tree Hidden value" Go(*widget.Tree)//hide "(*widget.Tree).Hide" +Go(*widget.Tree)//hide-separators! "Set *widget.Tree HideSeparators value" +Go(*widget.Tree)//hide-separators? "Get *widget.Tree HideSeparators value" Go(*widget.Tree)//is-branch! "Set *widget.Tree IsBranch value" Go(*widget.Tree)//is-branch-open "(*widget.Tree).IsBranchOpen" Go(*widget.Tree)//is-branch? "Get *widget.Tree IsBranch value" @@ -1630,6 +1830,7 @@ Go(*widget.Tree)//scroll-to-top "(*widget.Tree).ScrollT Go(*widget.Tree)//select "(*widget.Tree).Select" Go(*widget.Tree)//show "(*widget.Tree).Show" Go(*widget.Tree)//size "(*widget.Tree).Size" +Go(*widget.Tree)//theme "(*widget.Tree).Theme" Go(*widget.Tree)//toggle-branch "(*widget.Tree).ToggleBranch" Go(*widget.Tree)//typed-key "(*widget.Tree).TypedKey" Go(*widget.Tree)//typed-rune "(*widget.Tree).TypedRune" @@ -1649,6 +1850,7 @@ Go(binding.BoolList)//get-item "binding.BoolList.GetIt Go(binding.BoolList)//get-value "binding.BoolList.GetValue" Go(binding.BoolList)//length "binding.BoolList.Length" Go(binding.BoolList)//prepend "binding.BoolList.Prepend" +Go(binding.BoolList)//remove "binding.BoolList.Remove" Go(binding.BoolList)//remove-listener "binding.BoolList.RemoveListener" Go(binding.BoolList)//set "binding.BoolList.Set" Go(binding.BoolList)//set-value "binding.BoolList.SetValue" @@ -1659,6 +1861,7 @@ Go(binding.BoolTree)//get "binding.BoolTree.Get" Go(binding.BoolTree)//get-item "binding.BoolTree.GetItem" Go(binding.BoolTree)//get-value "binding.BoolTree.GetValue" Go(binding.BoolTree)//prepend "binding.BoolTree.Prepend" +Go(binding.BoolTree)//remove "binding.BoolTree.Remove" Go(binding.BoolTree)//remove-listener "binding.BoolTree.RemoveListener" Go(binding.BoolTree)//set "binding.BoolTree.Set" Go(binding.BoolTree)//set-value "binding.BoolTree.SetValue" @@ -1673,6 +1876,7 @@ Go(binding.BytesList)//get-item "binding.BytesList.GetI Go(binding.BytesList)//get-value "binding.BytesList.GetValue" Go(binding.BytesList)//length "binding.BytesList.Length" Go(binding.BytesList)//prepend "binding.BytesList.Prepend" +Go(binding.BytesList)//remove "binding.BytesList.Remove" Go(binding.BytesList)//remove-listener "binding.BytesList.RemoveListener" Go(binding.BytesList)//set "binding.BytesList.Set" Go(binding.BytesList)//set-value "binding.BytesList.SetValue" @@ -1683,6 +1887,7 @@ Go(binding.BytesTree)//get "binding.BytesTree.Get" Go(binding.BytesTree)//get-item "binding.BytesTree.GetItem" Go(binding.BytesTree)//get-value "binding.BytesTree.GetValue" Go(binding.BytesTree)//prepend "binding.BytesTree.Prepend" +Go(binding.BytesTree)//remove "binding.BytesTree.Remove" Go(binding.BytesTree)//remove-listener "binding.BytesTree.RemoveListener" Go(binding.BytesTree)//set "binding.BytesTree.Set" Go(binding.BytesTree)//set-value "binding.BytesTree.SetValue" @@ -1714,6 +1919,7 @@ Go(binding.ExternalBoolList)//get-value "binding.ExternalBoolLi Go(binding.ExternalBoolList)//length "binding.ExternalBoolList.Length" Go(binding.ExternalBoolList)//prepend "binding.ExternalBoolList.Prepend" Go(binding.ExternalBoolList)//reload "binding.ExternalBoolList.Reload" +Go(binding.ExternalBoolList)//remove "binding.ExternalBoolList.Remove" Go(binding.ExternalBoolList)//remove-listener "binding.ExternalBoolList.RemoveListener" Go(binding.ExternalBoolList)//set "binding.ExternalBoolList.Set" Go(binding.ExternalBoolList)//set-value "binding.ExternalBoolList.SetValue" @@ -1725,6 +1931,7 @@ Go(binding.ExternalBoolTree)//get-item "binding.ExternalBoolTr Go(binding.ExternalBoolTree)//get-value "binding.ExternalBoolTree.GetValue" Go(binding.ExternalBoolTree)//prepend "binding.ExternalBoolTree.Prepend" Go(binding.ExternalBoolTree)//reload "binding.ExternalBoolTree.Reload" +Go(binding.ExternalBoolTree)//remove "binding.ExternalBoolTree.Remove" Go(binding.ExternalBoolTree)//remove-listener "binding.ExternalBoolTree.RemoveListener" Go(binding.ExternalBoolTree)//set "binding.ExternalBoolTree.Set" Go(binding.ExternalBoolTree)//set-value "binding.ExternalBoolTree.SetValue" @@ -1741,6 +1948,7 @@ Go(binding.ExternalBytesList)//get-value "binding.ExternalBytesL Go(binding.ExternalBytesList)//length "binding.ExternalBytesList.Length" Go(binding.ExternalBytesList)//prepend "binding.ExternalBytesList.Prepend" Go(binding.ExternalBytesList)//reload "binding.ExternalBytesList.Reload" +Go(binding.ExternalBytesList)//remove "binding.ExternalBytesList.Remove" Go(binding.ExternalBytesList)//remove-listener "binding.ExternalBytesList.RemoveListener" Go(binding.ExternalBytesList)//set "binding.ExternalBytesList.Set" Go(binding.ExternalBytesList)//set-value "binding.ExternalBytesList.SetValue" @@ -1752,6 +1960,7 @@ Go(binding.ExternalBytesTree)//get-item "binding.ExternalBytesT Go(binding.ExternalBytesTree)//get-value "binding.ExternalBytesTree.GetValue" Go(binding.ExternalBytesTree)//prepend "binding.ExternalBytesTree.Prepend" Go(binding.ExternalBytesTree)//reload "binding.ExternalBytesTree.Reload" +Go(binding.ExternalBytesTree)//remove "binding.ExternalBytesTree.Remove" Go(binding.ExternalBytesTree)//remove-listener "binding.ExternalBytesTree.RemoveListener" Go(binding.ExternalBytesTree)//set "binding.ExternalBytesTree.Set" Go(binding.ExternalBytesTree)//set-value "binding.ExternalBytesTree.SetValue" @@ -1768,6 +1977,7 @@ Go(binding.ExternalFloatList)//get-value "binding.ExternalFloatL Go(binding.ExternalFloatList)//length "binding.ExternalFloatList.Length" Go(binding.ExternalFloatList)//prepend "binding.ExternalFloatList.Prepend" Go(binding.ExternalFloatList)//reload "binding.ExternalFloatList.Reload" +Go(binding.ExternalFloatList)//remove "binding.ExternalFloatList.Remove" Go(binding.ExternalFloatList)//remove-listener "binding.ExternalFloatList.RemoveListener" Go(binding.ExternalFloatList)//set "binding.ExternalFloatList.Set" Go(binding.ExternalFloatList)//set-value "binding.ExternalFloatList.SetValue" @@ -1779,6 +1989,7 @@ Go(binding.ExternalFloatTree)//get-item "binding.ExternalFloatT Go(binding.ExternalFloatTree)//get-value "binding.ExternalFloatTree.GetValue" Go(binding.ExternalFloatTree)//prepend "binding.ExternalFloatTree.Prepend" Go(binding.ExternalFloatTree)//reload "binding.ExternalFloatTree.Reload" +Go(binding.ExternalFloatTree)//remove "binding.ExternalFloatTree.Remove" Go(binding.ExternalFloatTree)//remove-listener "binding.ExternalFloatTree.RemoveListener" Go(binding.ExternalFloatTree)//set "binding.ExternalFloatTree.Set" Go(binding.ExternalFloatTree)//set-value "binding.ExternalFloatTree.SetValue" @@ -1795,6 +2006,7 @@ Go(binding.ExternalIntList)//get-value "binding.ExternalIntLis Go(binding.ExternalIntList)//length "binding.ExternalIntList.Length" Go(binding.ExternalIntList)//prepend "binding.ExternalIntList.Prepend" Go(binding.ExternalIntList)//reload "binding.ExternalIntList.Reload" +Go(binding.ExternalIntList)//remove "binding.ExternalIntList.Remove" Go(binding.ExternalIntList)//remove-listener "binding.ExternalIntList.RemoveListener" Go(binding.ExternalIntList)//set "binding.ExternalIntList.Set" Go(binding.ExternalIntList)//set-value "binding.ExternalIntList.SetValue" @@ -1806,6 +2018,7 @@ Go(binding.ExternalIntTree)//get-item "binding.ExternalIntTre Go(binding.ExternalIntTree)//get-value "binding.ExternalIntTree.GetValue" Go(binding.ExternalIntTree)//prepend "binding.ExternalIntTree.Prepend" Go(binding.ExternalIntTree)//reload "binding.ExternalIntTree.Reload" +Go(binding.ExternalIntTree)//remove "binding.ExternalIntTree.Remove" Go(binding.ExternalIntTree)//remove-listener "binding.ExternalIntTree.RemoveListener" Go(binding.ExternalIntTree)//set "binding.ExternalIntTree.Set" Go(binding.ExternalIntTree)//set-value "binding.ExternalIntTree.SetValue" @@ -1822,6 +2035,7 @@ Go(binding.ExternalRuneList)//get-value "binding.ExternalRuneLi Go(binding.ExternalRuneList)//length "binding.ExternalRuneList.Length" Go(binding.ExternalRuneList)//prepend "binding.ExternalRuneList.Prepend" Go(binding.ExternalRuneList)//reload "binding.ExternalRuneList.Reload" +Go(binding.ExternalRuneList)//remove "binding.ExternalRuneList.Remove" Go(binding.ExternalRuneList)//remove-listener "binding.ExternalRuneList.RemoveListener" Go(binding.ExternalRuneList)//set "binding.ExternalRuneList.Set" Go(binding.ExternalRuneList)//set-value "binding.ExternalRuneList.SetValue" @@ -1833,6 +2047,7 @@ Go(binding.ExternalRuneTree)//get-item "binding.ExternalRuneTr Go(binding.ExternalRuneTree)//get-value "binding.ExternalRuneTree.GetValue" Go(binding.ExternalRuneTree)//prepend "binding.ExternalRuneTree.Prepend" Go(binding.ExternalRuneTree)//reload "binding.ExternalRuneTree.Reload" +Go(binding.ExternalRuneTree)//remove "binding.ExternalRuneTree.Remove" Go(binding.ExternalRuneTree)//remove-listener "binding.ExternalRuneTree.RemoveListener" Go(binding.ExternalRuneTree)//set "binding.ExternalRuneTree.Set" Go(binding.ExternalRuneTree)//set-value "binding.ExternalRuneTree.SetValue" @@ -1849,6 +2064,7 @@ Go(binding.ExternalStringList)//get-value "binding.ExternalString Go(binding.ExternalStringList)//length "binding.ExternalStringList.Length" Go(binding.ExternalStringList)//prepend "binding.ExternalStringList.Prepend" Go(binding.ExternalStringList)//reload "binding.ExternalStringList.Reload" +Go(binding.ExternalStringList)//remove "binding.ExternalStringList.Remove" Go(binding.ExternalStringList)//remove-listener "binding.ExternalStringList.RemoveListener" Go(binding.ExternalStringList)//set "binding.ExternalStringList.Set" Go(binding.ExternalStringList)//set-value "binding.ExternalStringList.SetValue" @@ -1860,6 +2076,7 @@ Go(binding.ExternalStringTree)//get-item "binding.ExternalString Go(binding.ExternalStringTree)//get-value "binding.ExternalStringTree.GetValue" Go(binding.ExternalStringTree)//prepend "binding.ExternalStringTree.Prepend" Go(binding.ExternalStringTree)//reload "binding.ExternalStringTree.Reload" +Go(binding.ExternalStringTree)//remove "binding.ExternalStringTree.Remove" Go(binding.ExternalStringTree)//remove-listener "binding.ExternalStringTree.RemoveListener" Go(binding.ExternalStringTree)//set "binding.ExternalStringTree.Set" Go(binding.ExternalStringTree)//set-value "binding.ExternalStringTree.SetValue" @@ -1876,6 +2093,7 @@ Go(binding.ExternalURIList)//get-value "binding.ExternalURILis Go(binding.ExternalURIList)//length "binding.ExternalURIList.Length" Go(binding.ExternalURIList)//prepend "binding.ExternalURIList.Prepend" Go(binding.ExternalURIList)//reload "binding.ExternalURIList.Reload" +Go(binding.ExternalURIList)//remove "binding.ExternalURIList.Remove" Go(binding.ExternalURIList)//remove-listener "binding.ExternalURIList.RemoveListener" Go(binding.ExternalURIList)//set "binding.ExternalURIList.Set" Go(binding.ExternalURIList)//set-value "binding.ExternalURIList.SetValue" @@ -1887,6 +2105,7 @@ Go(binding.ExternalURITree)//get-item "binding.ExternalURITre Go(binding.ExternalURITree)//get-value "binding.ExternalURITree.GetValue" Go(binding.ExternalURITree)//prepend "binding.ExternalURITree.Prepend" Go(binding.ExternalURITree)//reload "binding.ExternalURITree.Reload" +Go(binding.ExternalURITree)//remove "binding.ExternalURITree.Remove" Go(binding.ExternalURITree)//remove-listener "binding.ExternalURITree.RemoveListener" Go(binding.ExternalURITree)//set "binding.ExternalURITree.Set" Go(binding.ExternalURITree)//set-value "binding.ExternalURITree.SetValue" @@ -1903,6 +2122,7 @@ Go(binding.ExternalUntypedList)//get-value "binding.ExternalUntype Go(binding.ExternalUntypedList)//length "binding.ExternalUntypedList.Length" Go(binding.ExternalUntypedList)//prepend "binding.ExternalUntypedList.Prepend" Go(binding.ExternalUntypedList)//reload "binding.ExternalUntypedList.Reload" +Go(binding.ExternalUntypedList)//remove "binding.ExternalUntypedList.Remove" Go(binding.ExternalUntypedList)//remove-listener "binding.ExternalUntypedList.RemoveListener" Go(binding.ExternalUntypedList)//set "binding.ExternalUntypedList.Set" Go(binding.ExternalUntypedList)//set-value "binding.ExternalUntypedList.SetValue" @@ -1916,6 +2136,18 @@ Go(binding.ExternalUntypedMap)//reload "binding.ExternalUntype Go(binding.ExternalUntypedMap)//remove-listener "binding.ExternalUntypedMap.RemoveListener" Go(binding.ExternalUntypedMap)//set "binding.ExternalUntypedMap.Set" Go(binding.ExternalUntypedMap)//set-value "binding.ExternalUntypedMap.SetValue" +Go(binding.ExternalUntypedTree)//add-listener "binding.ExternalUntypedTree.AddListener" +Go(binding.ExternalUntypedTree)//append "binding.ExternalUntypedTree.Append" +Go(binding.ExternalUntypedTree)//child-i-ds "binding.ExternalUntypedTree.ChildIDs" +Go(binding.ExternalUntypedTree)//get "binding.ExternalUntypedTree.Get" +Go(binding.ExternalUntypedTree)//get-item "binding.ExternalUntypedTree.GetItem" +Go(binding.ExternalUntypedTree)//get-value "binding.ExternalUntypedTree.GetValue" +Go(binding.ExternalUntypedTree)//prepend "binding.ExternalUntypedTree.Prepend" +Go(binding.ExternalUntypedTree)//reload "binding.ExternalUntypedTree.Reload" +Go(binding.ExternalUntypedTree)//remove "binding.ExternalUntypedTree.Remove" +Go(binding.ExternalUntypedTree)//remove-listener "binding.ExternalUntypedTree.RemoveListener" +Go(binding.ExternalUntypedTree)//set "binding.ExternalUntypedTree.Set" +Go(binding.ExternalUntypedTree)//set-value "binding.ExternalUntypedTree.SetValue" Go(binding.Float)//add-listener "binding.Float.AddListener" Go(binding.Float)//get "binding.Float.Get" Go(binding.Float)//remove-listener "binding.Float.RemoveListener" @@ -1927,6 +2159,7 @@ Go(binding.FloatList)//get-item "binding.FloatList.GetI Go(binding.FloatList)//get-value "binding.FloatList.GetValue" Go(binding.FloatList)//length "binding.FloatList.Length" Go(binding.FloatList)//prepend "binding.FloatList.Prepend" +Go(binding.FloatList)//remove "binding.FloatList.Remove" Go(binding.FloatList)//remove-listener "binding.FloatList.RemoveListener" Go(binding.FloatList)//set "binding.FloatList.Set" Go(binding.FloatList)//set-value "binding.FloatList.SetValue" @@ -1937,6 +2170,7 @@ Go(binding.FloatTree)//get "binding.FloatTree.Get" Go(binding.FloatTree)//get-item "binding.FloatTree.GetItem" Go(binding.FloatTree)//get-value "binding.FloatTree.GetValue" Go(binding.FloatTree)//prepend "binding.FloatTree.Prepend" +Go(binding.FloatTree)//remove "binding.FloatTree.Remove" Go(binding.FloatTree)//remove-listener "binding.FloatTree.RemoveListener" Go(binding.FloatTree)//set "binding.FloatTree.Set" Go(binding.FloatTree)//set-value "binding.FloatTree.SetValue" @@ -1951,6 +2185,7 @@ Go(binding.IntList)//get-item "binding.IntList.GetIte Go(binding.IntList)//get-value "binding.IntList.GetValue" Go(binding.IntList)//length "binding.IntList.Length" Go(binding.IntList)//prepend "binding.IntList.Prepend" +Go(binding.IntList)//remove "binding.IntList.Remove" Go(binding.IntList)//remove-listener "binding.IntList.RemoveListener" Go(binding.IntList)//set "binding.IntList.Set" Go(binding.IntList)//set-value "binding.IntList.SetValue" @@ -1961,6 +2196,7 @@ Go(binding.IntTree)//get "binding.IntTree.Get" Go(binding.IntTree)//get-item "binding.IntTree.GetItem" Go(binding.IntTree)//get-value "binding.IntTree.GetValue" Go(binding.IntTree)//prepend "binding.IntTree.Prepend" +Go(binding.IntTree)//remove "binding.IntTree.Remove" Go(binding.IntTree)//remove-listener "binding.IntTree.RemoveListener" Go(binding.IntTree)//set "binding.IntTree.Set" Go(binding.IntTree)//set-value "binding.IntTree.SetValue" @@ -1975,6 +2211,7 @@ Go(binding.RuneList)//get-item "binding.RuneList.GetIt Go(binding.RuneList)//get-value "binding.RuneList.GetValue" Go(binding.RuneList)//length "binding.RuneList.Length" Go(binding.RuneList)//prepend "binding.RuneList.Prepend" +Go(binding.RuneList)//remove "binding.RuneList.Remove" Go(binding.RuneList)//remove-listener "binding.RuneList.RemoveListener" Go(binding.RuneList)//set "binding.RuneList.Set" Go(binding.RuneList)//set-value "binding.RuneList.SetValue" @@ -1985,6 +2222,7 @@ Go(binding.RuneTree)//get "binding.RuneTree.Get" Go(binding.RuneTree)//get-item "binding.RuneTree.GetItem" Go(binding.RuneTree)//get-value "binding.RuneTree.GetValue" Go(binding.RuneTree)//prepend "binding.RuneTree.Prepend" +Go(binding.RuneTree)//remove "binding.RuneTree.Remove" Go(binding.RuneTree)//remove-listener "binding.RuneTree.RemoveListener" Go(binding.RuneTree)//set "binding.RuneTree.Set" Go(binding.RuneTree)//set-value "binding.RuneTree.SetValue" @@ -1999,6 +2237,7 @@ Go(binding.StringList)//get-item "binding.StringList.Get Go(binding.StringList)//get-value "binding.StringList.GetValue" Go(binding.StringList)//length "binding.StringList.Length" Go(binding.StringList)//prepend "binding.StringList.Prepend" +Go(binding.StringList)//remove "binding.StringList.Remove" Go(binding.StringList)//remove-listener "binding.StringList.RemoveListener" Go(binding.StringList)//set "binding.StringList.Set" Go(binding.StringList)//set-value "binding.StringList.SetValue" @@ -2009,6 +2248,7 @@ Go(binding.StringTree)//get "binding.StringTree.Get Go(binding.StringTree)//get-item "binding.StringTree.GetItem" Go(binding.StringTree)//get-value "binding.StringTree.GetValue" Go(binding.StringTree)//prepend "binding.StringTree.Prepend" +Go(binding.StringTree)//remove "binding.StringTree.Remove" Go(binding.StringTree)//remove-listener "binding.StringTree.RemoveListener" Go(binding.StringTree)//set "binding.StringTree.Set" Go(binding.StringTree)//set-value "binding.StringTree.SetValue" @@ -2030,6 +2270,7 @@ Go(binding.URIList)//get-item "binding.URIList.GetIte Go(binding.URIList)//get-value "binding.URIList.GetValue" Go(binding.URIList)//length "binding.URIList.Length" Go(binding.URIList)//prepend "binding.URIList.Prepend" +Go(binding.URIList)//remove "binding.URIList.Remove" Go(binding.URIList)//remove-listener "binding.URIList.RemoveListener" Go(binding.URIList)//set "binding.URIList.Set" Go(binding.URIList)//set-value "binding.URIList.SetValue" @@ -2040,6 +2281,7 @@ Go(binding.URITree)//get "binding.URITree.Get" Go(binding.URITree)//get-item "binding.URITree.GetItem" Go(binding.URITree)//get-value "binding.URITree.GetValue" Go(binding.URITree)//prepend "binding.URITree.Prepend" +Go(binding.URITree)//remove "binding.URITree.Remove" Go(binding.URITree)//remove-listener "binding.URITree.RemoveListener" Go(binding.URITree)//set "binding.URITree.Set" Go(binding.URITree)//set-value "binding.URITree.SetValue" @@ -2054,6 +2296,7 @@ Go(binding.UntypedList)//get-item "binding.UntypedList.Ge Go(binding.UntypedList)//get-value "binding.UntypedList.GetValue" Go(binding.UntypedList)//length "binding.UntypedList.Length" Go(binding.UntypedList)//prepend "binding.UntypedList.Prepend" +Go(binding.UntypedList)//remove "binding.UntypedList.Remove" Go(binding.UntypedList)//remove-listener "binding.UntypedList.RemoveListener" Go(binding.UntypedList)//set "binding.UntypedList.Set" Go(binding.UntypedList)//set-value "binding.UntypedList.SetValue" @@ -2066,6 +2309,17 @@ Go(binding.UntypedMap)//keys "binding.UntypedMap.Key Go(binding.UntypedMap)//remove-listener "binding.UntypedMap.RemoveListener" Go(binding.UntypedMap)//set "binding.UntypedMap.Set" Go(binding.UntypedMap)//set-value "binding.UntypedMap.SetValue" +Go(binding.UntypedTree)//add-listener "binding.UntypedTree.AddListener" +Go(binding.UntypedTree)//append "binding.UntypedTree.Append" +Go(binding.UntypedTree)//child-i-ds "binding.UntypedTree.ChildIDs" +Go(binding.UntypedTree)//get "binding.UntypedTree.Get" +Go(binding.UntypedTree)//get-item "binding.UntypedTree.GetItem" +Go(binding.UntypedTree)//get-value "binding.UntypedTree.GetValue" +Go(binding.UntypedTree)//prepend "binding.UntypedTree.Prepend" +Go(binding.UntypedTree)//remove "binding.UntypedTree.Remove" +Go(binding.UntypedTree)//remove-listener "binding.UntypedTree.RemoveListener" +Go(binding.UntypedTree)//set "binding.UntypedTree.Set" +Go(binding.UntypedTree)//set-value "binding.UntypedTree.SetValue" Go(desktop.App)//set-system-tray-icon "desktop.App.SetSystemTrayIcon" Go(desktop.App)//set-system-tray-menu "desktop.App.SetSystemTrayMenu" Go(desktop.Canvas)//on-key-down "desktop.Canvas.OnKeyDown" @@ -2152,6 +2406,7 @@ Go(fyne.CloudProviderStorage)//cloud-storage "fyne.CloudProviderStor Go(fyne.Device)//has-keyboard "fyne.Device.HasKeyboard" Go(fyne.Device)//is-browser "fyne.Device.IsBrowser" Go(fyne.Device)//is-mobile "fyne.Device.IsMobile" +Go(fyne.Device)//locale "fyne.Device.Locale" Go(fyne.Device)//orientation "fyne.Device.Orientation" Go(fyne.Device)//system-scale-for-window "fyne.Device.SystemScaleForWindow" Go(fyne.Disableable)//disable "fyne.Disableable.Disable" @@ -2165,9 +2420,11 @@ Go(fyne.Driver)//all-windows "fyne.Driver.AllWindows Go(fyne.Driver)//canvas-for-object "fyne.Driver.CanvasForObject" Go(fyne.Driver)//create-window "fyne.Driver.CreateWindow" Go(fyne.Driver)//device "fyne.Driver.Device" +Go(fyne.Driver)//double-tap-delay "fyne.Driver.DoubleTapDelay" Go(fyne.Driver)//quit "fyne.Driver.Quit" Go(fyne.Driver)//rendered-text-size "fyne.Driver.RenderedTextSize" Go(fyne.Driver)//run "fyne.Driver.Run" +Go(fyne.Driver)//set-disable-screen-blanking "fyne.Driver.SetDisableScreenBlanking" Go(fyne.Driver)//start-animation "fyne.Driver.StartAnimation" Go(fyne.Driver)//stop-animation "fyne.Driver.StopAnimation" Go(fyne.Focusable)//focus-gained "fyne.Focusable.FocusGained" @@ -2214,6 +2471,8 @@ Go(fyne.ListableURI)//path "fyne.ListableURI.Path" Go(fyne.ListableURI)//query "fyne.ListableURI.Query" Go(fyne.ListableURI)//scheme "fyne.ListableURI.Scheme" Go(fyne.ListableURI)//string "fyne.ListableURI.String" +Go(fyne.Locale)//language-string "fyne.Locale.LanguageString" +Go(fyne.Locale)//string "fyne.Locale.String" Go(fyne.OverlayStack)//add "fyne.OverlayStack.Add" Go(fyne.OverlayStack)//list "fyne.OverlayStack.List" Go(fyne.OverlayStack)//remove "fyne.OverlayStack.Remove" @@ -2271,6 +2530,9 @@ Go(fyne.Theme)//color "fyne.Theme.Color" Go(fyne.Theme)//font "fyne.Theme.Font" Go(fyne.Theme)//icon "fyne.Theme.Icon" Go(fyne.Theme)//size "fyne.Theme.Size" +Go(fyne.ThemedResource)//content "fyne.ThemedResource.Content" +Go(fyne.ThemedResource)//name "fyne.ThemedResource.Name" +Go(fyne.ThemedResource)//theme-color-name "fyne.ThemedResource.ThemeColorName" Go(fyne.URI)//authority "fyne.URI.Authority" Go(fyne.URI)//extension "fyne.URI.Extension" Go(fyne.URI)//fragment "fyne.URI.Fragment" @@ -2283,6 +2545,16 @@ Go(fyne.URI)//string "fyne.URI.String" Go(fyne.URIReadCloser)//close "fyne.URIReadCloser.Close" Go(fyne.URIReadCloser)//read "fyne.URIReadCloser.Read" Go(fyne.URIReadCloser)//uri "fyne.URIReadCloser.URI" +Go(fyne.URIWithIcon)//authority "fyne.URIWithIcon.Authority" +Go(fyne.URIWithIcon)//extension "fyne.URIWithIcon.Extension" +Go(fyne.URIWithIcon)//fragment "fyne.URIWithIcon.Fragment" +Go(fyne.URIWithIcon)//icon "fyne.URIWithIcon.Icon" +Go(fyne.URIWithIcon)//mime-type "fyne.URIWithIcon.MimeType" +Go(fyne.URIWithIcon)//name "fyne.URIWithIcon.Name" +Go(fyne.URIWithIcon)//path "fyne.URIWithIcon.Path" +Go(fyne.URIWithIcon)//query "fyne.URIWithIcon.Query" +Go(fyne.URIWithIcon)//scheme "fyne.URIWithIcon.Scheme" +Go(fyne.URIWithIcon)//string "fyne.URIWithIcon.String" Go(fyne.URIWriteCloser)//close "fyne.URIWriteCloser.Close" Go(fyne.URIWriteCloser)//uri "fyne.URIWriteCloser.URI" Go(fyne.URIWriteCloser)//write "fyne.URIWriteCloser.Write" @@ -2332,6 +2604,7 @@ Go(fyne.Window)//set-title "fyne.Window.SetTitle" Go(fyne.Window)//show "fyne.Window.Show" Go(fyne.Window)//show-and-run "fyne.Window.ShowAndRun" Go(fyne.Window)//title "fyne.Window.Title" +Go(fyne_driver.NativeWindow)//run-native "fyne_driver.NativeWindow.RunNative" Go(layout.SpacerObject)//expand-horizontal "layout.SpacerObject.ExpandHorizontal" Go(layout.SpacerObject)//expand-vertical "layout.SpacerObject.ExpandVertical" Go(mobile.Device)//hide-virtual-keyboard "mobile.Device.HideVirtualKeyboard" @@ -2420,6 +2693,7 @@ Go(widget.RichTextSegment)//unselect "widget.RichTextSegment Go(widget.RichTextSegment)//update "widget.RichTextSegment.Update" Go(widget.RichTextSegment)//visual "widget.RichTextSegment.Visual" Go(widget.TextGridStyle)//background-color "widget.TextGridStyle.BackgroundColor" +Go(widget.TextGridStyle)//style "widget.TextGridStyle.Style" Go(widget.TextGridStyle)//text-color "widget.TextGridStyle.TextColor" Go(widget.ToolbarItem)//toolbar-object "widget.ToolbarItem.ToolbarObject" app-new "app.New" @@ -2453,13 +2727,17 @@ binding-bind-struct "binding.BindStruct" binding-bind-untyped "binding.BindUntyped" binding-bind-untyped-list "binding.BindUntypedList" binding-bind-untyped-map "binding.BindUntypedMap" +binding-bind-untyped-tree "binding.BindUntypedTree" binding-bind-uri "binding.BindURI" binding-bind-uri-list "binding.BindURIList" binding-bind-uri-tree "binding.BindURITree" binding-bool-to-string "binding.BoolToString" binding-bool-to-string-with-format "binding.BoolToStringWithFormat" +binding-data-tree-root-id "Get binding.DataTreeRootID value" +binding-float-to-int "binding.FloatToInt" binding-float-to-string "binding.FloatToString" binding-float-to-string-with-format "binding.FloatToStringWithFormat" +binding-int-to-float "binding.IntToFloat" binding-int-to-string "binding.IntToString" binding-int-to-string-with-format "binding.IntToStringWithFormat" binding-new-bool "binding.NewBool" @@ -2485,6 +2763,7 @@ binding-new-string-tree "binding.NewStringTree" binding-new-untyped "binding.NewUntyped" binding-new-untyped-list "binding.NewUntypedList" binding-new-untyped-map "binding.NewUntypedMap" +binding-new-untyped-tree "binding.NewUntypedTree" binding-new-uri "binding.NewURI" binding-new-uri-list "binding.NewURIList" binding-new-uri-tree "binding.NewURITree" @@ -2538,13 +2817,16 @@ container-new-grid-wrap "container.NewGridWrap" container-new-h-box "container.NewHBox" container-new-h-scroll "container.NewHScroll" container-new-h-split "container.NewHSplit" +container-new-inner-window "container.NewInnerWindow" container-new-max "container.NewMax" +container-new-multiple-windows "container.NewMultipleWindows" container-new-padded "container.NewPadded" container-new-scroll "container.NewScroll" container-new-split "Create a new container.Split struct" container-new-stack "container.NewStack" container-new-tab-item "container.NewTabItem" container-new-tab-item-with-icon "container.NewTabItemWithIcon" +container-new-theme-override "container.NewThemeOverride" container-new-v-box "container.NewVBox" container-new-v-scroll "container.NewVScroll" container-new-v-split "container.NewVSplit" @@ -2618,7 +2900,12 @@ fyne-build-standard "Get fyne.BuildStandard fyne-current-app "fyne.CurrentApp" fyne-current-device "fyne.CurrentDevice" fyne-driver-new-android-context "Create a new fyne_driver.AndroidContext struct" +fyne-driver-new-android-window-context "Create a new fyne_driver.AndroidWindowContext struct" +fyne-driver-new-mac-window-context "Create a new fyne_driver.MacWindowContext struct" fyne-driver-new-unknown-context "Create a new fyne_driver.UnknownContext struct" +fyne-driver-new-wayland-window-context "Create a new fyne_driver.WaylandWindowContext struct" +fyne-driver-new-windows-window-context "Create a new fyne_driver.WindowsWindowContext struct" +fyne-driver-new-x-11-window-context "Create a new fyne_driver.X11WindowContext struct" fyne-driver-run-native "fyne_driver.RunNative" fyne-is-horizontal "fyne.IsHorizontal" fyne-is-vertical "fyne.IsVertical" @@ -2732,7 +3019,9 @@ fyne-new-shortcut-copy "Create a new fyne.Shor fyne-new-shortcut-cut "Create a new fyne.ShortcutCut struct" fyne-new-shortcut-handler "Create a new fyne.ShortcutHandler struct" fyne-new-shortcut-paste "Create a new fyne.ShortcutPaste struct" +fyne-new-shortcut-redo "Create a new fyne.ShortcutRedo struct" fyne-new-shortcut-select-all "Create a new fyne.ShortcutSelectAll struct" +fyne-new-shortcut-undo "Create a new fyne.ShortcutUndo struct" fyne-new-size "fyne.NewSize" fyne-new-square-offset-pos "fyne.NewSquareOffsetPos" fyne-new-square-size "fyne.NewSquareSize" @@ -2753,9 +3042,20 @@ fyne-text-truncate-off "Get fyne.TextTruncateO fyne-text-wrap-break "Get fyne.TextWrapBreak value" fyne-text-wrap-off "Get fyne.TextWrapOff value" fyne-text-wrap-word "Get fyne.TextWrapWord value" +lang-add-translations "lang.AddTranslations" +lang-add-translations-for-locale "lang.AddTranslationsForLocale" +lang-add-translations-fs "lang.AddTranslationsFS" +lang-localize "lang.Localize" +lang-localize-key "lang.LocalizeKey" +lang-localize-plural "lang.LocalizePlural" +lang-localize-plural-key "lang.LocalizePluralKey" +lang-system-locale "lang.SystemLocale" layout-new-adaptive-grid-layout "layout.NewAdaptiveGridLayout" layout-new-border-layout "layout.NewBorderLayout" layout-new-center-layout "layout.NewCenterLayout" +layout-new-custom-padded-h-box-layout "layout.NewCustomPaddedHBoxLayout" +layout-new-custom-padded-layout "layout.NewCustomPaddedLayout" +layout-new-custom-padded-v-box-layout "layout.NewCustomPaddedVBoxLayout" layout-new-form-layout "layout.NewFormLayout" layout-new-grid-layout "layout.NewGridLayout" layout-new-grid-layout-with-columns "layout.NewGridLayoutWithColumns" @@ -2813,6 +3113,7 @@ storage-reader "storage.Reader" storage-save-file-to-uri "storage.SaveFileToURI" storage-writer "storage.Writer" test-apply-theme "test.ApplyTheme" +test-assert-all-color-names-defined "test.AssertAllColorNamesDefined" test-assert-canvas-tappable-at "test.AssertCanvasTappableAt" test-assert-image-matches "test.AssertImageMatches" test-assert-notification-sent "test.AssertNotificationSent" @@ -2825,6 +3126,7 @@ test-double-tap "test.DoubleTap" test-drag "test.Drag" test-focus-next "test.FocusNext" test-focus-previous "test.FocusPrevious" +test-known-theme-variants "test.KnownThemeVariants" test-laid-out-objects "test.LaidOutObjects" test-move-mouse "test.MoveMouse" test-new-app "test.NewApp" @@ -2833,6 +3135,8 @@ test-new-canvas-with-painter "test.NewCanvasWithPain test-new-clipboard "test.NewClipboard" test-new-driver "test.NewDriver" test-new-driver-with-painter "test.NewDriverWithPainter" +test-new-temp-app "test.NewTempApp" +test-new-temp-window "test.NewTempWindow" test-new-theme "test.NewTheme" test-new-transparent-canvas-with-painter "test.NewTransparentCanvasWithPainter" test-new-window "test.NewWindow" @@ -2842,6 +3146,7 @@ test-tap-at "test.TapAt" test-tap-canvas "test.TapCanvas" test-tap-secondary "test.TapSecondary" test-tap-secondary-at "test.TapSecondaryAt" +test-temp-widget-renderer "test.TempWidgetRenderer" test-theme "test.Theme" test-type "test.Type" test-type-on-canvas "test.TypeOnCanvas" @@ -2854,9 +3159,12 @@ theme-button-color "theme.ButtonColor" theme-cancel-icon "theme.CancelIcon" theme-caption-text-size "theme.CaptionTextSize" theme-check-button-checked-icon "theme.CheckButtonCheckedIcon" +theme-check-button-fill-icon "theme.CheckButtonFillIcon" theme-check-button-icon "theme.CheckButtonIcon" +theme-color "theme.Color" theme-color-achromatic-icon "theme.ColorAchromaticIcon" theme-color-chromatic-icon "theme.ColorChromaticIcon" +theme-color-for-widget "theme.ColorForWidget" theme-color-name-background "Get theme.ColorNameBackground value" theme-color-name-button "Get theme.ColorNameButton value" theme-color-name-disabled "Get theme.ColorNameDisabled value" @@ -2864,6 +3172,10 @@ theme-color-name-disabled-button "Get theme.ColorNameDis theme-color-name-error "Get theme.ColorNameError value" theme-color-name-focus "Get theme.ColorNameFocus value" theme-color-name-foreground "Get theme.ColorNameForeground value" +theme-color-name-foreground-on-error "Get theme.ColorNameForegroundOnError value" +theme-color-name-foreground-on-primary "Get theme.ColorNameForegroundOnPrimary value" +theme-color-name-foreground-on-success "Get theme.ColorNameForegroundOnSuccess value" +theme-color-name-foreground-on-warning "Get theme.ColorNameForegroundOnWarning value" theme-color-name-header-background "Get theme.ColorNameHeaderBackground value" theme-color-name-hover "Get theme.ColorNameHover value" theme-color-name-hyperlink "Get theme.ColorNameHyperlink value" @@ -2891,6 +3203,8 @@ theme-content-paste-icon "theme.ContentPasteIcon theme-content-redo-icon "theme.ContentRedoIcon" theme-content-remove-icon "theme.ContentRemoveIcon" theme-content-undo-icon "theme.ContentUndoIcon" +theme-current "theme.Current" +theme-current-for-widget "theme.CurrentForWidget" theme-dark-theme "theme.DarkTheme" theme-default-emoji-font "theme.DefaultEmojiFont" theme-default-symbol-font "theme.DefaultSymbolFont" @@ -2901,6 +3215,7 @@ theme-default-text-italic-font "theme.DefaultTextItali theme-default-text-monospace-font "theme.DefaultTextMonospaceFont" theme-default-theme "theme.DefaultTheme" theme-delete-icon "theme.DeleteIcon" +theme-desktop-icon "theme.DesktopIcon" theme-disabled-button-color "theme.DisabledButtonColor" theme-disabled-color "theme.DisabledColor" theme-disabled-text-color "theme.DisabledTextColor" @@ -2921,6 +3236,7 @@ theme-focus-color "theme.FocusColor" theme-folder-icon "theme.FolderIcon" theme-folder-new-icon "theme.FolderNewIcon" theme-folder-open-icon "theme.FolderOpenIcon" +theme-font "theme.Font" theme-foreground-color "theme.ForegroundColor" theme-from-json "theme.FromJSON" theme-from-json-reader "theme.FromJSONReader" @@ -2933,6 +3249,8 @@ theme-history-icon "theme.HistoryIcon" theme-home-icon "theme.HomeIcon" theme-hover-color "theme.HoverColor" theme-hyperlink-color "theme.HyperlinkColor" +theme-icon "theme.Icon" +theme-icon-for-widget "theme.IconForWidget" theme-icon-inline-size "theme.IconInlineSize" theme-icon-name-account "Get theme.IconNameAccount value" theme-icon-name-arrow-drop-down "Get theme.IconNameArrowDropDown value" @@ -2941,6 +3259,7 @@ theme-icon-name-broken-image "Get theme.IconNameBrok theme-icon-name-cancel "Get theme.IconNameCancel value" theme-icon-name-check-button "Get theme.IconNameCheckButton value" theme-icon-name-check-button-checked "Get theme.IconNameCheckButtonChecked value" +theme-icon-name-check-button-fill "Get theme.IconNameCheckButtonFill value" theme-icon-name-color-achromatic "Get theme.IconNameColorAchromatic value" theme-icon-name-color-chromatic "Get theme.IconNameColorChromatic value" theme-icon-name-color-palette "Get theme.IconNameColorPalette value" @@ -2955,11 +3274,13 @@ theme-icon-name-content-redo "Get theme.IconNameCont theme-icon-name-content-remove "Get theme.IconNameContentRemove value" theme-icon-name-content-undo "Get theme.IconNameContentUndo value" theme-icon-name-delete "Get theme.IconNameDelete value" +theme-icon-name-desktop "Get theme.IconNameDesktop value" theme-icon-name-document "Get theme.IconNameDocument value" theme-icon-name-document-create "Get theme.IconNameDocumentCreate value" theme-icon-name-document-print "Get theme.IconNameDocumentPrint value" theme-icon-name-document-save "Get theme.IconNameDocumentSave value" theme-icon-name-download "Get theme.IconNameDownload value" +theme-icon-name-drag-corner-indicator "Get theme.IconNameDragCornerIndicator value" theme-icon-name-error "Get theme.IconNameError value" theme-icon-name-file "Get theme.IconNameFile value" theme-icon-name-file-application "Get theme.IconNameFileApplication value" @@ -3007,6 +3328,7 @@ theme-icon-name-navigate-next "Get theme.IconNameNavi theme-icon-name-question "Get theme.IconNameQuestion value" theme-icon-name-radio-button "Get theme.IconNameRadioButton value" theme-icon-name-radio-button-checked "Get theme.IconNameRadioButtonChecked value" +theme-icon-name-radio-button-fill "Get theme.IconNameRadioButtonFill value" theme-icon-name-search "Get theme.IconNameSearch value" theme-icon-name-search-replace "Get theme.IconNameSearchReplace value" theme-icon-name-settings "Get theme.IconNameSettings value" @@ -3024,6 +3346,9 @@ theme-icon-name-volume-down "Get theme.IconNameVolu theme-icon-name-volume-mute "Get theme.IconNameVolumeMute value" theme-icon-name-volume-up "Get theme.IconNameVolumeUp value" theme-icon-name-warning "Get theme.IconNameWarning value" +theme-icon-name-window-close "Get theme.IconNameWindowClose value" +theme-icon-name-window-maximize "Get theme.IconNameWindowMaximize value" +theme-icon-name-window-minimize "Get theme.IconNameWindowMinimize value" theme-info-icon "theme.InfoIcon" theme-inner-padding "theme.InnerPadding" theme-input-background-color "theme.InputBackgroundColor" @@ -3081,6 +3406,7 @@ theme-primary-color-named "theme.PrimaryColorName theme-primary-color-names "theme.PrimaryColorNames" theme-question-icon "theme.QuestionIcon" theme-radio-button-checked-icon "theme.RadioButtonCheckedIcon" +theme-radio-button-fill-icon "theme.RadioButtonFillIcon" theme-radio-button-icon "theme.RadioButtonIcon" theme-scroll-bar-color "theme.ScrollBarColor" theme-scroll-bar-size "theme.ScrollBarSize" @@ -3093,6 +3419,8 @@ theme-separator-color "theme.SeparatorColor" theme-separator-thickness-size "theme.SeparatorThicknessSize" theme-settings-icon "theme.SettingsIcon" theme-shadow-color "theme.ShadowColor" +theme-size "theme.Size" +theme-size-for-widget "theme.SizeForWidget" theme-size-name-caption-text "Get theme.SizeNameCaptionText value" theme-size-name-heading-text "Get theme.SizeNameHeadingText value" theme-size-name-inline-icon "Get theme.SizeNameInlineIcon value" @@ -3102,6 +3430,7 @@ theme-size-name-input-radius "Get theme.SizeNameInpu theme-size-name-line-spacing "Get theme.SizeNameLineSpacing value" theme-size-name-padding "Get theme.SizeNamePadding value" theme-size-name-scroll-bar "Get theme.SizeNameScrollBar value" +theme-size-name-scroll-bar-radius "Get theme.SizeNameScrollBarRadius value" theme-size-name-scroll-bar-small "Get theme.SizeNameScrollBarSmall value" theme-size-name-selection-radius "Get theme.SizeNameSelectionRadius value" theme-size-name-separator-thickness "Get theme.SizeNameSeparatorThickness value" @@ -3120,8 +3449,6 @@ theme-text-monospace-font "theme.TextMonospaceFon theme-text-size "theme.TextSize" theme-text-sub-heading-size "theme.TextSubHeadingSize" theme-upload-icon "theme.UploadIcon" -theme-variant-dark "Get theme.VariantDark value" -theme-variant-light "Get theme.VariantLight value" theme-view-full-screen-icon "theme.ViewFullScreenIcon" theme-view-refresh-icon "theme.ViewRefreshIcon" theme-view-restore-icon "theme.ViewRestoreIcon" @@ -3132,12 +3459,16 @@ theme-volume-mute-icon "theme.VolumeMuteIcon" theme-volume-up-icon "theme.VolumeUpIcon" theme-warning-color "theme.WarningColor" theme-warning-icon "theme.WarningIcon" +theme-window-close-icon "theme.WindowCloseIcon" +theme-window-maximize-icon "theme.WindowMaximizeIcon" +theme-window-minimize-icon "theme.WindowMinimizeIcon" theme-zoom-fit-icon "theme.ZoomFitIcon" theme-zoom-in-icon "theme.ZoomInIcon" theme-zoom-out-icon "theme.ZoomOutIcon" validation-new-all-strings "validation.NewAllStrings" validation-new-regexp "validation.NewRegexp" validation-new-time "validation.NewTime" +widget-adaptive "Get widget.Adaptive value" widget-button-align-center "Get widget.ButtonAlignCenter value" widget-button-align-leading "Get widget.ButtonAlignLeading value" widget-button-align-trailing "Get widget.ButtonAlignTrailing value" @@ -3150,6 +3481,7 @@ widget-low-importance "Get widget.LowImportan widget-medium-importance "Get widget.MediumImportance value" widget-new-accordion "widget.NewAccordion" widget-new-accordion-item "widget.NewAccordionItem" +widget-new-activity "widget.NewActivity" widget-new-base-widget "Create a new widget.BaseWidget struct" widget-new-button "widget.NewButton" widget-new-button-with-icon "widget.NewButtonWithIcon" diff --git a/fyne/config.toml b/fyne/config.toml index 03bfacf..add8759 100644 --- a/fyne/config.toml +++ b/fyne/config.toml @@ -3,7 +3,7 @@ out-dir = "../current" # Go name of package. package = "fyne.io/fyne/v2" # Go semantic version of package. -version = "v2.4.4" +version = "v2.5.2" # Auto-remove "New" part of functions (e.g. widget.NewLabel => widget-label, app.New => app). cut-new = true diff --git a/go.mod b/go.mod index bc9f714..5089f18 100644 --- a/go.mod +++ b/go.mod @@ -6,37 +6,36 @@ go 1.23.0 // replace github.com/refaktor/rye => ../rye -// replace github.com/refaktor/ryegen => ../ryegen +replace github.com/refaktor/ryegen => ../ryegen require ( - fyne.io/fyne/v2 v2.4.4 + fyne.io/fyne/v2 v2.5.2 github.com/jwalton/go-supportscolor v1.2.0 - github.com/refaktor/rye v0.0.32 - github.com/refaktor/ryegen v0.1.0 + github.com/refaktor/rye v0.0.25-0.20241008135859-3e401118b002 + github.com/refaktor/ryegen v0.1.1-0.20241009014844-8c047bebf475 github.com/webview/webview_go v0.0.0-20230901181450-5a14030a9070 ) require ( filippo.io/edwards25519 v1.1.0 // indirect - fyne.io/systray v1.10.1-0.20231115130155-104f5ef7839e // indirect + fyne.io/systray v1.11.0 // indirect github.com/BurntSushi/toml v1.4.0 // indirect github.com/RoaringBitmap/roaring v1.9.3 // indirect github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect - github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go-v2 v1.32.3 // indirect - github.com/aws/aws-sdk-go-v2/config v1.28.1 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.42 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.18 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.22 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.22 // indirect + github.com/aws/aws-sdk-go-v2 v1.31.0 // indirect + github.com/aws/aws-sdk-go-v2/config v1.27.39 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.37 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.3 // indirect - github.com/aws/aws-sdk-go-v2/service/ses v1.28.3 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.3 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.3 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.32.3 // indirect - github.com/aws/smithy-go v1.22.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20 // indirect + github.com/aws/aws-sdk-go-v2/service/ses v1.27.3 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.23.3 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.3 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.31.3 // indirect + github.com/aws/smithy-go v1.21.0 // indirect github.com/bitfield/script v0.23.0 // indirect github.com/bits-and-blooms/bitset v1.12.0 // indirect github.com/blevesearch/bleve/v2 v2.4.2 // indirect @@ -57,23 +56,23 @@ require ( github.com/blevesearch/zapx/v14 v14.3.10 // indirect github.com/blevesearch/zapx/v15 v15.3.13 // indirect github.com/blevesearch/zapx/v16 v16.1.5 // indirect - github.com/cszczepaniak/keyboard v0.1.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/drewlanenga/govector v0.0.0-20220726163947-b958ac08bc93 // indirect - github.com/fredbi/uri v1.0.0 // indirect - github.com/fsnotify/fsnotify v1.8.0 // indirect + github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203 // indirect + github.com/fredbi/uri v1.1.0 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe // indirect - github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504 // indirect + github.com/fyne-io/glfw-js v0.0.0-20240101223322-6e1efdc71b7a // indirect github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect github.com/gliderlabs/ssh v0.3.7 // indirect github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect - github.com/go-gl/glfw/v3.3/glfw v0.0.0-20221017161538-93cebf72946b // indirect + github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a // indirect github.com/go-gomail/gomail v0.0.0-20160411212932-81ebce5c23df // indirect github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-sql-driver/mysql v1.8.1 // indirect github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible // indirect - github.com/go-text/render v0.0.0-20230619120952-35bccb6164b8 // indirect - github.com/go-text/typesetting v0.1.0 // indirect + github.com/go-text/render v0.2.0 // indirect + github.com/go-text/typesetting v0.2.0 // indirect github.com/gobwas/httphead v0.1.0 // indirect github.com/gobwas/pool v0.2.1 // indirect github.com/gobwas/ws v1.4.0 // indirect @@ -89,8 +88,8 @@ require ( github.com/iancoleman/strcase v0.3.0 // indirect github.com/itchyny/gojq v0.12.13 // indirect github.com/itchyny/timefmt-go v0.1.5 // indirect + github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49 // indirect github.com/jinzhu/copier v0.4.0 // indirect - github.com/jlaffaye/ftp v0.2.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/json-iterator/go v1.1.11 // indirect github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e // indirect @@ -102,54 +101,48 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect - github.com/mattn/go-sqlite3 v1.14.24 // indirect + github.com/mattn/go-sqlite3 v1.14.23 // indirect github.com/mhale/smtpd v0.8.3 // indirect github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect github.com/modern-go/reflect2 v1.0.1 // indirect - github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect github.com/mrz1836/postmark v1.6.5 // indirect github.com/mschoch/smat v0.2.0 // indirect + github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/pkg/term v1.2.0-beta.2.0.20211217091447-1a4a3b719465 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/refaktor/go-peg v0.0.0-20220116201714-31e3dfa8dc7d // indirect - github.com/richardlehane/mscfb v1.0.4 // indirect - github.com/richardlehane/msoleps v1.0.4 // indirect github.com/rivo/uniseg v0.4.4 // indirect - github.com/sashabaranov/go-openai v1.32.5 // indirect + github.com/rymdport/portal v0.2.6 // indirect + github.com/sashabaranov/go-openai v1.31.0 // indirect github.com/shirou/gopsutil/v3 v3.24.5 // indirect github.com/shoenig/go-m1cpu v0.1.6 // indirect github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect github.com/stretchr/testify v1.9.0 // indirect github.com/technoweenie/multipartstreamer v1.0.1 // indirect - github.com/tevino/abool v1.2.0 // indirect github.com/thomasberger/parsemail v1.2.7 // indirect github.com/tklauser/go-sysconf v0.3.13 // indirect github.com/tklauser/numcpus v0.7.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect - github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d // indirect - github.com/xuri/excelize/v2 v2.9.0 // indirect - github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 // indirect - github.com/yuin/goldmark v1.5.5 // indirect + github.com/yuin/goldmark v1.7.1 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.etcd.io/bbolt v1.3.7 // indirect - go.mongodb.org/mongo-driver v1.17.1 // indirect - golang.org/x/crypto v0.28.0 // indirect + go.mongodb.org/mongo-driver v1.17.0 // indirect + golang.org/x/crypto v0.27.0 // indirect golang.org/x/image v0.18.0 // indirect - golang.org/x/mobile v0.0.0-20230922142353-e2f452493d57 // indirect + golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a // indirect golang.org/x/mod v0.21.0 // indirect - golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.9.0 // indirect - golang.org/x/sys v0.27.0 // indirect - golang.org/x/term v0.26.0 // indirect - golang.org/x/text v0.20.0 // indirect + golang.org/x/net v0.29.0 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.25.0 // indirect + golang.org/x/term v0.24.0 // indirect + golang.org/x/text v0.18.0 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - honnef.co/go/js/dom v0.0.0-20210725211120-f030747120f2 // indirect mvdan.cc/sh/v3 v3.7.0 // indirect ) diff --git a/go.sum b/go.sum index 0880c19..106ec53 100644 --- a/go.sum +++ b/go.sum @@ -39,10 +39,10 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= -fyne.io/fyne/v2 v2.4.4 h1:4efSRpoikcGbqQN83yzC9WmF8UNq9olsaJQ/Ejme6Z8= -fyne.io/fyne/v2 v2.4.4/go.mod h1:VyrxAOZ3NRZRWBvNIJbfqoKOG4DdbewoPk7ozqJKNPY= -fyne.io/systray v1.10.1-0.20231115130155-104f5ef7839e h1:Hvs+kW2VwCzNToF3FmnIAzmivNgrclwPgoUdVSrjkP8= -fyne.io/systray v1.10.1-0.20231115130155-104f5ef7839e/go.mod h1:oM2AQqGJ1AMo4nNqZFYU8xYygSBZkW2hmdJ7n4yjedE= +fyne.io/fyne/v2 v2.5.2 h1:eSyGTmSkv10yAdAeHpDet6u2KkKxOGFc14kQu81We7Q= +fyne.io/fyne/v2 v2.5.2/go.mod h1:26gqPDvtaxHeyct+C0BBjuGd2zwAJlPkUGSBrb+d7Ug= +fyne.io/systray v1.11.0 h1:D9HISlxSkx+jHSniMBR6fCFOUjk1x/OOOJLa9lJYAKg= +fyne.io/systray v1.11.0/go.mod h1:RVwqP9nYMo7h5zViCBHri2FgjXF7H2cub7MAq4NSoLs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= @@ -55,36 +55,34 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= -github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= -github.com/aws/aws-sdk-go-v2 v1.32.3 h1:T0dRlFBKcdaUPGNtkBSwHZxrtis8CQU17UpNBZYd0wk= -github.com/aws/aws-sdk-go-v2 v1.32.3/go.mod h1:2SK5n0a2karNTv5tbP1SjsX0uhttou00v/HpXKM1ZUo= -github.com/aws/aws-sdk-go-v2/config v1.28.1 h1:oxIvOUXy8x0U3fR//0eq+RdCKimWI900+SV+10xsCBw= -github.com/aws/aws-sdk-go-v2/config v1.28.1/go.mod h1:bRQcttQJiARbd5JZxw6wG0yIK3eLeSCPdg6uqmmlIiI= -github.com/aws/aws-sdk-go-v2/credentials v1.17.42 h1:sBP0RPjBU4neGpIYyx8mkU2QqLPl5u9cmdTWVzIpHkM= -github.com/aws/aws-sdk-go-v2/credentials v1.17.42/go.mod h1:FwZBfU530dJ26rv9saAbxa9Ej3eF/AK0OAY86k13n4M= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.18 h1:68jFVtt3NulEzojFesM/WVarlFpCaXLKaBxDpzkQ9OQ= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.18/go.mod h1:Fjnn5jQVIo6VyedMc0/EhPpfNlPl7dHV916O6B+49aE= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.22 h1:Jw50LwEkVjuVzE1NzkhNKkBf9cRN7MtE1F/b2cOKTUM= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.22/go.mod h1:Y/SmAyPcOTmpeVaWSzSKiILfXTVJwrGmYZhcRbhWuEY= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.22 h1:981MHwBaRZM7+9QSR6XamDzF/o7ouUGxFzr+nVSIhrs= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.22/go.mod h1:1RA1+aBEfn+CAB/Mh0MB6LsdCYCnjZm7tKXtnk499ZQ= +github.com/aws/aws-sdk-go-v2 v1.31.0 h1:3V05LbxTSItI5kUqNwhJrrrY1BAXxXt0sN0l72QmG5U= +github.com/aws/aws-sdk-go-v2 v1.31.0/go.mod h1:ztolYtaEUtdpf9Wftr31CJfLVjOnD/CVRkKOOYgF8hA= +github.com/aws/aws-sdk-go-v2/config v1.27.39 h1:FCylu78eTGzW1ynHcongXK9YHtoXD5AiiUqq3YfJYjU= +github.com/aws/aws-sdk-go-v2/config v1.27.39/go.mod h1:wczj2hbyskP4LjMKBEZwPRO1shXY+GsQleab+ZXT2ik= +github.com/aws/aws-sdk-go-v2/credentials v1.17.37 h1:G2aOH01yW8X373JK419THj5QVqu9vKEwxSEsGxihoW0= +github.com/aws/aws-sdk-go-v2/credentials v1.17.37/go.mod h1:0ecCjlb7htYCptRD45lXJ6aJDQac6D2NlKGpZqyTG6A= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14 h1:C/d03NAmh8C4BZXhuRNboF/DqhBkBCeDiJDcaqIT5pA= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.14/go.mod h1:7I0Ju7p9mCIdlrfS+JCgqcYD0VXz/N4yozsox+0o078= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18 h1:kYQ3H1u0ANr9KEKlGs/jTLrBFPo8P8NaH/w7A01NeeM= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.18/go.mod h1:r506HmK5JDUh9+Mw4CfGJGSSoqIiLCndAuqXuhbv67Y= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18 h1:Z7IdFUONvTcvS7YuhtVxN99v2cCoHRXOS4mTr0B/pUc= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.18/go.mod h1:DkKMmksZVVyat+Y+r1dEOgJEfUeA7UngIHWeKsi0yNc= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 h1:TToQNkvGguu209puTojY/ozlqy2d/SFNcoLIqTFi42g= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0/go.mod h1:0jp+ltwkf+SwG2fm/PKo8t4y8pJSgOCO4D8Lz3k0aHQ= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.3 h1:qcxX0JYlgWH3hpPUnd6U0ikcl6LLA9sLkXE2w1fpMvY= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.3/go.mod h1:cLSNEmI45soc+Ef8K/L+8sEA3A3pYFEYf5B5UI+6bH4= -github.com/aws/aws-sdk-go-v2/service/ses v1.28.3 h1:/ioiCUft5rJL1ufmmVq3Qzg198wgzj/NRm6eHFthEAc= -github.com/aws/aws-sdk-go-v2/service/ses v1.28.3/go.mod h1:IbgnKNoFmzljAdSbce2P4cNT6pLmrdFI+q02Q2PCM7o= -github.com/aws/aws-sdk-go-v2/service/sso v1.24.3 h1:UTpsIf0loCIWEbrqdLb+0RxnTXfWh2vhw4nQmFi4nPc= -github.com/aws/aws-sdk-go-v2/service/sso v1.24.3/go.mod h1:FZ9j3PFHHAR+w0BSEjK955w5YD2UwB/l/H0yAK3MJvI= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.3 h1:2YCmIXv3tmiItw0LlYf6v7gEHebLY45kBEnPezbUKyU= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.3/go.mod h1:u19stRyNPxGhj6dRm+Cdgu6N75qnbW7+QN0q0dsAk58= -github.com/aws/aws-sdk-go-v2/service/sts v1.32.3 h1:wVnQ6tigGsRqSWDEEyH6lSAJ9OyFUsSnbaUWChuSGzs= -github.com/aws/aws-sdk-go-v2/service/sts v1.32.3/go.mod h1:VZa9yTFyj4o10YGsmDO4gbQJUvvhY72fhumT8W4LqsE= -github.com/aws/smithy-go v1.22.0 h1:uunKnWlcoL3zO7q+gG2Pk53joueEOsnNB28QdMsmiMM= -github.com/aws/smithy-go v1.22.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5 h1:QFASJGfT8wMXtuP3D5CRmMjARHv9ZmzFUMJznHDOY3w= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.5/go.mod h1:QdZ3OmoIjSX+8D1OPAzPxDfjXASbBMDsz9qvtyIhtik= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20 h1:Xbwbmk44URTiHNx6PNo0ujDE6ERlsCKJD3u1zfnzAPg= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.20/go.mod h1:oAfOFzUB14ltPZj1rWwRc3d/6OgD76R8KlvU3EqM9Fg= +github.com/aws/aws-sdk-go-v2/service/ses v1.27.3 h1:i7k9FzwUfv9seln228iz+69OyXZ0FMqhwotSeAlRC7A= +github.com/aws/aws-sdk-go-v2/service/ses v1.27.3/go.mod h1:WJjeWePq/vToxtM4fKbGHiXvInPARrWn8XJ0NOu4KtY= +github.com/aws/aws-sdk-go-v2/service/sso v1.23.3 h1:rs4JCczF805+FDv2tRhZ1NU0RB2H6ryAvsWPanAr72Y= +github.com/aws/aws-sdk-go-v2/service/sso v1.23.3/go.mod h1:XRlMvmad0ZNL+75C5FYdMvbbLkd6qiqz6foR1nA1PXY= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.3 h1:S7EPdMVZod8BGKQQPTBK+FcX9g7bKR7c4+HxWqHP7Vg= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.27.3/go.mod h1:FnvDM4sfa+isJ3kDXIzAB9GAwVSzFzSy97uZ3IsHo4E= +github.com/aws/aws-sdk-go-v2/service/sts v1.31.3 h1:VzudTFrDCIDakXtemR7l6Qzt2+JYsVqo2MxBPt5k8T8= +github.com/aws/aws-sdk-go-v2/service/sts v1.31.3/go.mod h1:yMWe0F+XG0DkRZK5ODZhG7BEFYhLXi2dqGsv6tX0cgI= +github.com/aws/smithy-go v1.21.0 h1:H7L8dtDRk0P1Qm6y0ji7MCYMQObJ5R9CRpyPhRUkLYA= +github.com/aws/smithy-go v1.21.0/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bitfield/script v0.23.0 h1:N0R5yLEl6wJIS9PR/A6xXwjMsplMubyxdi05N5l0X28= github.com/bitfield/script v0.23.0/go.mod h1:fv+6x4OzVsRs6qAlc7wiGq8fq1b5orhtQdtW0dwjUHI= @@ -140,13 +138,13 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cszczepaniak/keyboard v0.1.0 h1:pgLRkOUsmRqqc9jGITpqip83iHcUqACzW5Ks5VvC9Qg= -github.com/cszczepaniak/keyboard v0.1.0/go.mod h1:lRCBYuxO8icrkQFwg5rFJYCuEd5tD+VeiHsIIzNNUSc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/drewlanenga/govector v0.0.0-20220726163947-b958ac08bc93 h1:2VXZHsypUG1HaQcj/+nQc5TbZ4qZ5FSl7KN4s1BjFQY= github.com/drewlanenga/govector v0.0.0-20220726163947-b958ac08bc93/go.mod h1:AbP/uRrjZFATEwl0P2DHePteIMZRWHEJBWBmMmLdCkk= +github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203 h1:XBBHcIb256gUJtLmY22n99HaZTz+r2Z51xUPi01m3wg= +github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203/go.mod h1:E1jcSv8FaEny+OP/5k9UxZVw9YFWGj7eI4KR/iOBqCg= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -155,17 +153,19 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g= +github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= github.com/frankban/quicktest v1.14.5 h1:dfYrrRyLtiqT9GyKXgdh+k4inNeTvmGbuSgZ3lx3GhA= github.com/frankban/quicktest v1.14.5/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fredbi/uri v1.0.0 h1:s4QwUAZ8fz+mbTsukND+4V5f+mJ/wjaTokwstGUAemg= -github.com/fredbi/uri v1.0.0/go.mod h1:1xC40RnIOGCaQzswaOvrzvG/3M3F0hyDVb3aO/1iGy0= +github.com/fredbi/uri v1.1.0 h1:OqLpTXtyRg9ABReqvDGdJPqZUxs8cyBDOMXBbskCaB8= +github.com/fredbi/uri v1.1.0/go.mod h1:aYTUoAXBOq7BLfVJ8GnKmfcuURosB1xyHDIfWeC/iW4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= -github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe h1:A/wiwvQ0CAjPkuJytaD+SsXkPU0asQ+guQEIg1BJGX4= github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe/go.mod h1:d4clgH0/GrRwWjRzJJQXxT/h1TyuNSfF/X64zb/3Ggg= -github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504 h1:+31CdF/okdokeFNoy9L/2PccG3JFidQT3ev64/r4pYU= -github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504/go.mod h1:gLRWYfYnMA9TONeppRSikMdXlHQ97xVsPojddUv3b/E= +github.com/fyne-io/glfw-js v0.0.0-20240101223322-6e1efdc71b7a h1:ybgRdYvAHTn93HW79bLiBiJwVL4jVeyGQRZMgImoeWs= +github.com/fyne-io/glfw-js v0.0.0-20240101223322-6e1efdc71b7a/go.mod h1:gsGA2dotD4v0SR6PmPCYvS9JuOeMwAtmfvDE7mbYXMY= github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 h1:hnLq+55b7Zh7/2IRzWCpiTcAvjv/P8ERF+N7+xXbZhk= github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2/go.mod h1:eO7W361vmlPOrykIg+Rsh1SZ3tQBaOsfzZhsIOb/Lm0= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -176,9 +176,8 @@ github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6/go.mod h1:9YTyiznxEY1fVin github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211213063430-748e38ca8aec/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20221017161538-93cebf72946b h1:GgabKamyOYguHqHjSkDACcgoPIz3w0Dis/zJ1wyHHHU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20221017161538-93cebf72946b/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a h1:vxnBhFDDT+xzxf1jTJKMKZw3H0swfWk9RpWbBbDK5+0= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gomail/gomail v0.0.0-20160411212932-81ebce5c23df h1:Bao6dhmbTA1KFVxmJ6nBoMuOJit2yjEgLJpIMYpop0E= github.com/go-gomail/gomail v0.0.0-20160411212932-81ebce5c23df/go.mod h1:GJr+FCSXshIwgHBtLglIg9M2l2kQSi6QjVAngtzI08Y= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= @@ -187,12 +186,12 @@ github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpv github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible h1:2cauKuaELYAEARXRkq2LrJ0yDDv1rW7+wrTEdVL3uaU= github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible/go.mod h1:qf9acutJ8cwBUhm1bqgz6Bei9/C/c93FPDljKWwsOgM= -github.com/go-text/render v0.0.0-20230619120952-35bccb6164b8 h1:VkKnvzbvHqgEfm351rfr8Uclu5fnwq8HP2ximUzJsBM= -github.com/go-text/render v0.0.0-20230619120952-35bccb6164b8/go.mod h1:h29xCucjNsDcYb7+0rJokxVwYAq+9kQ19WiFuBKkYtc= -github.com/go-text/typesetting v0.1.0 h1:vioSaLPYcHwPEPLT7gsjCGDCoYSbljxoHJzMnKwVvHw= -github.com/go-text/typesetting v0.1.0/go.mod h1:d22AnmeKq/on0HNv73UFriMKc4Ez6EqZAofLhAzpSzI= -github.com/go-text/typesetting-utils v0.0.0-20231211103740-d9332ae51f04 h1:zBx+p/W2aQYtNuyZNcTfinWvXBQwYtDfme051PR/lAY= -github.com/go-text/typesetting-utils v0.0.0-20231211103740-d9332ae51f04/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o= +github.com/go-text/render v0.2.0 h1:LBYoTmp5jYiJ4NPqDc2pz17MLmA3wHw1dZSVGcOdeAc= +github.com/go-text/render v0.2.0/go.mod h1:CkiqfukRGKJA5vZZISkjSYrcdtgKQWRa2HIzvwNN5SU= +github.com/go-text/typesetting v0.2.0 h1:fbzsgbmk04KiWtE+c3ZD4W2nmCRzBqrqQOvYlwAOdho= +github.com/go-text/typesetting v0.2.0/go.mod h1:2+owI/sxa73XA581LAzVuEBZ3WEEV2pXeDswCH/3i1I= +github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66 h1:GUrm65PQPlhFSKjLPGOZNPNxLCybjzjYBzjfoBGaDUY= +github.com/go-text/typesetting-utils v0.0.0-20240317173224-1986cbe96c66/go.mod h1:DDxDdQEnB70R8owOx3LVpEFvpMK9eeH1o2r0yZhFI9o= github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= @@ -270,6 +269,8 @@ github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y= +github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= @@ -283,7 +284,6 @@ github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pw github.com/gorilla/sessions v1.4.0 h1:kpIYOp/oi6MG/p5PgxApU8srsSw9tuFbt46Lt7auzqQ= github.com/gorilla/sessions v1.4.0/go.mod h1:FLWm50oby91+hl7p/wRxDth9bWSuk0qVL2emc7lT5ik= github.com/goxjs/gl v0.0.0-20210104184919-e3fafc6f8f2a/go.mod h1:dy/f2gjY09hwVfIyATps4G2ai7/hLwLkc5TrPqONuXY= -github.com/goxjs/glfw v0.0.0-20191126052801-d2efb5f20838/go.mod h1:oS8P8gVOT4ywTcjV6wZlOU4GuVFQ8F5328KY3MJ79CY= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= @@ -317,10 +317,10 @@ github.com/itchyny/gojq v0.12.13 h1:IxyYlHYIlspQHHTE0f3cJF0NKDMfajxViuhBLnHd/QU= github.com/itchyny/gojq v0.12.13/go.mod h1:JzwzAqenfhrPUuwbmEz3nu3JQmFLlQTQMUcOdnu/Sf4= github.com/itchyny/timefmt-go v0.1.5 h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE= github.com/itchyny/timefmt-go v0.1.5/go.mod h1:nEP7L+2YmAbT2kZ2HfSs1d8Xtw9LY8D2stDBckWakZ8= +github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49 h1:Po+wkNdMmN+Zj1tDsJQy7mJlPlwGNQd9JZoPjObagf8= +github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49/go.mod h1:YiutDnxPRLk5DLUFj6Rw4pRBBURZY07GFr54NdV9mQg= github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8= github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= -github.com/jlaffaye/ftp v0.2.0 h1:lXNvW7cBu7R/68bknOX3MrRIIqZ61zELs1P2RAiA3lg= -github.com/jlaffaye/ftp v0.2.0/go.mod h1:is2Ds5qkhceAPy2xD6RLI6hmp/qysSoymZ+Z2uTnspI= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= @@ -366,8 +366,8 @@ github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/go-sqlite3 v1.14.24 h1:tpSp2G2KyMnnQu99ngJ47EIkWVmliIizyZBfPrBWDRM= -github.com/mattn/go-sqlite3 v1.14.24/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= +github.com/mattn/go-sqlite3 v1.14.23 h1:gbShiuAP1W5j9UOksQ06aiiqPMxYecovVGwmTxWtuw0= +github.com/mattn/go-sqlite3 v1.14.23/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mhale/smtpd v0.8.3 h1:8j8YNXajksoSLZja3HdwvYVZPuJSqAxFsib3adzRRt8= github.com/mhale/smtpd v0.8.3/go.mod h1:MQl+y2hwIEQCXtNhe5+55n0GZOjSmeqORDIXbqUL3x4= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= @@ -384,19 +384,21 @@ github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= -github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/mrz1836/postmark v1.6.5 h1:FSlysQmx9n4NnU4IsvZ0nN+rylNqPHvqYcHtuSk9yi8= github.com/mrz1836/postmark v1.6.5/go.mod h1:6z5MxAH00Kj44owtQaryv9Pbqp5OKT3wWcRSydB0p0A= github.com/mschoch/smat v0.2.0 h1:8imxQsjDm8yFEAVBe7azKmKSgzSkZXDuKkSq9374khM= github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOlotKw= github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= +github.com/nicksnyder/go-i18n/v2 v2.4.0 h1:3IcvPOAvnCKwNm0TB0dLDTuawWEj+ax/RERNC+diLMM= +github.com/nicksnyder/go-i18n/v2 v2.4.0/go.mod h1:nxYSZE9M0bf3Y70gPQjN9ha7XNHX7gMc814+6wVyEI4= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA= +github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pkg/term v1.2.0-beta.2.0.20211217091447-1a4a3b719465 h1:J1AQza02ffZ4VP77HnZ5kRyzf6ak1LkjYQutOCdvckI= github.com/pkg/term v1.2.0-beta.2.0.20211217091447-1a4a3b719465/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= @@ -408,15 +410,8 @@ github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:Om github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/refaktor/go-peg v0.0.0-20220116201714-31e3dfa8dc7d h1:FXrWUGgPRzhaZIBho8zNLSrMp0VpP8E9+wbRRnJYlbE= github.com/refaktor/go-peg v0.0.0-20220116201714-31e3dfa8dc7d/go.mod h1:iIkrsFobLIWX8kQ6Oqj4cl4nwdMSE92DWpWwk9YlG9s= -github.com/refaktor/rye v0.0.32 h1:HD+5Ii7A/slgkwRzAdiHR9+n79icGKbh1BfLJ6B1BPg= -github.com/refaktor/rye v0.0.32/go.mod h1:oQi3tQAda4zFgE0C/cCHLKzcRx6vVyV5T2mBDilHr1Q= -github.com/refaktor/ryegen v0.1.0 h1:g74xYZHv5vnkRn+gV3Hy/28OYqi9DrnXeZzXhNF7zTk= -github.com/refaktor/ryegen v0.1.0/go.mod h1:e0SC24+QY8gh/mI/7r6jaU6MNRfC3JcnJv1RUQDJHHY= -github.com/richardlehane/mscfb v1.0.4 h1:WULscsljNPConisD5hR0+OyZjwK46Pfyr6mPu5ZawpM= -github.com/richardlehane/mscfb v1.0.4/go.mod h1:YzVpcZg9czvAuhk9T+a3avCpcFPMUWm7gK3DypaEsUk= -github.com/richardlehane/msoleps v1.0.1/go.mod h1:BWev5JBpU9Ko2WAgmZEuiz4/u3ZYTKbjLycmwiWUfWg= -github.com/richardlehane/msoleps v1.0.4 h1:WuESlvhX3gH2IHcd8UqyCuFY5yiq/GR/yqaSM/9/g00= -github.com/richardlehane/msoleps v1.0.4/go.mod h1:BWev5JBpU9Ko2WAgmZEuiz4/u3ZYTKbjLycmwiWUfWg= +github.com/refaktor/rye v0.0.25-0.20241008135859-3e401118b002 h1:V8GuMwY5zsjEOWL20qpBm5o5guyfuDZC0ILkZTM98n8= +github.com/refaktor/rye v0.0.25-0.20241008135859-3e401118b002/go.mod h1:2mL6Wyva2nCWnv4xmzKkOsG2QEF9vVVSG86kx3AIps4= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= @@ -426,8 +421,10 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sashabaranov/go-openai v1.32.5 h1:/eNVa8KzlE7mJdKPZDj6886MUzZQjoVHyn0sLvIt5qA= -github.com/sashabaranov/go-openai v1.32.5/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= +github.com/rymdport/portal v0.2.6 h1:HWmU3gORu7vWcpr7VSwUS2Xx1HtJXVcUuTqEZcMEsIg= +github.com/rymdport/portal v0.2.6/go.mod h1:kFF4jslnJ8pD5uCi17brj/ODlfIidOxlgUDTO5ncnC4= +github.com/sashabaranov/go-openai v1.31.0 h1:rGe77x7zUeCjtS2IS7NCY6Tp4bQviXNMhkQM6hz/UC4= +github.com/sashabaranov/go-openai v1.31.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI= github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk= @@ -452,7 +449,6 @@ github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c/go.mod h1:cNQ3dwVJtS github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef h1:Ch6Q+AZUxDBCVqdkI8FSpFyZDtCVBc2VmejdNrm5rRQ= github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef/go.mod h1:nXTWP6+gD5+LUJ8krVhhoeHjvHTutPxMYl5SvkcnJNE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -460,14 +456,11 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/technoweenie/multipartstreamer v1.0.1 h1:XRztA5MXiR1TIRHxH2uNxXxaIkKQDeX7m2XsSOlQEnM= github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog= -github.com/tevino/abool v1.2.0 h1:heAkClL8H6w+mK5md9dzsuohKeXHUpY7Vw0ZCKW+huA= -github.com/tevino/abool v1.2.0/go.mod h1:qc66Pna1RiIsPa7O4Egxxs9OqkuxDX55zznh9K07Tzg= github.com/thomasberger/parsemail v1.2.7 h1:UIgLPPDFb2Sc4FT168i6yinw48vzezkqXiXOTrBlkwo= github.com/thomasberger/parsemail v1.2.7/go.mod h1:tdLcf4AbEDI3JuognWe7Xun8x/ZKVSQxf9hsQReCS8E= github.com/tklauser/go-sysconf v0.3.13 h1:GBUpcahXSpR2xN01jhkNAbTLRk2Yzgggk8IM08lq3r4= @@ -480,12 +473,6 @@ github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQ github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/webview/webview_go v0.0.0-20230901181450-5a14030a9070 h1:imZLWyo1ondeQjqfb/eHuYgFiOAYg6ugSMCnGfPTPmg= github.com/webview/webview_go v0.0.0-20230901181450-5a14030a9070/go.mod h1:yE65LFCeWf4kyWD5re+h4XNvOHJEXOCOuJZ4v8l5sgk= -github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d h1:llb0neMWDQe87IzJLS4Ci7psK/lVsjIS2otl+1WyRyY= -github.com/xuri/efp v0.0.0-20240408161823-9ad904a10d6d/go.mod h1:ybY/Jr0T0GTCnYjKqmdwxyxn2BQf2RcQIIvex5QldPI= -github.com/xuri/excelize/v2 v2.9.0 h1:1tgOaEq92IOEumR1/JfYS/eR0KHOCsRv/rYXXh6YJQE= -github.com/xuri/excelize/v2 v2.9.0/go.mod h1:uqey4QBZ9gdMeWApPLdhm9x+9o2lq4iVmjiLfBS5hdE= -github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7 h1:hPVCafDV85blFTabnqKgNhDCkJX25eik94Si9cTER4A= -github.com/xuri/nfp v0.0.0-20240318013403-ab9948c2c4a7/go.mod h1:WwHg+CVyzlv/TX9xqBFXEZAuxOPxn2k1GNHwG41IIUQ= github.com/yhirose/go-peg v0.0.0-20210804202551-de25d6753cf1 h1:7iTmQ0lZwTtfm4XMgP5ezzWMDCjo7GTS0ZgCj6jpVzM= github.com/yhirose/go-peg v0.0.0-20210804202551-de25d6753cf1/go.mod h1:q2QWLflHsZxT6ixYcXveTYicEvxGh5Uv6CnI7f7BfjQ= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -494,8 +481,8 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.5.5 h1:IJznPe8wOzfIKETmMkd06F8nXkmlhaHqFRM9l1hAGsU= -github.com/yuin/goldmark v1.5.5/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= +github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= @@ -503,8 +490,8 @@ go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.mongodb.org/mongo-driver v1.17.1 h1:Wic5cJIwJgSpBhe3lx3+/RybR5PiYRMpVFgO7cOHyIM= -go.mongodb.org/mongo-driver v1.17.1/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4= +go.mongodb.org/mongo-driver v1.17.0 h1:Hp4q2MCjvY19ViwimTs00wHi7G4yzxh4/2+nTx8r40k= +go.mongodb.org/mongo-driver v1.17.0/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= @@ -525,8 +512,8 @@ golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= +golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -557,8 +544,8 @@ golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mobile v0.0.0-20211207041440-4e6c2922fdee/go.mod h1:pe2sM7Uk+2Su1y7u/6Z8KJ24D7lepUjFZbhFOrmDfuQ= -golang.org/x/mobile v0.0.0-20230922142353-e2f452493d57 h1:Q6NT8ckDYNcwmi/bmxe+XbiDMXqMRW1xFBtJ+bIpie4= -golang.org/x/mobile v0.0.0-20230922142353-e2f452493d57/go.mod h1:wEyOn6VvNW7tcf+bW/wBz1sehi2s2BZ4TimyR7qZen4= +golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a h1:sYbmY3FwUWCBTodZL1S3JUuOvaW6kM2o+clDzzDNBWg= +golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a/go.mod h1:Ede7gF0KGoHlj822RtphAHK1jLdrcuRBZg0sF1Q+SPc= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= @@ -607,8 +594,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= -golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -632,8 +619,8 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= -golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -685,12 +672,12 @@ golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= -golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU= -golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= +golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= +golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -699,8 +686,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= -golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -886,8 +873,6 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/js/dom v0.0.0-20210725211120-f030747120f2 h1:oomkgU6VaQDsV6qZby2uz1Lap0eXmku8+2em3A/l700= -honnef.co/go/js/dom v0.0.0-20210725211120-f030747120f2/go.mod h1:sUMDUKNB2ZcVjt92UnLy3cdGs+wDAcrPdV3JP6sVgA4= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=