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

Drawing to cairo canvas #68

Open
rudolflovrencic opened this issue Jan 14, 2025 · 1 comment
Open

Drawing to cairo canvas #68

rudolflovrencic opened this issue Jan 14, 2025 · 1 comment

Comments

@rudolflovrencic
Copy link

I would like to use this library as part of a GTK program that needs to show 2D plots.
The cairo canvas is provided by GtkDrawingArea.

From what I can see from giza_open_device() docs, such use case is not supported.

Is there a hacky way to achieve what I want or am I missing something?

@danieljprice
Copy link
Owner

danieljprice commented Jan 21, 2025

I don't think it would be too hard to implement what you need here, I guess you just want to hand the Cairo context over to Giza plotting routines instead of opening a device. One idea would be to make a new kind of "embedded" device with an open_device call that gives the Cairo context as input... could you supply a minimal test program for this?

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

No branches or pull requests

2 participants