INNER CODE UNIT · Rust
default
marc2332/freya · crates/freya-borderless-plugin/src/lib.rs:65
fn default() -> Self {
Self {
thickness: 6.,
corner_radius: 0.,
}
}
}
impl BorderlessPlugin {
pub fn new() -> Self {
Self::default()
}
/// How far into the window each resize band reaches.
pub fn with_thickness(mut self, thickness: f32) -> Self {
self.thickness = thickness;
self
}