Skip to main content

background_content

Function background_content 

Source
pub fn background_content(
    view: &ViewHandle,
    content: &ViewHandle,
    alignment: Alignment,
) -> ViewHandle
Expand description

Apply .background(alignment:content:).

The same call as .overlay(alignment:content:) with a different symbol: an Alignment in x0/x1, the content closure and its context in x2/x3, four generic words after that. The colour-taking background next door is a different overload entirely — that one is generic over ShapeStyle, this one over View.