pub struct TextContent {
pub text: String,
pub font: Option<Font>,
pub color: Option<Color>,
pub align: Align,
}Expand description
Fields§
§text: StringThe text to draw.
font: Option<Font>Optional font override (else the theme’s row font).
color: Option<Color>Optional color override (else the row’s resolved base color).
align: AlignAlignment within the box this content is given.
Implementations§
Source§impl TextContent
impl TextContent
Trait Implementations§
Source§impl Clone for TextContent
impl Clone for TextContent
Source§fn clone(&self) -> TextContent
fn clone(&self) -> TextContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for TextContent
impl RefUnwindSafe for TextContent
impl Send for TextContent
impl Sync for TextContent
impl Unpin for TextContent
impl UnsafeUnpin for TextContent
impl UnwindSafe for TextContent
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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