pub enum StyleEffect {
Show 15 variants
Background {
color: ColorRef,
},
Foreground {
color: ColorRef,
},
Border {
color: ColorRef,
width: f64,
},
Corner {
radius: f64,
},
Padding {
length: f64,
},
Size {
size: ControlSize,
},
Fill {
color: ColorRef,
},
Indicator {
color: ColorRef,
edge: Edge,
width: f64,
},
Scale {
x: f64,
y: f64,
motion: String,
},
Offset {
x: f64,
y: f64,
motion: String,
},
Opacity {
value: f64,
motion: String,
},
Shadow {
radius: f64,
y: f64,
opacity: f64,
},
System,
Nothing,
Metric {
metric: Metric,
value: Option<f64>,
},
}Variants§
Background
Foreground
Border
Corner
Padding
Size
Fields
§
size: ControlSizeFill
A selected item filled with color; its text and icons use the
color’s foreground pair.
Indicator
A selected item marked by a bar on one edge.
Scale
Offset
Opacity
Shadow
A shadow below the control, as if lifted off the page: radius of
blur, y down, black at opacity.
System
The platform’s own look for this state.
Nothing
No feedback in this state.
Metric
A length the element writes, replaced for the platforms the rule
applies to; None drops a written width or height, so the element
takes its content’s.
Implementations§
Trait Implementations§
Source§impl Clone for StyleEffect
impl Clone for StyleEffect
Source§impl Debug for StyleEffect
impl Debug for StyleEffect
Source§impl<'de> Deserialize<'de> for StyleEffect
impl<'de> Deserialize<'de> for StyleEffect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StyleEffect
impl PartialEq for StyleEffect
Source§impl Serialize for StyleEffect
impl Serialize for StyleEffect
impl StructuralPartialEq for StyleEffect
Auto Trait Implementations§
impl Freeze for StyleEffect
impl RefUnwindSafe for StyleEffect
impl Send for StyleEffect
impl Sync for StyleEffect
impl Unpin for StyleEffect
impl UnsafeUnpin for StyleEffect
impl UnwindSafe for StyleEffect
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