pub trait BoxStyleSurface {
Show 21 methods
// Provided methods
fn interactive(&self, interactive: bool) -> &Self { ... }
fn padding(&self, left: f32, top: f32, right: f32, bottom: f32) -> &Self { ... }
fn clear_padding(&self) -> &Self { ... }
fn corner_radius(&self, radius: f32) -> &Self { ... }
fn clear_corners(&self) -> &Self { ... }
fn corners(&self, tl: f32, tr: f32, br: f32, bl: f32) -> &Self { ... }
fn border(&self, width: f32, color: u32) -> &Self { ... }
fn border_config(&self, border: Border) -> &Self { ... }
fn clear_border(&self) -> &Self { ... }
fn bg_color(&self, color: u32) -> &Self { ... }
fn clear_bg_color(&self) -> &Self { ... }
fn opacity(&self, value: f32) -> &Self { ... }
fn clear_opacity(&self) -> &Self { ... }
fn blur(&self, sigma: f32) -> &Self { ... }
fn drop_shadow(
&self,
color: u32,
offset_x: f32,
offset_y: f32,
blur_sigma: f32,
spread: f32,
) -> &Self { ... }
fn clear_drop_shadow(&self) -> &Self { ... }
fn background_blur(&self, sigma: f32) -> &Self { ... }
fn linear_gradient(
&self,
start_x: f32,
start_y: f32,
end_x: f32,
end_y: f32,
offsets: Vec<f32>,
colors: Vec<u32>,
) -> &Self { ... }
fn linear_gradient_stops(
&self,
start_x: f32,
start_y: f32,
end_x: f32,
end_y: f32,
stops: Vec<GradientStop>,
) -> &Self { ... }
fn transitions(&self, transitions: Option<NodeTransitions>) -> &Self { ... }
fn clip_to_bounds(&self, clip: bool) -> &Self { ... }
}Provided Methods§
fn interactive(&self, interactive: bool) -> &Self
fn padding(&self, left: f32, top: f32, right: f32, bottom: f32) -> &Self
fn clear_padding(&self) -> &Self
fn corner_radius(&self, radius: f32) -> &Self
fn clear_corners(&self) -> &Self
fn corners(&self, tl: f32, tr: f32, br: f32, bl: f32) -> &Self
fn border(&self, width: f32, color: u32) -> &Self
fn border_config(&self, border: Border) -> &Self
fn clear_border(&self) -> &Self
fn bg_color(&self, color: u32) -> &Self
fn clear_bg_color(&self) -> &Self
fn opacity(&self, value: f32) -> &Self
fn clear_opacity(&self) -> &Self
fn blur(&self, sigma: f32) -> &Self
fn drop_shadow( &self, color: u32, offset_x: f32, offset_y: f32, blur_sigma: f32, spread: f32, ) -> &Self
fn clear_drop_shadow(&self) -> &Self
fn background_blur(&self, sigma: f32) -> &Self
fn linear_gradient( &self, start_x: f32, start_y: f32, end_x: f32, end_y: f32, offsets: Vec<f32>, colors: Vec<u32>, ) -> &Self
fn linear_gradient_stops( &self, start_x: f32, start_y: f32, end_x: f32, end_y: f32, stops: Vec<GradientStop>, ) -> &Self
fn transitions(&self, transitions: Option<NodeTransitions>) -> &Self
fn clip_to_bounds(&self, clip: bool) -> &Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".