SetWindowPos2
Definition
-- @/=[C]:-1
function SetWindowPos2(...)
Callers
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.SetWindowFontScale(float_scale) imgui.SetWindowFontScale(float_scale) end
function M.SetWindowPos2(string_name, ImVec2_pos, ImGuiCond_cond)
if ImGuiCond_cond == nil then ImGuiCond_cond = 0 end
if string_name == nil then log("E", "", "Parameter 'string_name' of function 'SetWindowPos2' cannot be nil, as the c type is 'const char *'") ; return end
imgui.SetWindowPos2(string_name, ImVec2_pos, ImGuiCond_cond)
end
@/lua/ge/extensions/editor/windows.lua
if moveWindow then
im.SetWindowPos2("Windows", im.ImVec2(mainViewport.Pos.x + 40, mainViewport.Pos.y + 40))
end
if im.Button("Set position to 0,0##" .. name) then
im.SetWindowPos2(name, im.ImVec2(0, 0))
end