pub struct TextMagnifierRecipe {
pub radius: f32,
pub half_height: f32,
pub scale: f32,
pub rise: f32,
pub corner_radius: f32,
pub background: RecipeColor,
pub border: RecipeColor,
pub border_width: f32,
}Expand description
Painted geometry and colours of the magnifier lens.
The lens interior is not painted by the style: it is a replay of the host’s
own text layer under a transform and a clip (see
crate::text_touch::magnifier). The style owns only the frame around it.
Fields§
§radius: f32Half the lens’s width, in dp — the lens is 2 × radius wide.
half_height: f32Half the lens’s height, in dp.
scale: f32Magnification applied to the replayed content.
rise: f32How far above the contact point the lens’s bottom edge sits, in dp.
corner_radius: f32Corner radius of the painted frame, in dp.
The clip is rectangular — see crate::text_touch::magnifier for
why, and for what shows in the corners because of it.
background: RecipeColorFill painted behind the replayed content, so glyphs from the layer beneath do not show through.
border: RecipeColorFrame drawn around the lens.
border_width: f32Width of that frame, in dp.