mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-02-22 10:59:02 +01:00
output: more big refactors
This commit is contained in:
parent
194f2f9874
commit
5e6338fad8
68 changed files with 1604 additions and 1016 deletions
10
output/src/widget/widget_border.rs
Normal file
10
output/src/widget/widget_border.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue