pub struct BoxStyle {
pub radius: f32,
pub border_width: f32,
pub fill: [f32; 4],
pub border: [f32; 4],
pub shadow_offset: [f32; 2],
pub shadow_blur: f32,
pub shadow_spread: f32,
pub shadow_color: [f32; 4],
}Expand description
The shape of one box, in the units the shader expects.
Fields§
§radius: f32§border_width: f32§fill: [f32; 4]§border: [f32; 4]§shadow_offset: [f32; 2]§shadow_blur: f32§shadow_spread: f32§shadow_color: [f32; 4]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxStyle
impl RefUnwindSafe for BoxStyle
impl Send for BoxStyle
impl Sync for BoxStyle
impl Unpin for BoxStyle
impl UnsafeUnpin for BoxStyle
impl UnwindSafe for BoxStyle
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