pub struct StyleRule {
pub selectors: Vec<Selector>,
pub properties: Vec<Property>,
}Fields§
§selectors: Vec<Selector>§properties: Vec<Property>Implementations§
Source§impl StyleRule
impl StyleRule
pub fn new() -> StyleRule
pub fn selector(self, selector: Selector) -> StyleRule
pub fn parent_selector(self, selector: Selector) -> StyleRule
pub fn property(self, property: Property) -> StyleRule
pub fn specificity(&self) -> Specificity
pub fn set_display(self, value: Display) -> StyleRule
pub fn set_visibility(self, value: Visibility) -> StyleRule
pub fn set_overflow(self, value: Overflow) -> StyleRule
pub fn set_background_color(self, value: Color) -> StyleRule
pub fn set_background_gradient(self, value: LinearGradient) -> StyleRule
pub fn set_outer_shadow_h_offset(self, value: Units) -> StyleRule
pub fn set_outer_shadow_v_offset(self, value: Units) -> StyleRule
pub fn set_outer_shadow_color(self, value: Color) -> StyleRule
pub fn set_outer_shadow_blur(self, value: Units) -> StyleRule
pub fn set_inner_shadow_h_offset(self, value: Units) -> StyleRule
pub fn set_inner_shadow_v_offset(self, value: Units) -> StyleRule
pub fn set_inner_shadow_color(self, value: Color) -> StyleRule
pub fn set_inner_shadow_blur(self, value: Units) -> StyleRule
pub fn set_space(self, value: Units) -> StyleRule
pub fn set_left(self, value: Units) -> StyleRule
pub fn set_right(self, value: Units) -> StyleRule
pub fn set_top(self, value: Units) -> StyleRule
pub fn set_bottom(self, value: Units) -> StyleRule
pub fn set_width(self, value: Units) -> StyleRule
pub fn set_height(self, value: Units) -> StyleRule
pub fn set_min_width(self, value: Units) -> StyleRule
pub fn set_max_width(self, value: Units) -> StyleRule
pub fn set_min_height(self, value: Units) -> StyleRule
pub fn set_max_height(self, value: Units) -> StyleRule
pub fn set_child_space(self, value: Units) -> StyleRule
pub fn set_child_left(self, value: Units) -> StyleRule
pub fn set_child_right(self, value: Units) -> StyleRule
pub fn set_child_top(self, value: Units) -> StyleRule
pub fn set_child_bottom(self, value: Units) -> StyleRule
pub fn set_border_color(self, value: Color) -> StyleRule
pub fn set_border_width(self, value: Units) -> StyleRule
pub fn set_border_radius(self, value: Units) -> StyleRule
pub fn set_border_radius_top_left(self, value: Units) -> StyleRule
pub fn set_border_radius_top_right(self, value: Units) -> StyleRule
pub fn set_border_radius_bottom_left(self, value: Units) -> StyleRule
pub fn set_border_radius_bottom_right(self, value: Units) -> StyleRule
pub fn set_color(self, value: Color) -> StyleRule
pub fn set_font_size(self, value: f32) -> StyleRule
Trait Implementations§
impl StructuralPartialEq for StyleRule
Auto Trait Implementations§
impl Freeze for StyleRule
impl RefUnwindSafe for StyleRule
impl Send for StyleRule
impl Sync for StyleRule
impl Unpin for StyleRule
impl UnwindSafe for StyleRule
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