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.
Members
newrefresh_filterhas_errorserrors_changedfilterfilter_stringset_filter_stringuse_regex_filterset_use_regex_filteruse_case_sensitive_filterset_use_case_sensitive_filteruse_whole_word_filterset_use_whole_word_filterget_errors
new
fn new() -> Rc<Self>
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.
has_errors
fn has_errors(self: &Self) -> bool
Whether the filter has errors: the regular expression does not parse.
errors_changed
fn errors_changed(self: &Self) -> &Event<str>
ErrorsChanged: raised with the name of the property whose errors
changed.
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.
filter_string
fn filter_string(self: &Self) -> String
set_filter_string
fn set_filter_string(self: &Self, value: String)
use_regex_filter
fn use_regex_filter(self: &Self) -> bool
set_use_regex_filter
fn set_use_regex_filter(self: &Self, value: bool)
use_case_sensitive_filter
fn use_case_sensitive_filter(self: &Self) -> bool
set_use_case_sensitive_filter
fn set_use_case_sensitive_filter(self: &Self, value: bool)
use_whole_word_filter
fn use_whole_word_filter(self: &Self) -> bool
set_use_whole_word_filter
fn set_use_whole_word_filter(self: &Self, value: bool)
get_errors
fn get_errors(self: &Self, property_name: Option<&str>) -> Vec<String>
GetErrors(propertyName): the error of the property, if it has one.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqINotifyPropertyChangedINotifyDataErrorInfoMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.