pub enum SharedRenderCase {
RoundedRect,
PrimitiveClip,
TranslatedSubtree,
TranslatedPlainText,
TranslatedTextDecorations,
MultilineText,
ClippedText,
StrokedRoundRect,
AnnularSector,
FilledPath,
}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.
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.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more