pub struct CellStyle {
pub background_color: Option<Color>,
pub text_color: Option<Color>,
pub font: FontRef,
pub font_size: f64,
pub padding: f64,
pub overflow: CellOverflow,
pub word_break: WordBreak,
pub text_align: TextAlign,
}Expand description
Style options for a table cell.
Fields§
§background_color: Option<Color>Optional cell background color (overrides row background).
text_color: Option<Color>Optional text color. Defaults to PDF’s current fill color (black).
font: FontRefFont reference.
font_size: f64Font size in points.
padding: f64Padding applied to all four sides, in points.
overflow: CellOverflowHow to handle text that exceeds the available cell height.
word_break: WordBreakHow to handle words wider than the cell’s available width.
text_align: TextAlignHorizontal text alignment within the cell.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CellStyle
impl RefUnwindSafe for CellStyle
impl Send for CellStyle
impl Sync for CellStyle
impl Unpin for CellStyle
impl UnsafeUnpin for CellStyle
impl UnwindSafe for CellStyle
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