INNER CODE UNIT · Rust

new

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

    pub fn new(thickness: f32) -> Self {
        Self {
            thickness,
            key: DiffKey::None,
        }
    }
}

impl Component for ResizeBands {
    fn render(&self) -> impl IntoElement {
        let maximized = use_maximized();
        let size = *Platform::get().current_window().root_size.read();

        rect()
            .layer(Layer::Overlay)
            .width(Size::px(0.))
            .height(Size::px(0.))
            .maybe(!maximized(), |el| {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…