zntg/ui/overlayproxy.go

20 lines
282 B
Go
Raw Normal View History

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()
}
}