pub struct BaselineOffsets {
pub ui: f32,
pub mono: f32,
}Expand description
How far each role’s glyphs are drawn below their place, a share of
the text’s size (font.baseline-offset.ui, font.baseline-offset.mono):
0.1 at 14 points moves them 1.4 points down, a negative share moves
them up. The text’s row keeps its height; only the glyphs move, as
egui’s FontTweak::y_offset_factor does. 0 for both by default.
Fields§
§ui: f32§mono: f32Implementations§
Trait Implementations§
Source§impl Clone for BaselineOffsets
impl Clone for BaselineOffsets
Source§fn clone(&self) -> BaselineOffsets
fn clone(&self) -> BaselineOffsets
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 BaselineOffsets
impl Debug for BaselineOffsets
Source§impl Default for BaselineOffsets
impl Default for BaselineOffsets
Source§fn default() -> BaselineOffsets
fn default() -> BaselineOffsets
Returns the “default value” for a type. Read more
Source§impl PartialEq for BaselineOffsets
impl PartialEq for BaselineOffsets
impl Copy for BaselineOffsets
impl StructuralPartialEq for BaselineOffsets
Auto Trait Implementations§
impl Freeze for BaselineOffsets
impl RefUnwindSafe for BaselineOffsets
impl Send for BaselineOffsets
impl Sync for BaselineOffsets
impl Unpin for BaselineOffsets
impl UnsafeUnpin for BaselineOffsets
impl UnwindSafe for BaselineOffsets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more