INNER CODE UNIT · Rust

with_thickness

marc2332/freya · crates/freya-borderless-plugin/src/lib.rs:79

    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 {
    fn plugin_id(&self) -> &'static str {
        "borderless"
    }

    fn on_event(&mut self, event: &mut PluginEvent, _handle: PluginHandle) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…