pub trait Windowable<Props>: Component<Props> {
const CONTEXT_MENU: bool;
const DEFAULT_OPTIONS: bool = true;
// Provided method
fn render_menu(&mut self, _ui: &Ui<'_>, _props: &mut Props) { ... }
}
Expand description
Interface for windowable UI components.
Required Associated Constants§
Sourceconst CONTEXT_MENU: bool
const CONTEXT_MENU: bool
Whether to enable the context menu.
Provided Associated Constants§
Sourceconst DEFAULT_OPTIONS: bool = true
const DEFAULT_OPTIONS: bool = true
Whether to enable the default menu entries.
Provided Methods§
Renders the window context menu contents.
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.