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

Integrate with larger GUI programs #13

Open
bergey opened this issue Feb 13, 2014 · 1 comment
Open

Integrate with larger GUI programs #13

bergey opened this issue Feb 13, 2014 · 1 comment

Comments

@bergey
Copy link
Collaborator

bergey commented Feb 13, 2014

It would be nice to have an example of rendering a Diagram into a window within a Gtk or Qt application. I haven't used either toolkit enough to know what's necessary. Is the Result GLFW.Window -> IO () sufficient, or is the Window type too restrictive?

@bergey bergey added bug and removed bug labels Feb 13, 2014
@alex404
Copy link

alex404 commented Mar 5, 2014

I'm not sure if this is what you're asking, but in GTK the right place to load images is on a DrawingArea.

I've been animating things in Gtk using the Chart library, and there they have an 'updateCanvas' function which loads the desired image into a drawing area. Everything else you might want to do in Gtk can be built around that.

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

No branches or pull requests

2 participants