INNER CODE UNIT · Rust
size
marc2332/freya · crates/freya-borderless-plugin/src/lib.rs:191
let size = *Platform::get().current_window().root_size.read();
rect()
.layer(Layer::Overlay)
.width(Size::px(0.))
.height(Size::px(0.))
.maybe(!maximized(), |el| {
el.children(
DIRECTIONS
.iter()
.map(|direction| self.band(*direction, size)),
)
})
}
}
impl ResizeBands {
fn band(&self, direction: ResizeDirection, size: Size2D) -> Element {