pub struct Background { /* private fields */ }

Implementations

Calls Self::draw without having to pass in a [Rect] immediately. We will overwrite the coordinates in the shader directly in Background::end_draw. This is useful for if you need to draw a quad in the background, since in that case you have to draw the quad first before drawing the content (otherwise it would sit on top of the content!), but you might not know the dimensions yet. In Background::end_draw we get the dimensions of the content from Cx::end_row and set this directly using Area::get_first_mut.

Get the Area.

Manually set the Area.

Draw the background.

Draw the background, but make it sticky with respect to scrolling. Not typically recommended.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.