Implement Widget::tag for pure::Canvas
This commit is contained in:
parent
7d7064a44d
commit
31d814b43c
1 changed files with 4 additions and 0 deletions
|
|
@ -105,6 +105,10 @@ where
|
||||||
P: Program,
|
P: Program,
|
||||||
B: Backend,
|
B: Backend,
|
||||||
{
|
{
|
||||||
|
fn tag(&self) -> tree::Tag {
|
||||||
|
tree::Tag::of::<P::State>()
|
||||||
|
}
|
||||||
|
|
||||||
fn state(&self) -> tree::State {
|
fn state(&self) -> tree::State {
|
||||||
tree::State::new(P::State::default())
|
tree::State::new(P::State::default())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue