pub struct TextHeightBehavior {
pub apply_height_to_first_ascent: bool,
pub apply_height_to_last_descent: bool,
pub leading_distribution: TextLeadingDistribution,
}Expand description
Defines how to apply TextStyle.height over and under text.
Fields§
§apply_height_to_first_ascent: boolWhether to apply the TextStyle.height modifier to the ascent of the first
line in the paragraph.
apply_height_to_last_descent: boolWhether to apply the TextStyle.height modifier to the descent of the last
line in the paragraph.
leading_distribution: TextLeadingDistributionHow the leading is distributed over and under the text.
Trait Implementations§
Source§impl Clone for TextHeightBehavior
impl Clone for TextHeightBehavior
impl Copy for TextHeightBehavior
Source§impl Debug for TextHeightBehavior
impl Debug for TextHeightBehavior
Source§impl Default for TextHeightBehavior
impl Default for TextHeightBehavior
Source§fn default() -> TextHeightBehavior
fn default() -> TextHeightBehavior
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextHeightBehavior
impl PartialEq for TextHeightBehavior
impl StructuralPartialEq for TextHeightBehavior
Auto Trait Implementations§
impl Freeze for TextHeightBehavior
impl RefUnwindSafe for TextHeightBehavior
impl Send for TextHeightBehavior
impl Sync for TextHeightBehavior
impl Unpin for TextHeightBehavior
impl UnsafeUnpin for TextHeightBehavior
impl UnwindSafe for TextHeightBehavior
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