pub struct CodeTextPaint {
pub color: Option<Color>,
pub font_size: f32,
pub line_height: f32,
pub x_padding: f32,
pub weight: FontWeight,
}Fields§
§color: Option<Color>§font_size: f32Font size override. Non-positive values resolve to the active theme’s
xs text token when painted.
line_height: f32Line-height override. Non-positive values resolve to the active theme’s
xs text token when painted.
x_padding: f32§weight: FontWeightImplementations§
Source§impl CodeTextPaint
impl CodeTextPaint
pub const fn new() -> Self
pub const fn color(self, color: Color) -> Self
pub const fn font_size(self, font_size: f32) -> Self
pub const fn line_height(self, line_height: f32) -> Self
pub const fn x_padding(self, x_padding: f32) -> Self
pub const fn weight(self, weight: FontWeight) -> Self
Trait Implementations§
Source§impl Clone for CodeTextPaint
impl Clone for CodeTextPaint
impl Copy for CodeTextPaint
Source§impl Debug for CodeTextPaint
impl Debug for CodeTextPaint
Source§impl Default for CodeTextPaint
impl Default for CodeTextPaint
Source§impl PartialEq for CodeTextPaint
impl PartialEq for CodeTextPaint
impl StructuralPartialEq for CodeTextPaint
Auto Trait Implementations§
impl Forget for CodeTextPaint
impl Freeze for CodeTextPaint
impl Move for CodeTextPaint
impl RefUnwindSafe for CodeTextPaint
impl Send for CodeTextPaint
impl Sync for CodeTextPaint
impl Unpin for CodeTextPaint
impl UnsafeUnpin for CodeTextPaint
impl UnwindSafe for CodeTextPaint
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