pub struct TextConstraints {
pub max_width: Option<Px>,
pub wrap: TextWrap,
pub overflow: TextOverflow,
pub align: TextAlign,
pub scale_factor: f32,
}Fields§
§max_width: Option<Px>§wrap: TextWrap§overflow: TextOverflow§align: TextAlign§scale_factor: f32Window/device scale factor used for rasterization and caching.
UI/layout coordinates remain in logical pixels. Implementations should rasterize at
style.size * scale_factor (and any other scale-dependent parameters), then return metrics
back in logical units.
Trait Implementations§
Source§impl Clone for TextConstraints
impl Clone for TextConstraints
Source§fn clone(&self) -> TextConstraints
fn clone(&self) -> TextConstraints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextConstraints
impl Debug for TextConstraints
Source§impl Default for TextConstraints
impl Default for TextConstraints
Source§impl PartialEq for TextConstraints
impl PartialEq for TextConstraints
impl Copy for TextConstraints
impl StructuralPartialEq for TextConstraints
Auto Trait Implementations§
impl Freeze for TextConstraints
impl RefUnwindSafe for TextConstraints
impl Send for TextConstraints
impl Sync for TextConstraints
impl Unpin for TextConstraints
impl UnsafeUnpin for TextConstraints
impl UnwindSafe for TextConstraints
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