package ui type OverlayProxy struct { Proxy } func (p *OverlayProxy) OverlayShown() { overlay, ok := p.Content.(Overlay) if ok { overlay.OverlayShown() } } func (p *OverlayProxy) OverlayHidden() { overlay, ok := p.Content.(Overlay) if ok { overlay.OverlayHidden() } }