| 13 | #include <float.h> // FLT_MIN, FLT_MAX |
| 14 | |
| 15 | SKR_RUNTIME_EXTERN_C SKR_LUA_API void skr_lua_bind_imgui(lua_State* L) |
| 16 | { |
| 17 | lua_getglobal(L, "skr"); |
| 18 | lua_newtable(L); |
| 19 | |
| 20 | // bind enums |
| 21 | lua_pushinteger(L, ImGuiWindowFlags_None); |
| 22 | lua_setfield(L, -2, "WindowFlags_None"); |
| 23 | lua_pushinteger(L, ImGuiWindowFlags_NoTitleBar); |
| 24 | lua_setfield(L, -2, "WindowFlags_NoTitleBar"); |
| 25 | lua_pushinteger(L, ImGuiWindowFlags_NoResize); |
| 26 | lua_setfield(L, -2, "WindowFlags_NoResize"); |
| 27 | lua_pushinteger(L, ImGuiWindowFlags_NoMove); |
| 28 | lua_setfield(L, -2, "WindowFlags_NoMove"); |
| 29 | lua_pushinteger(L, ImGuiWindowFlags_NoScrollbar); |
| 30 | lua_setfield(L, -2, "WindowFlags_NoScrollbar"); |
| 31 | lua_pushinteger(L, ImGuiWindowFlags_NoScrollWithMouse); |
| 32 | lua_setfield(L, -2, "WindowFlags_NoScrollWithMouse"); |
| 33 | lua_pushinteger(L, ImGuiWindowFlags_NoCollapse); |
| 34 | lua_setfield(L, -2, "WindowFlags_NoCollapse"); |
| 35 | lua_pushinteger(L, ImGuiWindowFlags_AlwaysAutoResize); |
| 36 | lua_setfield(L, -2, "WindowFlags_AlwaysAutoResize"); |
| 37 | lua_pushinteger(L, ImGuiWindowFlags_NoBackground); |
| 38 | lua_setfield(L, -2, "WindowFlags_NoBackground"); |
| 39 | lua_pushinteger(L, ImGuiWindowFlags_NoSavedSettings); |
| 40 | lua_setfield(L, -2, "WindowFlags_NoSavedSettings"); |
| 41 | lua_pushinteger(L, ImGuiWindowFlags_NoMouseInputs); |
| 42 | lua_setfield(L, -2, "WindowFlags_NoMouseInputs"); |
| 43 | lua_pushinteger(L, ImGuiWindowFlags_MenuBar); |
| 44 | lua_setfield(L, -2, "WindowFlags_MenuBar"); |
| 45 | lua_pushinteger(L, ImGuiWindowFlags_HorizontalScrollbar); |
| 46 | lua_setfield(L, -2, "WindowFlags_HorizontalScrollbar"); |
| 47 | lua_pushinteger(L, ImGuiWindowFlags_NoFocusOnAppearing); |
| 48 | lua_setfield(L, -2, "WindowFlags_NoFocusOnAppearing"); |
| 49 | lua_pushinteger(L, ImGuiWindowFlags_NoBringToFrontOnFocus); |
| 50 | lua_setfield(L, -2, "WindowFlags_NoBringToFrontOnFocus"); |
| 51 | lua_pushinteger(L, ImGuiWindowFlags_AlwaysVerticalScrollbar); |
| 52 | lua_setfield(L, -2, "WindowFlags_AlwaysVerticalScrollbar"); |
| 53 | lua_pushinteger(L, ImGuiWindowFlags_AlwaysHorizontalScrollbar); |
| 54 | lua_setfield(L, -2, "WindowFlags_AlwaysHorizontalScrollbar"); |
| 55 | lua_pushinteger(L, ImGuiWindowFlags_AlwaysUseWindowPadding); |
| 56 | lua_setfield(L, -2, "WindowFlags_AlwaysUseWindowPadding"); |
| 57 | lua_pushinteger(L, ImGuiWindowFlags_NoNavInputs); |
| 58 | lua_setfield(L, -2, "WindowFlags_NoNavInputs"); |
| 59 | lua_pushinteger(L, ImGuiWindowFlags_NoNavFocus); |
| 60 | lua_setfield(L, -2, "WindowFlags_NoNavFocus"); |
| 61 | lua_pushinteger(L, ImGuiWindowFlags_UnsavedDocument); |
| 62 | lua_setfield(L, -2, "WindowFlags_UnsavedDocument"); |
| 63 | lua_pushinteger(L, ImGuiWindowFlags_NoDocking); |
| 64 | lua_setfield(L, -2, "WindowFlags_NoDocking"); |
| 65 | lua_pushinteger(L, ImGuiWindowFlags_NoNav); |
| 66 | lua_setfield(L, -2, "WindowFlags_NoNav"); |
| 67 | lua_pushinteger(L, ImGuiWindowFlags_NoDecoration); |
| 68 | lua_setfield(L, -2, "WindowFlags_NoDecoration"); |
| 69 | lua_pushinteger(L, ImGuiWindowFlags_NoInputs); |
| 70 | lua_setfield(L, -2, "WindowFlags_NoInputs"); |
| 71 | lua_pushinteger(L, ImGuiWindowFlags_NavFlattened); |
| 72 | lua_setfield(L, -2, "WindowFlags_NavFlattened"); |
no test coverage detected