Skip to main content

Đối số

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

Giá trị trả về

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

Kiểu

ImGuiWindow

Xử lý được trả về bởi imgui.create. Các phương pháp xây dựng điều khiển trả về cùng một thẻ điều khiển để các cuộc gọi có thể được xâu chuỗi.