Skip to main content

引数

ImGuiWindow
必須
ImGuiWindow object returned by imgui.create. A destroyed or invalid window raises a Lua error.
string
必須
Color editor label string passed to the rendered ImGui ColorEdit4 widget.
number
Initial red component read with luaL_optnumber; defaults to 1.0 when omitted or nil.
number
Initial green component read with luaL_optnumber; defaults to 1.0 when omitted or nil.
number
Initial blue component read with luaL_optnumber; defaults to 1.0 when omitted or nil.
number
Initial alpha component read with luaL_optnumber; defaults to 1.0 when omitted or nil.
function
必須
Function stored for this color editor and invoked with red, green, blue, and alpha after a change event is processed. It must be supplied as argument 7.

戻り値

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

型

ImGuiWindow

imgui.create によって返されるハンドル。コントロール構築メソッドは同じハンドルを返すため、呼び出しを連鎖させることができます。