Derive more traits for widgets
This commit is contained in:
parent
77e72de9ad
commit
007493f136
6 changed files with 10 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ use async_trait::async_trait;
|
|||
|
||||
use crate::{AsyncWidget, Frame, Size, Widget, WidthDb};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Layer<I> {
|
||||
layers: Vec<I>,
|
||||
}
|
||||
|
|
@ -73,6 +74,7 @@ macro_rules! mk_layer {
|
|||
$( pub $arg:ident: $type:ident, )+
|
||||
}
|
||||
) => {
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct $name< $($type),+ >{
|
||||
$( pub $arg: $type, )+
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue