@ -582,7 +582,7 @@ int main(int argc, char** argv)
// 3. Show the ImGui test window. Most of the sample code is in ImGui::ShowTestWindow()
if(show_test_window)
{
ImGui::SetNextWindowPos(ImVec2(650,20),ImGuiSetCondition_FirstUseEver);// Normally user code doesn't need/want to call it because positions are saved in .ini file anyway. Here we just want to make the demo initial state a bit more friendly!
ImGui::SetNextWindowPos(ImVec2(650,20),ImGuiSetCond_FirstUseEver);// Normally user code doesn't need/want to call it because positions are saved in .ini file anyway. Here we just want to make the demo initial state a bit more friendly!
// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). Note that you can use ## to append unique data that isn't displayed, e.g. "My window##1" will use "My window##1" as unique window ID but display "My window" to the user.
// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned.
// - Passing 'bool* p_opened' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed.
// - Passing non-zero 'size' is roughly equivalent to calling SetNextWindowSize(size, ImGuiSetCondition_FirstUseEver) prior to calling Begin().
// - Passing non-zero 'size' is roughly equivalent to calling SetNextWindowSize(size, ImGuiSetCond_FirstUseEver) prior to calling Begin().
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_APIvoidSetNextWindowPos(constImVec2&pos,ImGuiSetConditioncond=0);// set next window position - call before Begin().
IMGUI_APIvoidSetNextWindowSize(constImVec2&size,ImGuiSetConditioncond=0);// set next window size. set to ImVec2(0,0) to force an auto-fit.
IMGUI_APIvoidSetNextWindowCollapsed(boolcollapsed,ImGuiSetConditioncond=0);// set next window collapsed state.
IMGUI_APIvoidSetNextWindowPos(constImVec2&pos,ImGuiSetCondcond=0);// set next window position - call before Begin().
IMGUI_APIvoidSetNextWindowSize(constImVec2&size,ImGuiSetCondcond=0);// set next window size. set to ImVec2(0,0) to force an auto-fit.
IMGUI_APIvoidSetNextWindowCollapsed(boolcollapsed,ImGuiSetCondcond=0);// set next window collapsed state.
IMGUI_APIvoidSetNextWindowFocus();// set next window to be focused / front-most
IMGUI_APIvoidSetWindowPos(constImVec2&pos,ImGuiSetConditioncond=0);// set current window position - call within Begin()/End(). 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_APIvoidSetWindowPos(constImVec2&pos,ImGuiSetCondcond=0);// set current window position - call within Begin()/End(). may incur tearing.
IMGUI_APIvoidSetWindowSize(constImVec2&size,ImGuiSetCondcond=0);// set current window size. set to ImVec2(0,0) to force an auto-fit. may incur tearing.
IMGUI_APIvoidSetWindowCollapsed(boolcollapsed,ImGuiSetCondcond=0);// set current window collapsed state.
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_APIvoidSetWindowPos(constchar*name,constImVec2&pos,ImGuiSetCondcond=0);// set named window position - call within Begin()/End(). may incur tearing.
IMGUI_APIvoidSetWindowSize(constchar*name,constImVec2&size,ImGuiSetCondcond=0);// set named window size. set to ImVec2(0,0) to force an auto-fit. may incur tearing.
IMGUI_APIvoidSetWindowCollapsed(constchar*name,boolcollapsed,ImGuiSetCondcond=0);// set named window collapsed state.
IMGUI_APIvoidSetWindowFocus(constchar*name);// set named window to be focused / front-most
IMGUI_APIvoidSetScrollPosHere();// adjust scrolling position to center into the current cursor position.
@ -310,7 +310,7 @@ namespace ImGui
IMGUI_APIvoidTreePush(constchar*str_id=NULL);// already called by TreeNode(), but you can call Push/Pop yourself for layouting purpose
IMGUI_APIvoidTreePush(constvoid*ptr_id=NULL);// "
IMGUI_APIvoidTreePop();
IMGUI_APIvoidSetNextTreeNodeOpened(boolopened,ImGuiSetConditioncond=0);// set next tree node to be opened.
IMGUI_APIvoidSetNextTreeNodeOpened(boolopened,ImGuiSetCondcond=0);// set next tree node to be opened.