GE Lua Documentation

Press F to search!

GetCursorPos

Definition


-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:246
function M.GetCursorPos() return imgui.GetCursorPos() end

Callers

@/lua/ge/extensions/editor/flowgraph/main.lua
              if editor.getPreference("flowgraph.debug.displayIds") then txt = string.format("[%d] " .. n, lIds[i]) end
              local cursor = im.GetCursorPos()
              if self.mgr.graphs[lIds[i]].isStateGraph then
            ui_flowgraph_editor.getViewState(vpPtr, vz)
            local oldCp = im.GetCursorPos()
            local vp = im.ImVecPtrDeref(vpPtr)
      for _, name in ipairs(self.quickConnectSortedNames) do
        local cursor = im.GetCursorPos()
        im.BeginGroup()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
  local mainRVScreenPos = im.GetCursorScreenPos()
  local mainRVPos = im.GetCursorPos()
  local mainRVSize = im.GetContentRegionAvail()

  local startCursorPos = im.GetCursorPos()
@/lua/ge/extensions/editor/gen/lib/ui.lua
	im.SameLine()
	local cur = im.GetCursorPos()
	local topLeft = im.GetWindowPos()
    if dicon[src] then
        local scur = im.GetCursorPos()
        im.SetCursorPosY(im.GetCursorPosY() + dim.y*(1-scale.y)/2)
            im.SetCursorPosY(im.GetCursorPosY()+shift.y)
--            im.SetCursorPos(im.GetCursorPos()+shift)
        end
                local sz = im.CalcTextSize(k)
                local cur = im.GetCursorPos()
                cur = im.ImVec2(cur.x+topLeft.x, cur.y+topLeft.y)
					local sz = im.CalcTextSize(k)
					local cur = im.GetCursorPos()
					local topLeft = im.GetWindowPos()
@/lua/ge/extensions/editor/dynamicDecalsTool.lua
  local colHeaderTitle = debugPref and string.format("!! %s %d", section.name, section.order) or section.name
  local beforeCPos = im.GetCursorPos()
  im.PushStyleColor2(im.Col_Button, nodeColor or im.ImVec4(1,102/255, 0, 0.2))
  end
  local afterCPos = im.GetCursorPos()
  im.PopStyleColor(1)
@/lua/ge/extensions/editor/forestView.lua
  imgui.SameLine()
  local cPos = imgui.GetCursorPos()
  imgui.PushStyleColor2(imgui.Col_Button, (item.selected == true) and buttonColor_active or buttonColor_inactive)
@/lua/ge/extensions/editor/materialEditor.lua

    local cPosA = im.GetCursorPos()
    extMatPreview:ImGui_Image(extMatPreviewRenderSize, extMatPreviewRenderSize)
    extMatPreview:ImGui_Image(extMatPreviewRenderSize, extMatPreviewRenderSize)
    local cPosB = im.GetCursorPos()
    im.SetCursorPos(im.ImVec2(cPosA.x + im.GetStyle().ItemSpacing.y, cPosA.y + im.GetStyle().ItemSpacing.y))

    local cPosA = im.GetCursorPos()
    matPreview:ImGui_Image(matPreviewRenderSize, matPreviewRenderSize)
    matPreview:ImGui_Image(matPreviewRenderSize, matPreviewRenderSize)
    local cPosB = im.GetCursorPos()
    im.SetCursorPos(im.ImVec2(cPosA.x + im.GetStyle().ItemSpacing.y, cPosA.y + im.GetStyle().ItemSpacing.y))
  local wpos = im.GetWindowPos()
  local cpos = im.GetCursorPos()
  local p1 = im.ImVec2(wpos.x + cpos.x - v.style.WindowPadding.x, wpos.y + cpos.y - v.style.WindowPadding.y)
    local size = im.ImVec2(v.inputWidgetHeight, 2* v.inputWidgetHeight + v.style.ItemSpacing.y)
    local pos = im.GetCursorPos()
    if editor.uiIconImageButton((newMatMapToLocked == true and editor.icons.lock_outline or editor.icons.lock_open), size, im.ImVec4(1,1,1,0)) then
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
  self.screenPos = im.GetCursorScreenPos()
  self.startCursorPos = im.GetCursorPos()
  if p then p:add("imgui init") end
  if self.annotationX then
    local endPos = im.GetCursorPos()
    local botPos, topPos = self:normToImWS(0,0), self:normToImWS(1,1)
  if not lines then return end
  local endPos = im.GetCursorPos()
  local pos = self:normToImWS(0,1)
@/lua/ge/extensions/editor/forestEditor.lua
local function forestBrushItemButton(item)
  local cPos = im.GetCursorPos()
  if var.editingObject == item then

    local cursorPos = im.GetCursorPos()
    forestBrushItemButton(forestBrush)
  im.SameLine()
  local cPos = im.GetCursorPos()
  im.PushStyleColor2(im.Col_Button, (item.selected == true) and var.buttonColor_active or var.buttonColor_inactive)
    if pM_textureSets.data[tostring(i)] then
      local cPos = im.GetCursorPos()
      im.ImDrawList_AddRectFilled(

    local cursorPos = im.GetCursorPos()
    local tabIconWidth = var.fontSize + 2 * var.style.FramePadding.y - 3
@/lua/ge/extensions/editor/shortcutLegend.lua
        end
        local topLeft = im.ImVec2(im.GetWindowPos().x + im.GetCursorPos().x - padding.x, im.GetWindowPos().y + im.GetCursorPos().y - im.GetScrollY())
        local bottomRight = im.ImVec2(topLeft.x + im.CalcTextSize(controlName).x + 2 * padding.x, topLeft.y + im.CalcTextSize(controlName).y + padding.y)
        end
        local topLeft = im.ImVec2(im.GetWindowPos().x + im.GetCursorPos().x - padding.x, im.GetWindowPos().y + im.GetCursorPos().y - im.GetScrollY())
        local bottomRight = im.ImVec2(topLeft.x + im.CalcTextSize(controlName).x + 2 * padding.x, topLeft.y + im.CalcTextSize(controlName).y + padding.y)
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua

  local cursorPos = im.GetCursorPos()
  im.SetCursorPos(im.ImVec2(cursorPos.x, cursorPos.y + size - 20))
  local windowPos = im.GetWindowPos()
  cursorPos = im.GetCursorPos()
  local scrollPosX = im.GetScrollX()

  cursorPos = im.GetCursorPos()
  im.SetCursorPos(im.ImVec2(cursorPos.x, cursorPos.y + size - 20))
  end
  local startCursorPos = im.GetCursorPos()
  if isHighlighted then
    local endCursorPos = im.GetCursorPos()
    local wpos = im.GetWindowPos()
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
                im.NextColumn()
                local scur = im.GetCursorPos()
--                    lo('?? scur:'..tostring(scur))
                im.SameLine()
                im.SetCursorPosY(im.GetCursorPos().y-2)
                if editor.uiIconImageButton(editor.icons.refresh,
@/lua/ge/extensions/flowgraph/builder.lua
    ui_flowgraph_editor.PopStyleVar(2)
    local endPos = im.GetCursorPos()
    --print("...")
    im.BeginGroup()
    self.inputBeginPos = im.GetCursorPos()
@/lua/ge/extensions/editor/gen/ui.lua
	im.SameLine()
	local cur = im.GetCursorPos()
	local topLeft = im.GetWindowPos()
			im.SameLine()
			im.SetCursorPosY(im.GetCursorPos().y-2)
			if editor.uiIconImageButton(editor.icons.refresh,
						local sz = im.CalcTextSize(k)
						local cur = im.GetCursorPos()
						local topLeft = im.GetWindowPos()
--            im.Text("Clients:")
--            im.Text("Clients:"..tostring(im.GetCursorPos().x)..':'..tostring(im.GetCursorPos().y))
		end
--            im.Text("Clients:")
--            im.Text("Clients:"..tostring(im.GetCursorPos().x)..':'..tostring(im.GetCursorPos().y))
		end
					local sz = im.CalcTextSize(k)
					local cur = im.GetCursorPos()
					local topLeft = im.GetWindowPos()
--            im.Text("Clients:")
--            im.Text("Clients:"..tostring(im.GetCursorPos().x)..':'..tostring(im.GetCursorPos().y))
	end
--            im.Text("Clients:")
--            im.Text("Clients:"..tostring(im.GetCursorPos().x)..':'..tostring(im.GetCursorPos().y))
	end
@/lua/ge/extensions/editor/flowgraph/search.lua
    if self.filterByType and string.lower(result.type) == string.lower(self.filterByType) or not self.filterByType then
      local prePos = im.GetCursorPos()
      im.BeginGroup()
@/lua/ge/extensions/editor/preferences.lua
  local function pageItemGui(pageName, pageLabel)
    local cPos = imgui.GetCursorPos()
    if imgui.Selectable1("  " .. pageLabel, currentCategoryName == pageName) then
@/lua/ge/extensions/flowgraph/nodes/macro/io.lua
    -- display blue rectangle when node is hovered
    local cursor = im.GetCursorPos()
    local itemSize = {x = 100, y = 100}
@/lua/ge/extensions/flowgraph/pin.lua
  local xStart = im.GetCursorPosX()
  self.imPos = im.GetCursorPos()
  if constValue == nil then

  self.imPos = im.GetCursorPos()
  self.graph.mgr:DrawTypeIcon(self:getTypeWithImpulseAndChain(), self:isUsed(), alpha)
  self._hovered = im.IsItemHovered()
  self._hoverPos = im.GetCursorPos()
  if im.IsItemClicked() then
@/lua/ge/extensions/editor/api/valueInspector.lua
      imgui.BeginTooltip()
      imgui.PushTextWrapPos(imgui.GetCursorPos().x + 400)
      imgui.Text(fieldDesc)
    local windowPos = imgui.GetWindowPos()
    local cursorPos = imgui.GetCursorPos()
      local windowPos = imgui.GetWindowPos()
      local cursorPos = imgui.GetCursorPos()
      local drawColoredLabelIndicator = false
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
  function M.HighlightSelectable(label, highlightText, selected)
    local cursor = M.GetCursorPos()
    local width = M.GetContentRegionAvailWidth()
@/lua/ge/extensions/editor/mainToolbar.lua

          local pos = im.GetCursorPos()
          im.SetCursorPos(im.ImVec2(pos.x + 6, pos.y))
@/lua/ge/extensions/editor/flowgraph/welcome.lua
  end
  local pBegin = im.GetCursorPos()
  im.BeginGroup()

  local pEnd = im.GetCursorPos()
  im.BeginGroup()
  local size = im.GetItemRectSize()
  local cursorBefore = im.GetCursorPos()
  im.SetCursorPos(pBegin)
@/lua/ge/extensions/flowgraph/baseStateNode.lua
  ufe.BeginPin(self.transitionPins._in.N.id, ufe.PinKind_Input)
  self.transitionPins._in.N.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._in.W.id, ufe.PinKind_Input)
  self.transitionPins._in.W.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._in.S.id, ufe.PinKind_Input)
  self.transitionPins._in.S.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._in.E.id, ufe.PinKind_Input)
  self.transitionPins._in.E.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._out.N.id, ufe.PinKind_Output)
  self.transitionPins._out.N.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._out.W.id, ufe.PinKind_Output)
  self.transitionPins._out.W.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._out.S.id, ufe.PinKind_Output)
  self.transitionPins._out.S.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
  ufe.BeginPin(self.transitionPins._out.E.id, ufe.PinKind_Output)
  self.transitionPins._out.E.imPos = im.GetCursorPos()
  ufe.EndPin() ufe.PopStyleVar(1)
@/lua/ge/extensions/editor/flowgraph/examples.lua
    if self.filterByType and string.lower(result.type) == string.lower(self.filterByType) or not self.filterByType then
      local prePos = im.GetCursorPos()
      im.BeginGroup()
      local example = element.examples[key]
      local prePos = im.GetCursorPos()
      im.BeginGroup()
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
  local wpos = im.GetWindowPos()
  local cpos = im.GetCursorPos()
  local p1 = im.ImVec2(wpos.x + cpos.x, wpos.y + cpos.y - tool.getMainScrollY())
@/lua/ge/extensions/editor/api/gui.lua
  local winPos = imgui.GetWindowPos()
  local cursor = imgui.GetCursorPos()
  imgui.ImDrawList_AddLine(
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
      local wpos = im.GetWindowPos()
      local cPos = im.GetCursorPos()
      local itemInnerSpacing = im.GetStyle().ItemInnerSpacing.x
@/lua/ge/extensions/editor/assetBrowser.lua
      -- dragDropSource(file, var.windowPos)
      local cursorPos = im.GetCursorPos()
      local uiScaling = editor.getPreference("ui.general.scale") or defaultUiScale;
    if file.type == "materials" then
      local startCursorPos = im.GetCursorPos()
      im.PushStyleColor2(im.Col_Button, editor.color.transparent.Value)
      local uiScaling = editor.getPreference("ui.general.scale") or defaultUiScale
      local colorCodePos = im.GetCursorPos()
      if file.type == "image" then
      if file.type == "image" then
        local topLeft = im.GetCursorPos()
        im.Image(
        )
        local botRight = im.GetCursorPos()
        -- Draw an icon based on its type in the top left corner of the child.
      elseif file.type == "mesh" and file.inspectorData and file.inspectorData.cachePath then
        local topLeft = im.GetCursorPos()
        im.Image(
        )
        local botRight = im.GetCursorPos()
        -- Draw an icon based on its type in the top left corner of the child.
        icon(file, im.ImVec2(var.options.thumbnailSize, var.options.thumbnailSize), (file.selectedInABView == true and im.GetStyleColorVec4(im.Col_ButtonActive) or im.GetStyleColorVec4(im.Col_Text)))
        local oldPos = im.GetCursorPos()
        im.SameLine()
        im.SameLine()
        local cpos = im.GetCursorPos()
        im.SetCursorPos(im.ImVec2(cpos.x-var.style.WindowPadding.x-var.minThumbnailSize, cpos.y))
local function groupCollapsingHeader(group)
  local cPosStart = im.GetCursorPos()
  if im.Button("##" .. group.identifier .. "_CollapsingHeader", im.ImVec2(im.GetContentRegionAvailWidth(), 0)) then
  end
  local cPosEnd = im.GetCursorPos()
    im.SameLine()
    local cursorPos = im.GetCursorPos()
    chilrenDirectoryPopupButton(dir, im.ImVec2(var.windowPos.x + cursorPos.x, var.windowPos.y + cursorPos.y))
  im.SameLine()
  local cursorPos = im.GetCursorPos()
  if editor.selection["asset"] ~= nil and editor.selection["asset"].type ~= "textureSet" and editor.selection["asset"].dir == var.selectedDirectory then
  local editEnded = im.BoolPtr(false)
  local cpos = im.GetCursorPos()
  if editor.uiSliderInt("", editor.getTempInt_NumberNumber(var.options.thumbnailSize), var.minThumbnailSize, editor.getPreference("assetBrowser.general.maxThumbnailSize"), nil, editEnded) then

          local initialCursorPos = im.GetCursorPos()
          local cursorPos = initialCursorPos
              for colIndex = 1, var.imageInspectorImageSize.x/texToDraw.size.x + 1, 1 do
                cursorPos = im.GetCursorPos()
                isLastTileInRow = colIndex >= var.imageInspectorImageSize.x/texToDraw.size.x
@/lua/ge/extensions/editor/missionEditor.lua
    local winHeight = im.GetContentRegionAvail().y - filterHeight
    local yOrigin = im.GetCursorPos().y
    -- mission list ----
        -- mission details ----
        local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
        im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
        M.lastTabItemShown = 'Setup Modules'
        local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
        im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
        M.lastTabItemShown = 'Mission Type Data'
        local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x + 15
        im.BeginChild1("missionDetails", im.ImVec2(areaWidth, winHeight-45), false, 0)
          M.lastTabItemShown = tab.tabName
          local areaWidth = im.GetWindowContentRegionWidth() - im.GetCursorPos().x
          im.BeginChild1(tab.tabName.."windowhild", im.ImVec2(areaWidth, winHeight-45), false, 0)
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
  for i, result in ipairs(self.searchResults) do
    local prePos = im.GetCursorPos()
    im.BeginGroup()
  local padding = im.GetStyle().FramePadding
  local cursor = im.GetCursorPos()
  im.BulletText((read and "Get " or "Set ")..var.name)
  local padding = im.GetStyle().FramePadding
  local cursor = im.GetCursorPos()
  im.BulletText(macroName)
  local padding = im.GetStyle().FramePadding
  local cursor = im.GetCursorPos()
  local btnText = text
  local padding = im.GetStyle().FramePadding
  local cursor = im.GetCursorPos()
  local btnText = "State Exit ".. (label and ("-> " .. label) or "")
  local padding = im.GetStyle().FramePadding
  local cursor = im.GetCursorPos()
  im.BulletText(stateName)
    nodeName = node.node.name or nodeName
    local cursor = im.GetCursorPos()
    im.BulletText(nodeName)
@/lua/ge/extensions/editor/biomeTool.lua
    imgui.SetCursorPosX(posX + textSize + 5)
    local imgPosStart = imgui.GetCursorPos()
    local texture = editor.getTempTextureObj(getTerrLayerMask(layerID))
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##CentralBrush"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##FalloffBrush"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##NoneCentral", imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##Falloff"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##NoneFalloff", imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##Falloff"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
  imgui.SameLine()
  imgui.SetCursorPosX(imgui.GetCursorPos().x + 20)
  imgui.Text("Border Width:")
  imgui.SameLine()
  imgui.SetCursorPosX(imgui.GetCursorPos().x + 5)
  imgui.SetNextItemWidth(120)
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##EdgeBrush"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##NoneEdge", imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
        imgui.SameLine()
        local textPos = imgui.GetCursorPos()
        if imgui.Button("##Edge"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      area = lassoAreas[index]
      local p1 = imgui.ImVec2(imgui.GetCursorPos().x - 32, imgui.GetCursorPos().y - 32)
      local p2 = imgui.ImVec2(imgui.GetCursorPos().x + 150 + 32, imgui.GetCursorPos().y + 30 + 32)
      area = lassoAreas[index]
      local p1 = imgui.ImVec2(imgui.GetCursorPos().x - 32, imgui.GetCursorPos().y - 32)
      local p2 = imgui.ImVec2(imgui.GetCursorPos().x + 150 + 32, imgui.GetCursorPos().y + 30 + 32)
      local p1 = imgui.ImVec2(imgui.GetCursorPos().x - 32, imgui.GetCursorPos().y - 32)
      local p2 = imgui.ImVec2(imgui.GetCursorPos().x + 150 + 32, imgui.GetCursorPos().y + 30 + 32)
      imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1, p2, imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 1)))
      local p1 = imgui.ImVec2(imgui.GetCursorPos().x - 32, imgui.GetCursorPos().y - 32)
      local p2 = imgui.ImVec2(imgui.GetCursorPos().x + 150 + 32, imgui.GetCursorPos().y + 30 + 32)
      imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1, p2, imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 1)))

  local separatorPos = imgui.GetCursorPos()
  imgui.InvisibleButton("SeparatorButtonLBToolbar", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))

  local separatorPos = imgui.GetCursorPos()
  imgui.InvisibleButton("SeparatorButtonLBLevels", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))

  local separatorPos = imgui.GetCursorPos()
  imgui.InvisibleButton("SeparatorButtonLBLevelsProps", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))

  local separatorPos = imgui.GetCursorPos()
  imgui.InvisibleButton("SeparatorButtonLBToolbar", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))

  local separatorPos = imgui.GetCursorPos()
  imgui.InvisibleButton("SeparatorButtonALLevels", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))

  local separatorPos = imgui.GetCursorPos()
  imgui.InvisibleButton("SeparatorButtonALLevelsProps", imgui.ImVec2(imgui.GetContentRegionAvail().x, seperatorHeight))
  var.forestEditorWindowSize = imgui.GetWindowSize()
  local cursorPos = imgui.GetCursorPos()
  local tabIconWidth = imgui.GetFontSize() + 6
@/lua/ge/extensions/editor/missionPlaybook/missionTreeViewer.lua
  ui_flowgraph_editor.BeginNode(node.id)
  local cp = im.GetCursorPos()
  --im.Dummy(nodeSize)
  im.PopID()
  local ep = im.GetCursorPos()
  ui_flowgraph_editor.EndNode()
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
  -- virtual scrolling testing
  local cPos = im.GetCursorPos()
  local scrollY = im.GetScrollY()
    if k == #textureFilePaths then
      local cp = im.GetCursorPos()
      im.SetCursorPos(im.ImVec2(cPos.x, cp.y + thumbnailSize))

  local cPos = im.GetCursorPos()
  local textSpace = im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + textFilterWidth)
        local maxWidth = im.GetContentRegionAvailWidth()
        local cpos = im.GetCursorPos()
        local ratio = img.size.y / img.size.x
@/lua/ge/extensions/ui/apps/minimap/minimap.lua

    local cp = im.GetCursorPos()
    local size = im.GetContentRegionAvail()
@/lua/ge/extensions/editor/util/transformUtil.lua
  --dump(elemCount, spacing, elemHeight)
  local prePos = im.GetCursorPos()
  --[[
  local startPosX = im.GetCursorPosX()
  prePos = im.GetCursorPos()
  if not self:correctEditMode() then
  end
  local endPos = im.GetCursorPos()
  im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua

  local cursorPos = im.GetCursorPos()
  im.SetCursorPos(im.ImVec2(cursorPos.x, cursorPos.y + size - 20))
  local windowPos = im.GetWindowPos()
  cursorPos = im.GetCursorPos()
  local scrollPosX = im.GetScrollX()

  cursorPos = im.GetCursorPos()
  im.SetCursorPos(im.ImVec2(cursorPos.x, cursorPos.y + size - 20))

  local cPos = im.GetCursorPos()
  local textSpace = im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + textFilterWidth)
@/lua/ge/extensions/editor/shapeEditor.lua

    local cur = im.GetCursorPos()
@/lua/ge/extensions/editor/flowgraph/variables.lua
  local width = im.GetContentRegionAvailWidth()
  local prePos = im.GetCursorPos()
  end
  local endPos = im.GetCursorPos()
  if not editor.getPreference("flowgraph.general.alwaysExpandVariables") then
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua

--                            local cur = im.GetCursorPos()
--                            im.SetCursorPos(im.ImVec2(cur.x,cur.y-16))

--                local scur = im.GetCursorPos()
--                im.SetCursorPosY(im.GetCursorPosY() - 42)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua

  local cpos = im.GetCursorPos()
  im.SetCursorPosX(cpos.x + 80)
      end
      highlightSdfProperties.startCursorPos = im.GetCursorPos()
    end
    if highlightSdfProperties then
      highlightSdfProperties.endCursorPos = im.GetCursorPos()
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
    local char = glyphs[tostring(header["first_char"] + selectedGlyphId)]
    local cpos = im.GetCursorPos()
    local glyphPreviewSize = editor.getPreference("dynamicDecalsTool.fonts.glyphPreviewSize")
    im.TextUnformatted("xadvance: " .. tostring(char["xadvance"]))
    local afterTextPos = im.GetCursorPos()
    )
    if afterTextPos.y > im.GetCursorPos().y then
      im.SetCursorPos(im.ImVec2(im.GetCursorPos().x, afterTextPos.y))
    if afterTextPos.y > im.GetCursorPos().y then
      im.SetCursorPos(im.ImVec2(im.GetCursorPos().x, afterTextPos.y))
    end
@/lua/ge/extensions/flowgraph/nodes/debug/comment.lua
      im.EndGroup()
      local cp = im.GetCursorPos()
      cp.x = cp.x + 5
@/lua/ge/extensions/editor/terrainEditor.lua
      if im.TreeNodeEx1("Material Selector", im.TreeNodeFlags_DefaultOpen) then
        local cursorPos = im.GetCursorPos()
        local childSize = im.ImVec2(
@/lua/ge/extensions/flowgraph/nodes/macro/integrated.lua
      -- display blue rectangle when node is hovered
      local cursor = im.GetCursorPos()
      local itemSize = {x = 150, y = 100}
@/lua/ge/extensions/editor/inspector.lua

        local textStartCursorPos = imgui.GetCursorPos()
        imgui.SetCursorPos(imgui.ImVec2(fontSize*2, fontSize*2))
        local windowPos = imgui.GetWindowPos()
        local imageStartCursorPos = imgui.GetCursorPos()
        local imageStartAbsCursorPos = imgui.GetCursorScreenPos()
        if imgui.BeginChild1("UVValuesColumn", nil, true) then
          local cursorPos = imgui.GetCursorPos()
          local uvValueWidgetWidth = imgui.CalcTextSize("Height").x
      local windowPos = imgui.GetWindowPos()
      local cursorPos = imgui.GetCursorPos()

      imgui.SetCursorPosX(imgui.GetCursorPos().x + fontSize + 2)
      if imgui.BeginCombo("##handleColor", groundCoverUVHandleColors[groundCoverUVHandleColorIndex].name) then
        local windowPos = imgui.GetWindowPos()
        local comboCursorPos = imgui.GetCursorPos()
        local drawlist = imgui.GetWindowDrawList()

          imgui.SetCursorPosX(imgui.GetCursorPos().x + fontSize)
          if imgui.Selectable1(val.name, false) then
      imgui.SameLine()
      imgui.SetCursorPosX(imgui.GetCursorPos().x + fontSize)
      imgui.TextUnformatted("Background Color: ")

      local cursorPosBg = imgui.GetCursorPos()
      local p1_bgColorLabel = imgui.ImVec2(windowPos.x + cursorPosBg.x, windowPos.y + cursorPosBg.y + imgui.GetStyle().FramePadding.y)
        local windowPos = imgui.GetWindowPos()
        local cursorPos = imgui.GetCursorPos()
        local drawlist = imgui.GetWindowDrawList()

          imgui.SetCursorPosX(imgui.GetCursorPos().x + fontSize)
          if imgui.Selectable1(val.name, false) then
  local windowPos = imgui.GetWindowPos()
  local cursorPos = imgui.GetCursorPos()
  imgui.SameLine()
  local prevCursorPos = imgui.ImVec2(imgui.GetCursorPos().x - imgui.GetStyle().FramePadding.x / 2, imgui.GetCursorPos().y)
  imgui.SameLine()
  local prevCursorPos = imgui.ImVec2(imgui.GetCursorPos().x - imgui.GetStyle().FramePadding.x / 2, imgui.GetCursorPos().y)
@/lua/ge/extensions/editor/dynamicDecals/inspector/utils.lua

  local cursorPos = im.GetCursorPos()
  im.SetCursorPos(im.ImVec2(cursorPos.x, cursorPos.y + size - 20))
  local windowPos = im.GetWindowPos()
  cursorPos = im.GetCursorPos()
  local scrollPosX = im.GetScrollX()

  cursorPos = im.GetCursorPos()
  im.SetCursorPos(im.ImVec2(cursorPos.x, cursorPos.y + size - 20))