FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FilterViewModel

    struct · ferroui-diagnostics · v0.5.0

    struct FilterViewModel
    

    The filter of a list of the developer tools (properties, setters, events): a text that items must match, as plain text or as a regular expression, case sensitive or not, and as whole words or not. A regular expression that does not parse is reported as an error of FilterString.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    refresh_filter

    fn refresh_filter(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    RefreshFilter: raised when the filter changes, so that the lists it filters are filtered again. Disposing the returned handle removes the handler.

    Source

    has_errors

    fn has_errors(self: &Self) -> bool
    

    Whether the filter has errors: the regular expression does not parse.

    Source

    errors_changed

    fn errors_changed(self: &Self) -> &Event<str>
    

    ErrorsChanged: raised with the name of the property whose errors changed.

    Source

    filter

    fn filter(self: &Self, input: &str) -> bool
    

    Whether input passes the filter. Everything passes an empty filter and a filter whose regular expression does not parse.

    Source

    filter_string

    fn filter_string(self: &Self) -> String
    

    Source

    set_filter_string

    fn set_filter_string(self: &Self, value: String)
    

    Source

    use_regex_filter

    fn use_regex_filter(self: &Self) -> bool
    

    Source

    set_use_regex_filter

    fn set_use_regex_filter(self: &Self, value: bool)
    

    Source

    use_case_sensitive_filter

    fn use_case_sensitive_filter(self: &Self) -> bool
    

    Source

    set_use_case_sensitive_filter

    fn set_use_case_sensitive_filter(self: &Self, value: bool)
    

    Source

    use_whole_word_filter

    fn use_whole_word_filter(self: &Self) -> bool
    

    Source

    set_use_whole_word_filter

    fn set_use_whole_word_filter(self: &Self, value: bool)
    

    Source

    get_errors

    fn get_errors(self: &Self, property_name: Option<&str>) -> Vec<String>
    

    GetErrors(propertyName): the error of the property, if it has one.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.