INNER CODE UNIT · Rust
new
marc2332/freya · crates/freya-borderless-plugin/src/lib.rs:74
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
}
/// Clip the whole canvas with this corner radius, in logical pixels.
pub fn with_corner_radius(mut self, corner_radius: f32) -> Self {
self.corner_radius = corner_radius;
self
}
}
impl FreyaPlugin for BorderlessPlugin {