You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just so I don't forget, there are a couple more, but that's what I needed right now:
// Returns ActiveEvent or nil if event has other type
func (event *Event) Active() *ActiveEvent {
if event.Type == ACTIVEEVENT {
return (*ActiveEvent)(cast(event))
}
return nil
}
// Returns ResizeEvent or nil if event has other type
func (event *Event) Resize() *ResizeEvent {
if event.Type == VIDEORESIZE {
return (*ResizeEvent)(cast(event))
}
return nil
}
The text was updated successfully, but these errors were encountered:
Just so I don't forget, there are a couple more, but that's what I needed right now:
The text was updated successfully, but these errors were encountered: