Trait flo_ui::ViewModel [] [src]

pub trait ViewModel {
    fn get_property(&self, property_name: &str) -> BindRef<PropertyValue>;
fn set_property(&self, property_name: &str, new_value: PropertyValue);
fn get_property_names(&self) -> Vec<String>; }

Represents a viewmodel for a control subtree. ViewModels are used for controls which can be edited and need to have values stored by key in the controller

Required Methods

Retrieves a property

Updates a property

Important traits for Vec<u8>

Retrieves the names of all of the properties in this item

Implementors