pub struct Style {}Expand description
组件样式
Fields§
§fg: Option<Color>§bg: Option<Color>§bold: bool§italic: bool§underline: bool§width: Length§height: Length§padding: Insets§margin: Insets§layout: Layout§gap: u16§flex_grow: u16§flex_shrink: bool§border: BorderImplementations§
Source§impl Style
impl Style
Sourcepub fn padding_each(self, top: u16, right: u16, bottom: u16, left: u16) -> Self
pub fn padding_each(self, top: u16, right: u16, bottom: u16, left: u16) -> Self
Builder: sets padding on each side independently.
Sourcepub fn flex_shrink(self, shrink: bool) -> Self
pub fn flex_shrink(self, shrink: bool) -> Self
Builder: sets whether the item can shrink below intrinsic size.
Sourcepub fn into_cell_style(&self) -> CellStyle
pub fn into_cell_style(&self) -> CellStyle
转换为 CellStyle
Trait Implementations§
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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