// - Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin).
IMGUI_APIvoidSetNextWindowPos(constImVec2&pos,ImGuiCondcond=0,constImVec2&pivot=ImVec2(0,0));// set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc.
IMGUI_APIvoidSetNextWindowSize(constImVec2&size,ImGuiCondcond=0);// set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin()
IMGUI_APIvoidSetNextWindowSizeConstraints(constImVec2&size_min,constImVec2&size_max,ImGuiSizeCallbackcustom_callback=NULL,void*custom_callback_data=NULL);// set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints.
IMGUI_APIvoidSetNextWindowSizeConstraints(constImVec2&size_min,constImVec2&size_max,ImGuiSizeCallbackcustom_callback=NULL,void*custom_callback_data=NULL);// set next window size limits. use 0.0f or FLT_MAX if you don't want limits. Use -1 for both min and max of same axis to preserve current size (which itself is a constraint). Use callback to apply non-trivial programmatic constraints.
IMGUI_APIvoidSetNextWindowContentSize(constImVec2&size);// set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin()
IMGUI_APIvoidSetNextWindowCollapsed(boolcollapsed,ImGuiCondcond=0);// set next window collapsed state. call before Begin()
IMGUI_APIvoidSetNextWindowFocus();// set next window to be focused / top-most. call before Begin()
if(type==2)ImGui::SetNextWindowSizeConstraints(ImVec2(-1,0),ImVec2(-1,FLT_MAX));// Vertical only
if(type==3)ImGui::SetNextWindowSizeConstraints(ImVec2(0,-1),ImVec2(FLT_MAX,-1));// Horizontal only
if(type==2)ImGui::SetNextWindowSizeConstraints(ImVec2(-1,0),ImVec2(-1,FLT_MAX));// Resize vertical + lock current width
if(type==3)ImGui::SetNextWindowSizeConstraints(ImVec2(0,-1),ImVec2(FLT_MAX,-1));// Resize horizontal + lock current height
if(type==4)ImGui::SetNextWindowSizeConstraints(ImVec2(400,-1),ImVec2(500,-1));// Width Between and 400 and 500
if(type==5)ImGui::SetNextWindowSizeConstraints(ImVec2(0,0),ImVec2(FLT_MAX,FLT_MAX),CustomConstraints::AspectRatio,(void*)&aspect_ratio);// Aspect ratio
if(type==5)ImGui::SetNextWindowSizeConstraints(ImVec2(-1,500),ImVec2(-1,FLT_MAX));// Height at least 400
if(type==6)ImGui::SetNextWindowSizeConstraints(ImVec2(0,0),ImVec2(FLT_MAX,FLT_MAX),CustomConstraints::AspectRatio,(void*)&aspect_ratio);// Aspect ratio