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.

Implementations on Foreign Types§

Source§

impl SettingEditorExt for Setting

Implementors§