pub struct TextLayoutRequest {
pub content: String,
pub font_family: String,
pub font_size: f32,
pub font_weight: u16,
pub font_style: TextFontStyle,
pub max_width: Option<f32>,
pub line_height: Option<f32>,
pub align: TextAlign,
pub origin: [f32; 2],
pub color: [f32; 4],
pub disable_hinting: bool,
}Fields§
§content: String§font_family: String§font_size: f32§font_weight: u16§font_style: TextFontStyle§max_width: Option<f32>§line_height: Option<f32>§align: TextAlign§origin: [f32; 2]§color: [f32; 4]§disable_hinting: boolImplementations§
Trait Implementations§
Source§impl Clone for TextLayoutRequest
impl Clone for TextLayoutRequest
Auto Trait Implementations§
impl Freeze for TextLayoutRequest
impl RefUnwindSafe for TextLayoutRequest
impl Send for TextLayoutRequest
impl Sync for TextLayoutRequest
impl Unpin for TextLayoutRequest
impl UnsafeUnpin for TextLayoutRequest
impl UnwindSafe for TextLayoutRequest
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