pub struct TextBlock {
pub clip: Rect,
pub lines: Vec<PlacedLine>,
pub size: f32,
pub line_height: f32,
pub bold: bool,
pub color: Color,
pub align: TextAlign,
pub value: Option<Value>,
pub format: Option<String>,
}Expand description
Text already broken into lines and positioned.
Fields§
§clip: RectThe control’s box; text outside it is clipped.
lines: Vec<PlacedLine>The lines.
size: f32Font size in points.
line_height: f32Line height in points.
bold: boolBold weight.
color: ColorText color.
align: TextAlignHow the text is aligned in its box.
value: Option<Value>The value behind the text, when it is one number, date or truth value, so data exports can write the value and not its formatted text.
format: Option<String>The format specifier that turned value into the text (C2, dd/MM/yyyy).
Trait Implementations§
impl StructuralPartialEq for TextBlock
Auto Trait Implementations§
impl Freeze for TextBlock
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnsafeUnpin for TextBlock
impl UnwindSafe for TextBlock
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