GE Lua Documentation

Press F to search!

SetWindowPos2

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:142
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

Callers

@/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
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
  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