pub struct TextFieldMetrics {
pub font_px: f32,
pub font_family: Option<&'static str>,
pub font_weight: u16,
pub font_style: u8,
pub letter_spacing_px: f32,
pub font_variation_settings: Option<String>,
pub line_height_px: f32,
}Fields§
§font_px: f32§font_family: Option<&'static str>§font_weight: u16§font_style: u8§letter_spacing_px: f32§font_variation_settings: Option<String>§line_height_px: f32Implementations§
Source§impl TextFieldMetrics
impl TextFieldMetrics
pub fn measure_config(&self) -> TextMeasureConfig
Trait Implementations§
Source§impl Clone for TextFieldMetrics
impl Clone for TextFieldMetrics
Source§impl Debug for TextFieldMetrics
impl Debug for TextFieldMetrics
Auto Trait Implementations§
impl Freeze for TextFieldMetrics
impl RefUnwindSafe for TextFieldMetrics
impl Send for TextFieldMetrics
impl Sync for TextFieldMetrics
impl Unpin for TextFieldMetrics
impl UnsafeUnpin for TextFieldMetrics
impl UnwindSafe for TextFieldMetrics
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