Miscellaneous Utilities
Those marked with [O] are optional
-- ImGui.IsRectVisible(...)
-- Parameters A: float (size_x), float (size_y)
-- Parameters B: float(min_x), float (min_y), float (max_x), float (max_y)
-- Returns: bool (visible)
-- Overloads
visible = ImGui.IsRectVisible(100, 100)
visible = ImGui.IsRectVisible(50, 50, 200, 200)
-- ImGui.GetTime()
-- Returns double (time)
time = ImGui.GetTime()
-- ImGui.GetBackgroundDrawList()
local drawlist = ImGui.GetBackgroundDrawList()
-- ImGui.GetForegroundDrawList()
local drawlist = ImGui.GetForegroundDrawList()
-- ImGui.GetFrameCount()
-- Returns int (frame_count)
frame_count = ImGui.GetFrameCount()
-- ImGui.GetStyleColorName(...)
-- Parameters: ImGuiCol (idx)
-- Returns: text (style_color_name)
style_color_name = ImGui.GetStyleColorName(ImGuiCol.Text)
-- DEPRECATED (use BeginChild() with ImGuiChildFlags.FrameStyle!)
-- ImGui.BeginChildFrame(...)
-- Parameters: unsigned int (id), float (size_x), float (size_y), ImGuiWindowFlags (flags) [O]
-- Returns: bool (open)
-- Overloads
open = ImGui.BeginChildFrame(0, 100, 100)
open = ImGui.BeginChildFrame(0, 100, 100, ImGuiWindowFlags.NoBackground)
-- ImGui.EndChildFrame()
ImGui.EndChildFrame()Last updated
