pub struct VnTextPaint {
pub fill: VnTextFill,
pub bounds: [f32; 4],
pub inverse: [f32; 6],
pub scale_factor: f32,
pub geometry: Arc<VnClipGeometry>,
pub content_mask: ContentMask<ScaledPixels>,
}Expand description
A text background resolved against its element, in logical CSS pixels. Carried in TextStyle so deferred drawing and paint-cache keys retain it.
Fields§
§fill: VnTextFillThe authored stack.
bounds: [f32; 4]The background positioning box.
inverse: [f32; 6]Inverse device-space element transform, row major followed by translation.
scale_factor: f32Device pixels per logical CSS pixel.
geometry: Arc<VnClipGeometry>The owner scope’s geometry, shared by every descendant glyph.
content_mask: ContentMask<ScaledPixels>The owner scope’s outer mask. Glyphs retain their local child masks.
Trait Implementations§
Source§impl Clone for VnTextPaint
impl Clone for VnTextPaint
Source§impl Debug for VnTextPaint
impl Debug for VnTextPaint
Source§impl<'de> Deserialize<'de> for VnTextPaint
impl<'de> Deserialize<'de> for VnTextPaint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VnTextPaint
impl PartialEq for VnTextPaint
Source§impl Serialize for VnTextPaint
impl Serialize for VnTextPaint
impl StructuralPartialEq for VnTextPaint
Auto Trait Implementations§
impl Forget for VnTextPaint
impl Freeze for VnTextPaint
impl Move for VnTextPaint
impl RefUnwindSafe for VnTextPaint
impl Send for VnTextPaint
impl Sync for VnTextPaint
impl Unpin for VnTextPaint
impl UnsafeUnpin for VnTextPaint
impl UnwindSafe for VnTextPaint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more