imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Can ImGui manage the Main Viewport?

Open Icaka00 opened this issue 1 year ago • 3 comments

Version/Branch of Dear ImGui:

Version v1.91.6, Branch: docking

Back-ends:

imgui_impl_Custom.cpp + imgui_impl_GLFW.cpp

Compiler, OS:

Windows 10 MSVC/Clang

Full config/build information:

No response

Details:

Is it possible to make ImGui handle the Main Viewport (GFLW Window)? Im talking about resize and drag.

I want to make a custom title bar, but that is just not possible with GLFW, the only option is disabling decorations entirely. Good, but then i lose Resize and Move. Is it possible to manage the window with ImGui? Or am i stuck with forking a GLFW? Should i just calculate and handle resize/move with ImGui myself?

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

Icaka00 avatar Feb 06 '25 19:02 Icaka00

It's not possible yet but I eventually want it to happen.

ocornut avatar Feb 06 '25 19:02 ocornut

See also https://github.com/ocornut/imgui/issues/3680, https://github.com/ocornut/imgui/issues/3350, and https://github.com/ocornut/imgui/issues/8268

Of particular interest is https://github.com/ocornut/imgui/issues/8268#issuecomment-2566742743, where Nik detailed how ImHex accomplishes what you're describing.

PathogenDavid avatar Feb 06 '25 20:02 PathogenDavid

Also see this comment I just posted: https://github.com/ocornut/imgui/issues/8268#issuecomment-2666373762

ocornut avatar Feb 18 '25 17:02 ocornut