Trait arc_util::ui::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.

Object Safety§

This trait is not object safe.

Implementors§