I was wondering what is the best way to do that, I’m thinking of adding a grid on top of the texture, and attaching the labels to it.
How can I add a grid on top of a Gtk::Picture class? Should I use Gtk::Overlay to hold the Grid?
Other suggestions are welcome too
A grid is not meant for absolute or relative positioning. You will probably have an easier time implementing a custom widget and laying out the positions of the text yourself.
If the labels do not need to be interactive, you can just use Gtk::Snapshot::render_layout in the snapshot vfunc. If they do need to be interactive, you can create some Gtk::Labels as children and then position them in your size_allocate vfunc.