use_resource_as
function · ferroui-view · v0.5.0
fn use_resource_as<T: Clone + 'static>(key: &str) -> Option<T>
The resource key as a T (see use_resource): the conversion of
markup values, so a brush of a theme is a Rc<dyn IBrush> and a colour a
Color. None when the resource is missing or not a T.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.