b.Paint = drawRepo.GetPaint("widgets.Button", b)
type PaintFunc func(draw2d.GraphicContext)
drawRepo.Register("widgets.Button", func(w interface{}) PaintFunc {
b := w.(*Button)
return func(gc GraphicContext) {
// draw b into gc
}
})
--
You received this message because you are subscribed to the Google Groups "go-uik" group.
To view this discussion on the web visit https://groups.google.com/d/msg/go-uik/-/IsEyR-lyP64J.
To post to this group, send email to go-...@googlegroups.com.
To unsubscribe from this group, send email to go-uik+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/go-uik?hl=en.
Certainly, and in light of that it'd be worthwhile to make the default drawRepo as robust as possible for user configured styling.
Of course that's an entirely different discussion and once drawRepo or whatever iteration of it is setup, that discussion can be facilitated with real code and examples.