#[allow(clippy::wildcard_imports)] // widget/render module pulls in the css property/value types it builds with
CssPropertyWithConditions::simple(CssProperty::const_background_content(FILL_COLOR_BACKGROUND)),
CssPropertyWithConditions::simple(CssProperty::const_background_content(FILL_COLOR_BACKGROUND)),
pub fn set_on_toggle<C: Into<CheckBoxOnToggleCallback>>(&mut self, data: RefAny, on_toggle: C) {
fn find<T>(v: &CssPropertyWithConditionsVec, f: impl Fn(&CssProperty) -> Option<T>) -> Option<T> {
assert_eq!(a.len(), b.len(), "the two content styles declare a different number of properties");
assert_eq!(c, CheckBox::create(false), "what was left behind is not a fresh unchecked checkbox");
c.set_on_toggle(RefAny::new(0xDEAD_BEEF_u32), toggle_do_nothing as CheckBoxOnToggleCallbackType);
assert_eq!(wrapper.inner.checked, checked, "the checked flag was lost on the way into the DOM");