pub enum SharedRenderCase {
Show 13 variants
RoundedRect,
PrimitiveClip,
TranslatedSubtree,
TranslatedPlainText,
TranslatedTextDecorations,
MultilineText,
ClippedText,
StrokedRoundRect,
AnnularSector,
FilledPath,
DrawScopeGroups,
PaintedDrawGroups,
GradientDrawText,
}Expand description
A rendering case that every backend must draw alike.
Variants§
RoundedRect
A filled rounded rectangle.
PrimitiveClip
A rectangle cut by a primitive clip.
TranslatedSubtree
A subtree drawn at fractional translations.
TranslatedPlainText
Plain text drawn at fractional translations.
TranslatedTextDecorations
Text with decorations drawn at fractional translations.
MultilineText
Text wrapped over several lines.
ClippedText
Text cut by a clip.
StrokedRoundRect
A stroked rounded rectangle.
AnnularSector
A ring segment drawn as an arc band.
FilledPath
A filled path.
DrawScopeGroups
Draws a DrawScope transform or clip places: scaled, turned, cut to
a rect and to a path, moved, inset, text scaled, and a grouped
overlay over the overlay before it.
PaintedDrawGroups
Draws in groups of a node whose graphics layer modulates alpha and filters colour, painted as the node’s plain draws are.
GradientDrawText
DrawScope text filled with a gradient brush across its extent.
Implementations§
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Short snake_case name of the case, for test names and reports.
Sourcepub fn fixtures(self) -> Vec<RenderFixture>
pub fn fixtures(self) -> Vec<RenderFixture>
The fixtures to render for this case. A translated case returns two fixtures that differ in their fractional offsets.
Sourcepub fn assert_frames(self, frames: &[RenderedFrame])
pub fn assert_frames(self, frames: &[RenderedFrame])
Checks the frames that were rendered from fixtures, in the same order. Panics when the
frame count is wrong or a frame does not match what the case expects.