New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change calculator example to use state widget #32

Merged
merged 3 commits into from May 12, 2018

Conversation

Projects
None yet
1 participant
@raphlinus
Copy link
Member

raphlinus commented May 5, 2018

Store calculator state in a widget in the tree, rather than in a separate Rc<RefCell<>> struct.

raphlinus added some commits May 5, 2018

Change calculator example to use state widget
Store calculator state in a widget in the tree, rather than in a
separate Rc<RefCell<>> struct.
Do the calculator logic in the listener
Instead of a custom widget, use a generic EventForwarder, and have the
calculator state and action logic in its listener.

@raphlinus raphlinus merged commit 6d41443 into master May 12, 2018

1 check passed

cla/google All necessary CLAs are signed

@raphlinus raphlinus deleted the no_refcell branch May 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment