pub struct TextData {
pub text: String,
pub font_family: String,
pub font_size: f32,
pub color: [u8; 4],
pub x: f32,
pub y: f32,
pub effects: SmallVec<[TextEffect; 4]>,
pub spacing: f32,
}Expand description
Text layer data
Fields§
§text: StringText content
font_family: StringFont family
font_size: f32Font size in pixels
color: [u8; 4]Text color (RGBA)
x: f32X position
y: f32Y position
effects: SmallVec<[TextEffect; 4]>Text effects
spacing: f32Letter spacing in pixels
Auto Trait Implementations§
impl Freeze for TextData
impl RefUnwindSafe for TextData
impl Send for TextData
impl Sync for TextData
impl Unpin for TextData
impl UnsafeUnpin for TextData
impl UnwindSafe for TextData
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> 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