src/lua-bindings/wrap_imgui_codegen.cpp
/*  display a color square/button, hover for details, return true when pressed. */
display a color square/button, hover for details, return true when pressed.
display a color square / button hover for details return true when pressed .
int w_ColorButton(lua_State *L)
{
	auto desc_id = luaL_checkstring(L, 1);
	ImVec4 col;
	col.x = luax_checkfloat(L, 2);
	col.y = luax_checkfloat(L, 3);
	col.z = luax_checkfloat(L, 4);
	col.w = luax_checkfloat(L, 5);
	auto flags = luax_optflags<ImGuiColorEditFlags>(getImGuiColorEditFlagsFromString, L, 6, 0);
	auto size = ImVec2(0, 0);
	size.x = luax_optfloat(L, 7, size.x);
	size.y = luax_optfloat(L, 8, size.y);
	bool out = ImGui::ColorButton(desc_id, col, flags, size);
	lua_pushboolean(L, out);
	return 1;
}
int w_ColorButton ( lua_State * L ) { auto desc_id = luaL_checkstring ( L , 1 ) ; ImVec4 col ; col . x = luax_checkfloat ( L , 2 ) ; col . y = luax_checkfloat ( L , 3 ) ; col . z = luax_checkfloat ( L , 4 ) ; col . w = luax_checkfloat ( L , 5 ) ; auto flags = luax_optflags < ImGuiColorEditFlags > ( getImGuiColorEditFlagsFromString , L , 6 , 0 ) ; auto size = ImVec2 ( 0 , 0 ) ; size . x = luax_optfloat ( L , 7 , size . x ) ; size . y = luax_optfloat ( L , 8 , size . y ) ; bool out = ImGui :: ColorButton ( desc_id , col , flags , size ) ; lua_pushboolean ( L , out ) ; return 1 ; }
display a color square/button, hover for details, return true when pressed.
display a color square / button hover for details return true when pressed .