pub struct Style {
pub cell_pad_w: Option<Scalar>,
pub cell_pad_h: Option<Scalar>,
}Expand description
Unique styling for the Matrix.
Fields§
§cell_pad_w: Option<Scalar>The width of the padding for each matrix element’s “cell”.
cell_pad_h: Option<Scalar>The height of the padding for each matrix element’s “cell”.
Implementations§
Source§impl Style
impl Style
Sourcepub fn cell_pad_w(&self, theme: &Theme) -> Scalar
pub fn cell_pad_w(&self, theme: &Theme) -> Scalar
Retrieves the value, falling back to a default values in the following order:
- If the field is
None, falls back to the style stored within theTheme. - If there are no style defaults for the widget in the theme, or if the
default field is also
None, falls back to the expression specified within the field’s#[conrod(default = "expr")]attribute.
This method was generated by the #[conrod(default = "expr")] attribute
associated with the #[derive(WidgetStyle)] attribute.
Sourcepub fn cell_pad_h(&self, theme: &Theme) -> Scalar
pub fn cell_pad_h(&self, theme: &Theme) -> Scalar
Retrieves the value, falling back to a default values in the following order:
- If the field is
None, falls back to the style stored within theTheme. - If there are no style defaults for the widget in the theme, or if the
default field is also
None, falls back to the expression specified within the field’s#[conrod(default = "expr")]attribute.
This method was generated by the #[conrod(default = "expr")] attribute
associated with the #[derive(WidgetStyle)] attribute.
Trait Implementations§
impl Copy 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 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