#[repr(C)]pub struct VnTextBackground {
pub background: Background,
pub bounds: Bounds<ScaledPixels>,
pub inverse: TransformationMatrix,
pub scale_factor: f32,
pub pad: f32,
}Expand description
One text background and its positioning space. GPU layout matches HLSL.
Fields§
§background: BackgroundGradient/solid and its CSS size, position and repeat settings.
bounds: Bounds<ScaledPixels>Logical CSS background box (not device-scaled).
inverse: TransformationMatrixDevice-space inverse transform.
scale_factor: f32Device pixels per CSS pixel.
pad: f32Explicit tail padding, initialized before GPU upload.
Trait Implementations§
Source§impl Clone for VnTextBackground
impl Clone for VnTextBackground
impl Copy for VnTextBackground
Auto Trait Implementations§
impl Forget for VnTextBackground
impl Freeze for VnTextBackground
impl Move for VnTextBackground
impl RefUnwindSafe for VnTextBackground
impl Send for VnTextBackground
impl Sync for VnTextBackground
impl Unpin for VnTextBackground
impl UnsafeUnpin for VnTextBackground
impl UnwindSafe for VnTextBackground
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> 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