GetWindowHeight
Definition
-- @/=[C]:-1
function GetWindowHeight(...)
Callers
@/lua/ge/extensions/editor/api/gui.lua
local clipRectMin = imgui.ImVec2(winPos.x, winPos.y)
local clipRectMax = imgui.ImVec2(winPos.x + imgui.GetWindowWidth(), winPos.y + imgui.GetWindowHeight())
if imgui.GetScrollMaxY() > 0 then -- Doesn't highlight the area under the scrollbar
@/lua/ge/extensions/editor/shapeEditor.lua
im.PushStyleColor2(im.Col_ChildBg, im.ImColorByRGB(0,0,0,64).Value)
im.BeginChild1("shapeEditorMenu", menuSize(im.GetWindowWidth(),im.GetWindowHeight()), true )
im.PopStyleColor()
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
im.PushStyleColor2(im.Col_FrameBg, im.ImVec4(0.2, 0.2, 0.2, 0.4))
if im.BeginListBox(id, im.ImVec2(-1,im.GetWindowHeight() - 118)) then
im.Indent(8)
@/lua/ge/extensions/editor/gen/ui.lua
-- 320
im.BeginChild1('CONTROLS', im.ImVec2(im.GetWindowWidth(), im.GetWindowHeight() - vspace), false)
-- im.Indent(8)
@/lua/ge/extensions/editor/mainMenu.lua
helpMenu()
editor.menuHeight = imgui.GetWindowHeight()
if editor.safeMode == true then
@/lua/ge/extensions/editor/sceneTree.lua
instance.newListIndex = nil
if imgui.GetCursorPosY() + entrySize > (imgui.GetScrollY() + imgui.GetWindowHeight()) or imgui.GetCursorPosY() < imgui.GetScrollY() then
imgui.SetScrollY(imgui.GetCursorPosY() - imgui.GetWindowHeight()/2)
if imgui.GetCursorPosY() + entrySize > (imgui.GetScrollY() + imgui.GetWindowHeight()) or imgui.GetCursorPosY() < imgui.GetScrollY() then
imgui.SetScrollY(imgui.GetCursorPosY() - imgui.GetWindowHeight()/2)
end
if not node.hidden then
if imgui.GetCursorPosY() > (imgui.GetScrollY() + imgui.GetWindowHeight()) or imgui.GetCursorPosY() + entrySize < imgui.GetScrollY() then
imgui.SetScrollY((node.listIndex or 1) * entrySize - imgui.GetWindowHeight()/2)
if imgui.GetCursorPosY() > (imgui.GetScrollY() + imgui.GetWindowHeight()) or imgui.GetCursorPosY() + entrySize < imgui.GetScrollY() then
imgui.SetScrollY((node.listIndex or 1) * entrySize - imgui.GetWindowHeight()/2)
end
if imgui.GetCursorPosY() > (imgui.GetScrollY() + imgui.GetWindowHeight()) and not instance.scrollToNode then
imgui.SetCursorPosY(instance.scenetreeSize)
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
intodae = true
daeHeight = im.GetWindowHeight() - 86 - 42
-- local reg = im.GetContentRegionAvail()
-- lo('?? dae_in:'..tostring(reg)..':'..im.GetWindowHeight())
if not intodae then
else
daeHeight = im.GetWindowHeight() - 86 - 42
end
end
lo('?? dae_in:'..cdaeHeight..':'..tostring(intodae)..':'..tostring(cpreview)..':'..tostring(#amesh)..':'..tostring(cobj)..':'..im.GetWindowHeight()..':'..tostring(cobj))
if #amesh~=0 or not intodae then return end
if U._PRD == 0 then
cdaeHeight = im.GetWindowHeight() - 86 - 42
end
@/lua/ge/extensions/editor/assetBrowser.lua
-- Asset is within viewable area.
if im.GetCursorPosY() < (im.GetScrollY() + im.GetWindowHeight()) and im.GetCursorPosY() then
return true
@/lua/ge/extensions/editor/flowgraph/search.lua
if self.arrowPressed then
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
if arrowPressed then
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
if arrowPressed then
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetWindowWidth() return imgui.GetWindowWidth() end
function M.GetWindowHeight() return imgui.GetWindowHeight() end
function M.GetWindowViewport() return imgui.GetWindowViewport() end
function M.GetWindowWidth() return imgui.GetWindowWidth() end
function M.GetWindowHeight() return imgui.GetWindowHeight() end
function M.GetWindowViewport() return imgui.GetWindowViewport() end
@/lua/ge/extensions/editor/flowgraph/examples.lua
if self.arrowPressed then
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end