Struct zaplib_components::Background
source · [−]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
.
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