I am learning Gtk through C++ by using the
My goal is to implement a node based gui inspired by Blender’s one.
Basically, I want to create a node editor when I can create and add nodes and arrange them freely.
A node is a rounded rectangle with input and output sockets corresponding to different properties.
I want to be able to connect nodes by dragging cables from each one’s sockets.
These are my questions :
I planned to create a customized widget deriving from
Gtk::Containerto create the node widget. If I want to have gtk widgets (like sliders, text inputs or images) inside the node itself, I must implement my own container is that right?
The node editor is a frame where I need to be able to pan (with mmb) and zoom by scrolling. Is it possible to do that in Gtk so I can zoom on widgets? Because I can do this with
Gtk::DrawingAreaand Cairo but then I can’t have native gtk widgets inside the nodes…
I hope it’s clear I can’t really figure out how to implement this…
(All the images where taken on the blender doc website)