GetWindowViewport
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:104
function M.GetWindowViewport() return imgui.GetWindowViewport() end
Callers
@/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))
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
view.windowSize = im.GetWindowSize()
view.windowViewport = im.GetWindowViewport()
end