Nebula
Loading...
Searching...
No Matches
Dynui::ImguiDetach Namespace Reference

Classes

struct  DetachStateType
 The window being dragged out of the main window, where it is to be let go, and the window that was let go outside the main window and takes the focus once its OS window is shown. More...

Functions

void DeferWindowDetach (const char *name)
 By default ImGui gives a window its own OS window as soon as it is dragged past the edge of the main window, while the mouse button is still held.

Variables

DetachStateType State

Function Documentation

◆ DeferWindowDetach()

void Dynui::ImguiDetach::DeferWindowDetach ( const char * name)
inline

By default ImGui gives a window its own OS window as soon as it is dragged past the edge of the main window, while the mouse button is still held.

On X11 the main window holds the pointer for as long as the button is down, and the new window has to be created, mapped and moved every frame against that, which is what makes dragging out janky.

Instead the window stays in the main window for as long as it is dragged: outside of it it is simply not seen. Its place is set each frame from the mouse, because ImGui would otherwise keep a window in its viewport and it would stop at the edge. Once let go ImGui finds it outside the main window and gives it its OS window there, once, with no button held.

Variable Documentation

◆ State

DetachStateType Dynui::ImguiDetach::State
inline