GetWindowViewport
Definition
-- @/=[C]:-1
function GetWindowViewport(...)
Callers
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
view.windowSize = im.GetWindowSize()
view.windowViewport = im.GetWindowViewport()
end
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetWindowHeight() return imgui.GetWindowHeight() end
function M.GetWindowViewport() return imgui.GetWindowViewport() end
function M.SetNextWindowPos(ImVec2_pos, ImGuiCond_cond, ImVec2_pivot)
function M.GetWindowHeight() return imgui.GetWindowHeight() end
function M.GetWindowViewport() return imgui.GetWindowViewport() end
function M.SetNextWindowPos(ImVec2_pos, ImGuiCond_cond, ImVec2_pivot)
@/lua/ge/extensions/ui/console.lua
txtwidth = txtwidth * (1/fontConsoleFact[0])
local vp = im.GetWindowViewport()
local chunkSize = tostring(v):len() * vp.Size.x / txtwidth
@/lua/ge/extensions/editor/biomeTool.lua
--imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowViewport().Size.x * 0.5, imgui.GetWindowViewport().Size.y * 0.5))
imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5 - 150, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
--imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowViewport().Size.x * 0.5, imgui.GetWindowViewport().Size.y * 0.5))
imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5 - 150, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))