[][src]Function rubrail::util::set_bg_color

pub unsafe fn set_bg_color(item: &ItemId, r: f64, g: f64, b: f64, alpha: f64)

Sets the backgroundColor attribute on an item's view.

This is an unsafe helper function to set the backgroundColor attribute on the view of an item. It does not verify that the item actually has a view, nor that the view supports backgroundColor, hence unsafe.

Known compatible items: labels

Arguments