pub struct RectStyle {Show 29 fields
pub background: Option<CssPropertyValue<StyleBackgroundContent>>,
pub background_position: Option<CssPropertyValue<StyleBackgroundPosition>>,
pub background_size: Option<CssPropertyValue<StyleBackgroundSize>>,
pub background_repeat: Option<CssPropertyValue<StyleBackgroundRepeat>>,
pub font_size: Option<CssPropertyValue<StyleFontSize>>,
pub font_family: Option<CssPropertyValue<StyleFontFamily>>,
pub text_color: Option<CssPropertyValue<StyleTextColor>>,
pub text_align: Option<CssPropertyValue<StyleTextAlignmentHorz>>,
pub line_height: Option<CssPropertyValue<StyleLineHeight>>,
pub letter_spacing: Option<CssPropertyValue<StyleLetterSpacing>>,
pub word_spacing: Option<CssPropertyValue<StyleWordSpacing>>,
pub tab_width: Option<CssPropertyValue<StyleTabWidth>>,
pub cursor: Option<CssPropertyValue<StyleCursor>>,
pub box_shadow_left: Option<CssPropertyValue<BoxShadowPreDisplayItem>>,
pub box_shadow_right: Option<CssPropertyValue<BoxShadowPreDisplayItem>>,
pub box_shadow_top: Option<CssPropertyValue<BoxShadowPreDisplayItem>>,
pub box_shadow_bottom: Option<CssPropertyValue<BoxShadowPreDisplayItem>>,
pub border_top_color: Option<CssPropertyValue<StyleBorderTopColor>>,
pub border_left_color: Option<CssPropertyValue<StyleBorderLeftColor>>,
pub border_right_color: Option<CssPropertyValue<StyleBorderRightColor>>,
pub border_bottom_color: Option<CssPropertyValue<StyleBorderBottomColor>>,
pub border_top_style: Option<CssPropertyValue<StyleBorderTopStyle>>,
pub border_left_style: Option<CssPropertyValue<StyleBorderLeftStyle>>,
pub border_right_style: Option<CssPropertyValue<StyleBorderRightStyle>>,
pub border_bottom_style: Option<CssPropertyValue<StyleBorderBottomStyle>>,
pub border_top_left_radius: Option<CssPropertyValue<StyleBorderTopLeftRadius>>,
pub border_top_right_radius: Option<CssPropertyValue<StyleBorderTopRightRadius>>,
pub border_bottom_left_radius: Option<CssPropertyValue<StyleBorderBottomLeftRadius>>,
pub border_bottom_right_radius: Option<CssPropertyValue<StyleBorderBottomRightRadius>>,
}
Expand description
Stylistic options of the rectangle that don’t influence the layout
Fields§
§background: Option<CssPropertyValue<StyleBackgroundContent>>
§background_position: Option<CssPropertyValue<StyleBackgroundPosition>>
§background_size: Option<CssPropertyValue<StyleBackgroundSize>>
§background_repeat: Option<CssPropertyValue<StyleBackgroundRepeat>>
§font_size: Option<CssPropertyValue<StyleFontSize>>
§font_family: Option<CssPropertyValue<StyleFontFamily>>
§text_color: Option<CssPropertyValue<StyleTextColor>>
§text_align: Option<CssPropertyValue<StyleTextAlignmentHorz>>
§line_height: Option<CssPropertyValue<StyleLineHeight>>
§letter_spacing: Option<CssPropertyValue<StyleLetterSpacing>>
§word_spacing: Option<CssPropertyValue<StyleWordSpacing>>
§tab_width: Option<CssPropertyValue<StyleTabWidth>>
§cursor: Option<CssPropertyValue<StyleCursor>>
§box_shadow_left: Option<CssPropertyValue<BoxShadowPreDisplayItem>>
§box_shadow_right: Option<CssPropertyValue<BoxShadowPreDisplayItem>>
§box_shadow_top: Option<CssPropertyValue<BoxShadowPreDisplayItem>>
§box_shadow_bottom: Option<CssPropertyValue<BoxShadowPreDisplayItem>>
§border_top_color: Option<CssPropertyValue<StyleBorderTopColor>>
§border_left_color: Option<CssPropertyValue<StyleBorderLeftColor>>
§border_right_color: Option<CssPropertyValue<StyleBorderRightColor>>
§border_bottom_color: Option<CssPropertyValue<StyleBorderBottomColor>>
§border_top_style: Option<CssPropertyValue<StyleBorderTopStyle>>
§border_left_style: Option<CssPropertyValue<StyleBorderLeftStyle>>
§border_right_style: Option<CssPropertyValue<StyleBorderRightStyle>>
§border_bottom_style: Option<CssPropertyValue<StyleBorderBottomStyle>>
§border_top_left_radius: Option<CssPropertyValue<StyleBorderTopLeftRadius>>
§border_top_right_radius: Option<CssPropertyValue<StyleBorderTopRightRadius>>
§border_bottom_left_radius: Option<CssPropertyValue<StyleBorderBottomLeftRadius>>
§border_bottom_right_radius: Option<CssPropertyValue<StyleBorderBottomRightRadius>>
Implementations§
Source§impl RectStyle
impl RectStyle
pub fn get_horizontal_scrollbar_style(&self) -> ScrollbarInfo
pub fn get_vertical_scrollbar_style(&self) -> ScrollbarInfo
pub fn has_box_shadow(&self) -> bool
pub fn has_border(&self) -> bool
Trait Implementations§
Source§impl Ord for RectStyle
impl Ord for RectStyle
Source§impl PartialOrd for RectStyle
impl PartialOrd for RectStyle
impl Eq for RectStyle
impl StructuralPartialEq for RectStyle
Auto Trait Implementations§
impl Freeze for RectStyle
impl RefUnwindSafe for RectStyle
impl Send for RectStyle
impl Sync for RectStyle
impl Unpin for RectStyle
impl UnwindSafe for RectStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)