Window Utilities
those marked with [O] are optional
-- ImGui.IsWindowAppearing()
-- Returns: bool (appearing)
appearing = ImGui.IsWindowAppearing()
-- ImGui.IsWindowCollapsed()
-- Returns: bool (collapsed)
collapsed = ImGui.IsWindowCollapsed()
-- ImGui.IsWindowFocused(...)
-- Parameters: ImGuiFocusedFlags (flags) [O]
-- Returns: bool (focused)
-- Overloads
focused = ImGui.IsWindowFocused()
focused = ImGui.IsWindowFocused(ImGuiFocusedFlags.ChildWindows)
-- ImGui.IsWindowHovered(...)
-- Parameters: ImGuiHoveredFlags (flags) [O]
-- Returns: bool (hovered)
-- Overloads
hovered = ImGui.IswindowHovered()
hovered = ImGui.IsWindowHovered(ImGuiHoveredFlags.ChildWindows)
-- ImGui.GetWindowDrawList()
local drawlist = ImGui.GetWindowDrawList()
-- ImGui.GetWindowDpiScale()
-- Returns: float (dpiScale)
dpiScale = ImGui.GetWindowDpiScale()
-- ImGui.GetWindowPos()
-- Returns: float (pos_x), float (pos_y)
pos_x, pos_y = ImGui.GetWindowPos()
-- ImGui.GetWindowSize()
-- Returns: float (size_x), float (size_y)
size_x, size_y = ImGui.GetWindowSize()
-- ImGui.GetDisplaySize()
-- Returns: float (size_x), float (size_y)
size_x, size_y = ImGui.GetDisplaySize()
-- ImGui.GetWindowWidth()
-- Returns: float (width)
width = ImGui.GetWindowWidth()
-- ImGui.GetWindowHeight()
-- Returns: float (height)
height = ImGui.GetWindowHeight()
-- ImGui.SetNextWindowPos(...)
-- Parameters: float (pos_x), float (pos_y), ImGuiCond (cond) [O], float (pivot_x) [O], float (pivot_y) [O]
-- Overloads
ImGui.SetNextWindowPos(100, 100)
ImGui.SetNextWindowPos(100, 100, ImGuiCond.Always)
ImGui.SetNextWindowPos(100, 100, ImGuiCond.Always, 0, 0.5)
-- ImGui.SetNextWindowSize(...)
-- Parameters: float (size_x), float (size_y), ImGuiCond (cond) [O]
-- Overloads
ImGui.SetNextWindowSize(500, 500)
ImGui.SetNextWindowSize(500, 500, ImGuiCond.Appearing)
-- ImGui.SetNextWindowSizeConstraints(...)
-- Parameters: float (min_x), float (min_y), float (max_x), float (max_y)
ImGui.SetNextWindowSizeConstraints(100, 100, 500, 600)
-- ImGui.SetNextWindowContentSize(...)
-- Parameters: float (size_x), float (size_y)
ImGui.SetNextWindowContentSize(200, 100)
-- ImGui.SetNextWindowCollapsed(...)
-- Parameters: bool (collapsed), ImGuiCond (cond) [O]
-- Overloads
ImGui.SetNextWindowCollapsed(true)
ImGui.SetNextWindowCollapsed(true, ImGuiCond.Appearing)
-- ImGui.SetNextWindowFocus()
ImGui.SetNextWindowFocus()
-- ImGui.SetNextWindowBgAlpha(...)
-- Parameters: float (alpha)
ImGui.SetNextWindowBgAlpha(0.5)
-- ImGui.SetWindowPos(...)
-- Parameters: float (pos_x), float (pos_y), ImguiCond (cond) [O]
-- Overloads
ImGui.SetWindowPos(100, 100)
ImGui.SetWindowPos(100, 100, ImGuiCond.Appearing)
-- ImGui.SetWindowSize(...)
-- Parameters: float (size_x), float (size_y), ImguiCond (cond) [O]
-- Overloads
ImGui.SetWindowSize(100, 300)
ImGui.SetWindowSize(100, 300, ImGuiCond.Appearing)
-- ImGui.SetWindowCollapsed(...)
-- Parameters: bool (collapsed), ImguiCond (cond) [O]
-- Overloads
ImGui.SetWindowCollapsed(false)
ImGui.SetWindowCollapsed(true, ImGuiCond.Appearing)
-- ImGui.SetWindowFocus()
ImGui.SetWindowFocus()
-- ImGui.SetWindowFontScale(...)
-- Parameters: float (scale)
ImGui.SetWindowFontScale(1.2)
-- ImGui.SetWindowPos(...)
-- Parameters: text (name), float (pos_x), float (pos_y), ImGuiCond (cond) [O]
-- Overloads
ImGui.SetWindowPos("WindowName", 100, 100)
ImGui.SetWindowPos("WindowName", 100, 100, ImGuiCond.Always)
-- ImGui.SetWindowSize(...)
-- Parameters: text (name), float (size_x), float (size_y), ImGuiCond (cond) [O]
-- Overloads
ImGui.SetWindowSize("WindowName", 300, 400)
ImGui.SetWindowSize("WindowName", 300, 400, ImGuiCond.Always)
-- ImGui.SetWindowCollapsed(...)
-- Parameters: text (name), bool (collapsed), ImGuiCond (cond) [O]
-- Overloads
ImGui.SetWindowCollapsed("WindowName", true)
ImGui.SetWindowCollapsed("WindowName", false, ImGuiCond.Always)
-- ImGui.SetWindowFocus(...)
-- Parameters: text (name)
ImGui.SetWindowFocus("WindowName")Last updated
