pub trait ContextMenu:
ContextMenuBase
+ Send
+ Sync {
// Required methods
fn popup<R: Runtime>(&self, window: Window<R>) -> Result<()>;
fn popup_at<R: Runtime, P: Into<Position>>(
&self,
window: Window<R>,
position: P,
) -> Result<()>;
}
Available on
desktop
only.Expand description
A helper trait with methods to help creating a context menu.
§Safety
This trait is ONLY meant to be implemented internally by the crate.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.