pub trait EventHandler {
// Required method
fn as_delegate(&self) -> ProtocolObject<dyn NSWindowDelegate>;
}Expand description
Trait for event handlers that can be used with panels
Required Methods§
Sourcefn as_delegate(&self) -> ProtocolObject<dyn NSWindowDelegate>
fn as_delegate(&self) -> ProtocolObject<dyn NSWindowDelegate>
Get the NSWindowDelegate protocol object
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".