Skip to main content

参数

ImGuiWindow
必填
ImGuiWindow object returned by imgui.create. A destroyed or invalid window raises a Lua error.
string
必填
Checkbox label string passed to the rendered ImGui checkbox.
any
必填
Initial checked value. nil and false are treated as false; other values are treated as true.
function
必填
Function stored for this checkbox and invoked with the new boolean state after a change event is processed.

返回值

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

类型

ImGuiWindow

imgui.create 返回的句柄。控制构建方法返回相同的句柄,因此可以链接调用。