summaryrefslogtreecommitdiff
path: root/table.custom.go
blob: abed9a54564cd56926a558047587dbf8390b928d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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"

func (pb *Tables) Custom(w *Widget) {
	log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", w)
	if mycustom != nil {
		mycustom(w)
	}
}

func (pb *Table) Custom(w *Widget) {
	log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", w)
	if mycustom != nil {
		mycustom(w)
	}
}

var mycustom func(*Widget)

func (pb *Table) RegisterCustom(f func(*Widget)) {
	mycustom = f
}