Skip to main content

SettingEditorExt

Trait SettingEditorExt 

Source
pub trait SettingEditorExt {
    // Required methods
    fn editor_fn(&self) -> Option<WidgetFn<Setting>>;
    fn editor(&self) -> UiNode;
}
Expand description

Extends Setting to get custom editor metadata.

Required Methods§

Source

fn editor_fn(&self) -> Option<WidgetFn<Setting>>

Custom editor for the setting.

Source

fn editor(&self) -> UiNode

Instantiate editor.

If no editor is set the EDITORS service is used to instantiate the editor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SettingEditorExt for Setting

Implementors§