pub struct TextDraw {
pub request: TextRasterRequest,
pub shadows: Vec<ShadowPixels>,
pub animation: Option<TextAnimation>,
}Expand description
What the engine draws for one text: the raster, and the shadows composited under its glyphs.
Fields§
§request: TextRasterRequestThe raster request.
shadows: Vec<ShadowPixels>The shadows, first on top.
animation: Option<TextAnimation>The text’s animators at its time, for a text that has them.
Implementations§
Source§impl TextDraw
impl TextDraw
Sourcepub fn states(
&self,
rasterizer: &TextRasterizer,
) -> Result<Option<(Vec<ClusterState>, u64)>, TextRasterError>
pub fn states( &self, rasterizer: &TextRasterizer, ) -> Result<Option<(Vec<ClusterState>, u64)>, TextRasterError>
Each cluster’s state and the states’ hash
(crate::text_animation::cluster_states), None without animators.
§Errors
Returns the text host’s refusal to lay the text out.
Trait Implementations§
impl StructuralPartialEq for TextDraw
Auto Trait Implementations§
impl Freeze for TextDraw
impl RefUnwindSafe for TextDraw
impl Send for TextDraw
impl Sync for TextDraw
impl Unpin for TextDraw
impl UnsafeUnpin for TextDraw
impl UnwindSafe for TextDraw
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