Set position offset to every element in a window
Version/Branch of Dear ImGui:
Version 1.91.0, Repository: matcool/imgui-cocos
Back-ends:
n/a
Compiler, OS:
Windows 11 + CMake
Full config/build information:
No response
Details:
Hello! I am trying to make a zooming feature for my imgui window but it ends up covering the bottom part. The only things im scaling at the moment are the buttons, but after some thinking, I think I also need to set the offset between all elements in a window for this.
I'm not sure if my possible solution is right, feel free to tell me if I need to do anything else to prevent it from covering parts of the window when zooming! Thank you.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
No response
Hello, I wanted to look at this but the video is missing - it is a link to a discord hosted file that is not accessible.
Do you still need this? What did you need zooming for?
Hi, I was trying to make a window that could have been scaled together with its font (kinda like zooming it) and I encountered issues since I was scaling the font every update.
I did experiment with screen-space rendering recently which I didn’t know about it back then and I managed to achieve what I wanted since you can provide a custom zoom for each element.
Even if my problem was solved, it would be dope to be able to zoom each ImGui::Text() element like this, rather than using screen-space rendering.
Thanks and have a nice day!