mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-02-21 18:49:04 +01:00
10 lines
245 B
Rust
10 lines
245 B
Rust
use crate::*;
|
|
|
|
pub struct Border<S>(pub bool, pub S);
|
|
impl<O: Out, S: Layout<O>> Layout<O> for Border<S> {
|
|
fn layout (&self, area: O::Area) -> O::Area {
|
|
self.1.layout(area)
|
|
}
|
|
}
|
|
|
|
pub struct Bordered<S, W>(pub bool, pub S, pub W);
|