zntg/ui/overlayproxy.go

20 lines
254 B
Go
Raw Normal View History

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