Window calls Layout.Widgets(), then goes through that slice and calls each Widget.Draw() method directly. Or, may be, Window will just call Layout.Draw() and it will do all the work. I still don't know the right way, so, actual implementation may vary.
Window
callsLayout.Widgets()
, then goes through that slice and calls eachWidget.Draw()
method directly. Or, may be,Window
will just callLayout.Draw()
and it will do all the work. I still don't know the right way, so, actual implementation may vary.