AnySettingField

Trait AnySettingField 

Source
pub trait AnySettingField {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn type_name(&self) -> &'static str;
    fn type_id(&self) -> TypeId;
    fn field_type(&self) -> &SettingFieldType;
    fn style(&self) -> &StyleRefinement;
    fn is_resettable(&self, cx: &App) -> bool;
    fn reset(&self, window: &mut Window, cx: &mut App);
}
Expand description

A trait for setting fields that allows for dynamic typing.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn type_name(&self) -> &'static str

Source

fn type_id(&self) -> TypeId

Source

fn field_type(&self) -> &SettingFieldType

Source

fn style(&self) -> &StyleRefinement

Source

fn is_resettable(&self, cx: &App) -> bool

Source

fn reset(&self, window: &mut Window, cx: &mut App)

Implementors§