Em sex., 8 de nov. de 2024 às 21:46, Alexandre Torres Porres <
porres@gmail.com> escreveu:
With the help of github's AI (copilot) and to the best of my knowledge, the canvas_editmode function in g_editor.c is what responds to the edit mode status change, and then it uses
text_drawborder(ob, x,
rtext_gettag(y), rtext_width(y), rtext_height(y), 1);
to change how things are drawn if in edit mode or not.
I'm yet to better understand how setting cursor works, and I'm also thinking how to expanding this to iemguis, so they can also be resized in edit mode...
But first, I ask, could we have a simple function call to grab the edit status in external objects? My hacky to listen to canvas messages way works, but I was hoping for something better and easier, for everyone to use with externals. Something like a "zoom" message that we can receive.
What do you say?
cheers