window->DC.CursorPos+=(window->Pos-old_pos);// As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor
window->DC.CursorPos+=(window->Pos-old_pos);// As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor
IMGUI_APIvoidSetWindowSize(constImVec2&size,ImGuiSetConditioncond=0);// set current window size. set to ImVec2(0,0) to force an auto-fit. may incur tearing.
IMGUI_APIvoidSetWindowSize(constImVec2&size,ImGuiSetConditioncond=0);// set current window size. set to ImVec2(0,0) to force an auto-fit. may incur tearing.
IMGUI_APIvoidSetWindowCollapsed(boolcollapsed,ImGuiSetConditioncond=0);// set current window collapsed state.
IMGUI_APIvoidSetWindowCollapsed(boolcollapsed,ImGuiSetConditioncond=0);// set current window collapsed state.
IMGUI_APIvoidSetWindowFocus();// set current window to be focused / front-most
IMGUI_APIvoidSetWindowFocus();// set current window to be focused / front-most
IMGUI_APIvoidSetWindowPos(constchar*name,constImVec2&pos,ImGuiSetConditioncond=0);// set named window position - call within Begin()/End(). may incur tearing.
IMGUI_APIvoidSetWindowSize(constchar*name,constImVec2&size,ImGuiSetConditioncond=0);// set named window size. set to ImVec2(0,0) to force an auto-fit. may incur tearing.
IMGUI_APIvoidSetWindowCollapsed(constchar*name,boolcollapsed,ImGuiSetConditioncond=0);// set named window collapsed state.
IMGUI_APIvoidSetWindowFocus(constchar*name);// set named window to be focused / front-most
IMGUI_APIvoidSetWindowFocus(constchar*name);// set named window to be focused / front-most
IMGUI_APIvoidSetScrollPosHere();// adjust scrolling position to center into the current cursor position.
IMGUI_APIvoidSetScrollPosHere();// adjust scrolling position to center into the current cursor position.