guipb/table.custom.go

34 lines
833 B
Go
Raw Normal View History

2025-03-05 12:11:57 -06:00
// Code generated by go.wit.com/apps/autogenpb DO NOT EDIT.
// This file was autogenerated with autogenpb 0.0.62 2025/02/24_1709_UTC
// go install go.wit.com/apps/autogenpb@latest
//
// define which structs (messages) you want to use in the .proto file
// Then sort.pb.go and marshal.pb.go files are autogenerated
//
// autogenpb uses it and has an example .proto file with instructions
//
package guipb
import "go.wit.com/log"
2025-03-05 20:14:40 -06:00
func (pb *Tables) Custom(w *Widget) {
log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", w)
2025-03-05 12:40:06 -06:00
if mycustom != nil {
2025-03-05 20:14:40 -06:00
mycustom(w)
2025-03-05 12:40:06 -06:00
}
2025-03-05 12:11:57 -06:00
}
2025-03-05 20:14:40 -06:00
func (pb *Table) Custom(w *Widget) {
log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", w)
2025-03-05 12:40:06 -06:00
if mycustom != nil {
2025-03-05 20:14:40 -06:00
mycustom(w)
2025-03-05 12:40:06 -06:00
}
}
2025-03-05 20:14:40 -06:00
var mycustom func(*Widget)
2025-03-05 12:40:06 -06:00
2025-03-05 20:14:40 -06:00
func (pb *Table) RegisterCustom(f func(*Widget)) {
2025-03-05 12:40:06 -06:00
mycustom = f
2025-03-05 12:11:57 -06:00
}