pub struct TableContentStyle {
pub border_width: f32,
pub border_color: (f32, f32, f32),
pub cell_padding: f32,
pub horizontal_borders: bool,
pub vertical_borders: bool,
pub outer_border: bool,
pub header_background: Option<(f32, f32, f32)>,
pub stripe_background: Option<(f32, f32, f32)>,
}Expand description
Style information for a table.
Fields§
§border_width: f32Border width (0.0 for no border)
border_color: (f32, f32, f32)Border color (R, G, B, each 0.0-1.0)
cell_padding: f32Cell padding
horizontal_borders: boolWhether to show horizontal borders
vertical_borders: boolWhether to show vertical borders
outer_border: boolWhether to show outer border
header_background: Option<(f32, f32, f32)>Header background color
stripe_background: Option<(f32, f32, f32)>Alternating row background color (for striped tables)
Implementations§
Trait Implementations§
Source§impl Clone for TableContentStyle
impl Clone for TableContentStyle
Source§fn clone(&self) -> TableContentStyle
fn clone(&self) -> TableContentStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableContentStyle
impl Debug for TableContentStyle
Auto Trait Implementations§
impl Freeze for TableContentStyle
impl RefUnwindSafe for TableContentStyle
impl Send for TableContentStyle
impl Sync for TableContentStyle
impl Unpin for TableContentStyle
impl UnwindSafe for TableContentStyle
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