pub struct EguiPretextPaintOptions<'a> {
pub style: &'a PretextStyle,
pub line_height: f32,
pub color: Color32,
pub fallback_font: FontId,
pub fallback_align: Align2,
pub emoji_size: f32,
pub emoji_slot_height: f32,
}Fields§
§style: &'a PretextStyle§line_height: f32§color: Color32§fallback_font: FontId§fallback_align: Align2§emoji_size: f32§emoji_slot_height: f32Implementations§
Source§impl<'a> EguiPretextPaintOptions<'a>
impl<'a> EguiPretextPaintOptions<'a>
pub fn new(style: &'a PretextStyle, line_height: f32) -> Self
pub fn color(self, color: Color32) -> Self
pub fn fallback_font(self, fallback_font: FontId) -> Self
pub fn fallback_align(self, fallback_align: Align2) -> Self
pub fn emoji_size(self, emoji_size: f32) -> Self
pub fn emoji_slot_height(self, emoji_slot_height: f32) -> Self
Trait Implementations§
Source§impl<'a> Clone for EguiPretextPaintOptions<'a>
impl<'a> Clone for EguiPretextPaintOptions<'a>
Source§fn clone(&self) -> EguiPretextPaintOptions<'a>
fn clone(&self) -> EguiPretextPaintOptions<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for EguiPretextPaintOptions<'a>
impl<'a> RefUnwindSafe for EguiPretextPaintOptions<'a>
impl<'a> Send for EguiPretextPaintOptions<'a>
impl<'a> Sync for EguiPretextPaintOptions<'a>
impl<'a> Unpin for EguiPretextPaintOptions<'a>
impl<'a> UnsafeUnpin for EguiPretextPaintOptions<'a>
impl<'a> UnwindSafe for EguiPretextPaintOptions<'a>
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