pub struct TextProbe {
pub node: String,
pub text: String,
pub bounds: [f32; 4],
pub ink: usize,
pub clipped: usize,
pub contrast: f32,
pub size_px: f32,
pub pixels: Vec<u32>,
pub skim: bool,
}Expand description
What one text looked like in one rendered frame.
Fields§
§node: String§text: String§bounds: [f32; 4]Glyph bounds in frame px (may extend past the frame).
ink: usizeSampled glyph pixels, and how many of them fall outside the frame.
clipped: usize§contrast: f32WCAG contrast ratio of the final frame under the glyphs against around them: 1 = invisible, 3 = readable large text, 21 = max.
size_px: f32Type size in frame px (size param times absorbed scale).
pixels: Vec<u32>Frame indices of sampled glyph pixels, sorted (overlap tests).
skim: boolGlanced at rather than read (skim on the text: code, data
labels): no reading-time check.
Trait Implementations§
Auto Trait Implementations§
impl Forget for TextProbe
impl Freeze for TextProbe
impl Move for TextProbe
impl RefUnwindSafe for TextProbe
impl Send for TextProbe
impl Sync for TextProbe
impl Unpin for TextProbe
impl UnsafeUnpin for TextProbe
impl UnwindSafe for TextProbe
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