GE Lua Documentation

Press F to search!

GetVisibleCanvasBounds

Definition


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

Callers

@/lua/ge/extensions/editor/flowgraph/variables.lua
    if im.IsItemHovered() and im.IsMouseReleased(0) and not self.dragPayload then
      local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
      local pos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)
     if im.IsItemHovered() and im.IsMouseReleased(0) and not self.dragPayload then
      local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
      local pos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
    -- If there is no pos, use the middle of the screen
    local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
    menuPos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)
    -- If there is no pos, use the middle of the screen
    local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
    menuPos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)
  editor.setPreference("flowgraph.general.nodeFrecency", sharedFrecency)
  local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
  local pos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)
    -- If there is no pos, use the middle of the screen
    local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
    menuPos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)
    -- If there is no pos, use the middle of the screen
    local bounds = ui_flowgraph_editor.GetVisibleCanvasBounds()
    menuPos = im.ImVec2((bounds.x + bounds.z) / 2, (bounds.y + bounds.w) / 2)