Skip to main content

Arguments

ImGuiWindow
required
ImGuiWindow object returned by imgui.create. A destroyed or invalid window raises a Lua error.
string
required
Button label string passed to the rendered ImGui button.
function
required
Function stored for this button and invoked without arguments after a click event is processed.

Returns

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

Types

ImGuiWindow

Handle returned by imgui.create. Control-building methods return the same handle so calls can be chained.