GE Lua Documentation

Press F to search!

GetWindowSize

Definition


-- @/=[C]:-1
function GetWindowSize(...)

Callers

@/lua/ge/extensions/editor/flowgraph/main.lua

    self.windowSize = im.GetWindowSize()
    self.windowPos = im.GetWindowPos()
@/lua/ge/extensions/editor/windows.lua
    windowPos = im.GetWindowPos()
    windowSize = im.GetWindowSize()
    windowPosCheck()
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
  self.windowPos = im.GetWindowPos()
  self.windowSize = im.GetWindowSize()
@/lua/ge/extensions/editor/assetBrowser.lua

        local windowSize = im.GetWindowSize()
        if var.imageInspectorImageSize then
    var.windowPos = im.GetWindowPos()
    var.windowSize = im.GetWindowSize()
@/lua/ge/extensions/ui/console.lua
        winstate = {im.GetWindowPos().x, im.GetWindowPos().y,
        im.GetWindowSize().x, im.GetWindowSize().y}
      end
        winstate = {im.GetWindowPos().x, im.GetWindowPos().y,
        im.GetWindowSize().x, im.GetWindowSize().y}
      end
@/lua/ge/extensions/editor/sceneTree.lua
      local p1 = imgui.ImVec2(imgui.GetWindowPos().x, itemRect.min.y - imgui.GetStyle().FramePadding.y/2)
      local winSize = imgui.GetWindowSize()
      local p2 = imgui.ImVec2(imgui.GetWindowPos().x + winSize.x*2, p1.y)
        local winPos = imgui.GetWindowPos()
        local winSize = imgui.GetWindowSize()
@/lua/ge/extensions/editor/assetDeduplicator.lua

    local outerSize = im.ImVec2(im.GetWindowSize().x-(10*im.uiscale[0]), im.GetWindowSize().y-(160*im.uiscale[0]))
    if im.BeginTable("matchesTable", 3, tableFlags, outerSize) then

    local outerSize = im.ImVec2(im.GetWindowSize().x-(10*im.uiscale[0]), im.GetWindowSize().y-(160*im.uiscale[0]))
    if im.BeginTable("matchesTable", 3, tableFlags, outerSize) then
@/lua/ge/extensions/editor/api/gui.lua
    if auto_resize then
      ImVec2_graph_size = imgui.ImVec2(imgui.GetWindowSize().x - 2*imgui.GetStyle().WindowPadding.x - imgui.CalcTextSize(string_label).x, imgui.GetWindowSize().y - 5*imgui.GetStyle().WindowPadding.y)
    else
    if auto_resize then
      ImVec2_graph_size = imgui.ImVec2(imgui.GetWindowSize().x - 2*imgui.GetStyle().WindowPadding.x - imgui.CalcTextSize(string_label).x, imgui.GetWindowSize().y - 5*imgui.GetStyle().WindowPadding.y)
    else
@/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))
  local framePadding =  imgui.ImVec2(3, 3) --imgui.GetStyle().FramePadding
  --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))
  local framePadding =  imgui.ImVec2(3, 3) --imgui.GetStyle().FramePadding

  imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5 - 150, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
  local framePadding =  imgui.ImVec2(3, 3)

  imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5 - 150, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
  local framePadding =  imgui.ImVec2(3, 3)

  imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
  if imgui.BeginPopupModal("No Brush Selected!") then

  imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
  if imgui.BeginPopupModal("No Brush Selected!") then
  end
  imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
  if imgui.BeginPopupModal("No Lasso Areas!") then
  end
  imgui.SetNextWindowPos(imgui.ImVec2(imgui.GetWindowPos().x + imgui.GetWindowSize().x * 0.5, imgui.GetWindowPos().y + imgui.GetWindowSize().y * 0.5))
  if imgui.BeginPopupModal("No Lasso Areas!") then
local function drawMainPanel()
  var.forestEditorWindowSize = imgui.GetWindowSize()
  local cursorPos = imgui.GetCursorPos()
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
    if editor_terrainEditor then editor_terrainEditor.setupVars() end
    materialEditorWindowSize = im.GetWindowSize()
    im.Columns(2)
@/lua/common/extensions/ui/imguiUtils.lua
-- local windowPos = im.GetWindowPos()
-- local windowSize = im.GetWindowSize()
function M.IsWindowHovered(windowPos, windowSize)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veTCSDebug.lua

      local windowSize = im.GetWindowSize()
      local padding = im.GetStyle().WindowPadding.x * 2
@/lua/ge/extensions/editor/forestEditor.lua
  if editor.beginWindow(toolWindowName, "Forest Editor##Window", 0, true) then
    var.forestEditorWindowSize = im.GetWindowSize()
@/lua/ge/extensions/editor/textEditor.lua
    if editor.beginWindow(wndName, "Text Editor " .. idsToString(instance.objIds) .. " " .. instance.fieldName .. "##" .. index) then
      if editor.uiInputTextMultiline('##text' .. index, instance.textInput, textInputSize, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), imgui.GetWindowSize().y - imgui.CalcTextSize('Cancel Ok').y * 4), imgui.InputTextFlags_AllowTabInput, nil, nil, nil) then
      end
@/lua/ge/extensions/editor/inspector.lua
      local menuBarHeight = 2*imgui.GetStyle().FramePadding.y + fontSize
      local uvMainPanelHeight = imgui.GetWindowSize().y - (2*menuBarHeight - 6 + 3*imgui.GetStyle().WindowPadding.y + imgui.GetStyle().FramePadding.x + 2*imgui.GetStyle().ChildBorderSize)
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
        view.windowPos = im.GetWindowPos()
        view.windowSize = im.GetWindowSize()
        view.windowViewport = im.GetWindowViewport()
@/lua/ge/extensions/editor/rallyEditor.lua

      -- local windowSize = im.GetWindowSize()
      -- local windowHeight = windowSize.y
@/lua/ge/extensions/editor/resourceChecker.lua
    else
      local windowSize = im.GetWindowSize()
      local img = nil
@/lua/ge/extensions/editor/terrainEditor.lua

      terrainPainterWindowSize = im.GetWindowSize()
    local winPos = im.GetWindowPos()
    local winSize = im.GetWindowSize()
    local textWidthLeftBound = (im.CalcTextSize("Hard").x + var.style.ItemSpacing.x)
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetWindowPos() return imgui.GetWindowPos() end
function M.GetWindowSize() return imgui.GetWindowSize() end
function M.GetWindowWidth() return imgui.GetWindowWidth() end
function M.GetWindowPos() return imgui.GetWindowPos() end
function M.GetWindowSize() return imgui.GetWindowSize() end
function M.GetWindowWidth() return imgui.GetWindowWidth() end