Skip to content

Decorations system #7

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

Open
1 of 4 tasks
Tracked by #6
rafern opened this issue Nov 19, 2023 · 0 comments
Open
1 of 4 tasks
Tracked by #6

Decorations system #7

rafern opened this issue Nov 19, 2023 · 0 comments

Comments

@rafern
Copy link
Owner

rafern commented Nov 19, 2023

original notes:

  • Shadows are painted on the background so the overlay system is not the same as the decorations system
  • Maybe extend basecontainer so that it supports decorations, including corner radius etc..., which would optionally use a canvas when needed, or maybe a global clip, although that would probably interfere with widgets that use evenodd clipping (widget.clearstart, widget.clearend)

new notes:

  • shadows will actually be kinda complicated to implement without completely wrecking performance
  • shadows will probably need to use the layering system nope, we need a system for widgets that paint outside their bounds (maybe paintRect, which defaults to [x, y, width, height]?), and need to capture the child widget in a scratch canvas
  • rounded corners are easy now that we have a damage system; just clip when painting

TODO:

  • rounded corners
  • allow widgets to have painting positions/dimensions different than their layout positions/dimensions
  • shadows
  • transformations
@rafern rafern converted this from a draft issue Nov 19, 2023
@rafern rafern mentioned this issue Nov 19, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: On pause
Development

No branches or pull requests

1 participant