pub struct TextLayoutOptions {
pub line_height: f32,
}Available on crate feature
text only.Expand description
Options for text layout.
Fields§
§line_height: f32The line height multiplier where 1.0 corresponds to the maximum height of the font. Default is 1.2.
Trait Implementations§
Source§impl Clone for TextLayoutOptions
impl Clone for TextLayoutOptions
Source§fn clone(&self) -> TextLayoutOptions
fn clone(&self) -> TextLayoutOptions
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 TextLayoutOptions
impl Debug for TextLayoutOptions
Source§impl Default for TextLayoutOptions
impl Default for TextLayoutOptions
impl Copy for TextLayoutOptions
Auto Trait Implementations§
impl Freeze for TextLayoutOptions
impl RefUnwindSafe for TextLayoutOptions
impl Send for TextLayoutOptions
impl Sync for TextLayoutOptions
impl Unpin for TextLayoutOptions
impl UnwindSafe for TextLayoutOptions
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