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

Stacked canvases #140

Open
nickbetteridge opened this issue Dec 28, 2022 · 2 comments
Open

Stacked canvases #140

nickbetteridge opened this issue Dec 28, 2022 · 2 comments
Assignees
Labels
drawing Anything related to drawing primitives enhancement New feature or request

Comments

@nickbetteridge
Copy link

Is one able to create a window containing stacked canvases? It looks as though only one canvas can be projected on an open window. If this is the case, would it be possible to add this feature? I have a number of use-cases where the different canvas layers are used as overlays.

@ddeclerck
Copy link
Collaborator

Hi,
The library was indeed designed that way. I'll see what can be done about adding this feature, though be aware that it requires quite a bit of refactoring in the code and might not be available soon.
As an alternative, you can use offscreen canvases and blit them over an onscreen canvas (though that's probably less efficient).

@ddeclerck ddeclerck self-assigned this Jan 2, 2023
@ddeclerck ddeclerck added enhancement New feature or request drawing Anything related to drawing primitives labels Jan 2, 2023
@nickbetteridge
Copy link
Author

Thanks for getting back. Yes, having a z-plane is definitely a requirement for building image editors, vlsi custom layout editors, diagram editors with drag-and-drop, griding, flashing error layers etc. Once a tree becomes reasonably large and there's a fair amount of activity happening on the overlays, doing off-screen copying will end up being noticeably slow. A z-plane is a must-have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drawing Anything related to drawing primitives enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants