sonoro1234 / LuaJIT-ImGui

LuaJIT ffi binding for imgui, backends and extension widgets
MIT License
213 stars 29 forks source link

Constructors #10

Closed THE-FYP closed 5 years ago

THE-FYP commented 5 years ago

Support of overloaded and parameterized constructors.

The default (__new) constructor is choosen to be that has the same value of cimguiname and ov_cimguiname parameters. The overloaded constructors are static struct member functions and called like so:

local obj = imgui.ImColor.ImColorU32(u32color)
local obj = imgui.TextRange.TextRangeStr(pstart, pend)
sonoro1234 commented 5 years ago

Thankyou!!