Skip to content
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

Added WidgetProps #69

Merged
merged 19 commits into from
Feb 5, 2022
Merged

Added WidgetProps #69

merged 19 commits into from
Feb 5, 2022

Conversation

MrGVSV
Copy link
Collaborator

@MrGVSV MrGVSV commented Feb 1, 2022

Added WidgetProps and its derive macro, according to RFC 1: #56.

Tasks:

  • Add WidgetProps
  • Add derive macro
  • Integrate with Widget (likely requires updating the rest of the codebase to account for it)

@MrGVSV MrGVSV requested a review from StarArawn February 1, 2022 18:54
@MrGVSV MrGVSV self-assigned this Feb 1, 2022
Also added trait bounds to Widget since its trait object has been replaced by
BaseWidget.
MrGVSV and others added 3 commits February 3, 2022 12:12
This code doesn't work though. Running it shows that widgets are not
aligned/sized properly anymore. Will need fixing.
Copy link
Owner

@StarArawn StarArawn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good just a couple small things!

kayak_core/src/children.rs Outdated Show resolved Hide resolved
kayak_render_macros/src/function_component.rs Show resolved Hide resolved
kayak_render_macros/src/lib.rs Show resolved Hide resolved
src/widgets/background.rs Outdated Show resolved Hide resolved
src/widgets/background.rs Show resolved Hide resolved
Props no longer need to be named "<Widget Name>Props"
Added WidgetProps::set_children(...) in order to achieve this
This allows copy values to be used directly from props in rsx (i.e.
`props.copy_value`)
@MrGVSV MrGVSV marked this pull request as ready for review February 4, 2022 22:23
@MrGVSV MrGVSV requested a review from StarArawn February 4, 2022 23:24
@StarArawn StarArawn merged commit 25dbfc8 into main Feb 5, 2022
@StarArawn StarArawn deleted the widget-props branch February 5, 2022 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants