GE Lua Documentation

Press F to search!

IsMouseHoveringRect

Definition


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

Callers

@/lua/ge/extensions/util/maptiles.lua
        local mousePos = im.GetMousePos()
        if im.IsMouseHoveringRect(im.ImVec2(x, y), im.ImVec2(x + cellWidth, y + cellHeight)) then
          if im.IsMouseClicked(0) then
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetMouseClickedCount(ImGuiMouseButton_button) return imgui.GetMouseClickedCount(ImGuiMouseButton_button) end
function M.IsMouseHoveringRect(ImVec2_r_min, ImVec2_r_max, bool_clip)
  if bool_clip == nil then bool_clip = true end
  if bool_clip == nil then bool_clip = true end
  return imgui.IsMouseHoveringRect(ImVec2_r_min, ImVec2_r_max, bool_clip)
end
@/lua/ge/extensions/editor/inspector.lua
    for index, val in ipairs(groundCoverUVHandles) do
      if imgui.IsMouseHoveringRect(val[1], val[2]) then
        hoveredHandleSquare = index