pub struct TextBlockPaint {
pub color: Option<Color>,
pub weight: FontWeight,
pub padding: Padding,
pub text_token: Option<ThemeTextToken>,
pub wrap: TextWrap,
pub alignment: TextAlign,
}Fields§
§color: Option<Color>§weight: FontWeight§padding: Padding§text_token: Option<ThemeTextToken>§wrap: TextWrap§alignment: TextAlignImplementations§
Source§impl TextBlockPaint
impl TextBlockPaint
pub const fn new() -> Self
pub const fn color(self, color: Color) -> Self
pub const fn weight(self, weight: FontWeight) -> Self
pub const fn padding(self, padding: Insets) -> Self
pub const fn text_token(self, token: ThemeTextToken) -> Self
pub const fn wrap(self, wrap: TextWrap) -> Self
pub const fn alignment(self, alignment: TextAlign) -> Self
Trait Implementations§
Source§impl Clone for TextBlockPaint
impl Clone for TextBlockPaint
impl Copy for TextBlockPaint
Source§impl Debug for TextBlockPaint
impl Debug for TextBlockPaint
Source§impl Default for TextBlockPaint
impl Default for TextBlockPaint
Source§impl PartialEq for TextBlockPaint
impl PartialEq for TextBlockPaint
impl StructuralPartialEq for TextBlockPaint
Auto Trait Implementations§
impl Forget for TextBlockPaint
impl Freeze for TextBlockPaint
impl Move for TextBlockPaint
impl RefUnwindSafe for TextBlockPaint
impl Send for TextBlockPaint
impl Sync for TextBlockPaint
impl Unpin for TextBlockPaint
impl UnsafeUnpin for TextBlockPaint
impl UnwindSafe for TextBlockPaint
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