arc_util::ui

Trait Windowable

Source
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§

Source

const CONTEXT_MENU: bool

Whether to enable the context menu.

Provided Associated Constants§

Source

const DEFAULT_OPTIONS: bool = true

Whether to enable the default menu entries.

Provided Methods§

Source

fn render_menu(&mut self, _ui: &Ui<'_>, _props: &mut Props)

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.

Implementors§