src/lua-bindings/wrap_imgui_codegen.cpp
/*  <0 frame_padding uses default frame padding settings. 0 for no padding */
<0 frame_padding uses default frame padding settings. 0 for no padding
<0 frame_padding uses default frame padding settings . 0 for no padding
int w_ImageButton(lua_State *L)
{
	auto user_texture_id = luax_checkTextureID(L, 1);
	ImVec2 size;
	size.x = luax_checkfloat(L, 2);
	size.y = luax_checkfloat(L, 3);
	auto uv0 = ImVec2(0, 0);
	uv0.x = luax_optfloat(L, 4, uv0.x);
	uv0.y = luax_optfloat(L, 5, uv0.y);
	auto uv1 = ImVec2(1,1);
	uv1.x = luax_optfloat(L, 6, uv1.x);
	uv1.y = luax_optfloat(L, 7, uv1.y);
	auto frame_padding = luaL_optint(L, 8, -1);
	ImVec4 bg_col = ImVec4(0,0,0,0);
	bg_col.x = luax_optfloat(L, 9, bg_col.x);
	bg_col.y = luax_optfloat(L, 10, bg_col.y);
	bg_col.z = luax_optfloat(L, 11, bg_col.z);
	bg_col.w = luax_optfloat(L, 12, bg_col.w);
	ImVec4 tint_col = ImVec4(1,1,1,1);
	tint_col.x = luax_optfloat(L, 13, tint_col.x);
	tint_col.y = luax_optfloat(L, 14, tint_col.y);
	tint_col.z = luax_optfloat(L, 15, tint_col.z);
	tint_col.w = luax_optfloat(L, 16, tint_col.w);
	bool out = ImGui::ImageButton(user_texture_id, size, uv0, uv1, frame_padding, bg_col, tint_col);
	lua_pushboolean(L, out);
	return 1;
}
int w_ImageButton ( lua_State * L ) { auto user_texture_id = luax_checkTextureID ( L , 1 ) ; ImVec2 size ; size . x = luax_checkfloat ( L , 2 ) ; size . y = luax_checkfloat ( L , 3 ) ; auto uv0 = ImVec2 ( 0 , 0 ) ; uv0 . x = luax_optfloat ( L , 4 , uv0 . x ) ; uv0 . y = luax_optfloat ( L , 5 , uv0 . y ) ; auto uv1 = ImVec2 ( 1 , 1 ) ; uv1 . x = luax_optfloat ( L , 6 , uv1 . x ) ; uv1 . y = luax_optfloat ( L , 7 , uv1 . y ) ; auto frame_padding = luaL_optint ( L , 8 , -1 ) ; ImVec4 bg_col = ImVec4 ( 0 , 0 , 0 , 0 ) ; bg_col . x = luax_optfloat ( L , 9 , bg_col . x ) ; bg_col . y = luax_optfloat ( L , 10 , bg_col . y ) ; bg_col . z = luax_optfloat ( L , 11 , bg_col . z ) ; bg_col . w = luax_optfloat ( L , 12 , bg_col . w ) ; ImVec4 tint_col = ImVec4 ( 1 , 1 , 1 , 1 ) ; tint_col . x = luax_optfloat ( L , 13 , tint_col . x ) ; tint_col . y = luax_optfloat ( L , 14 , tint_col . y ) ; tint_col . z = luax_optfloat ( L , 15 , tint_col . z ) ; tint_col . w = luax_optfloat ( L , 16 , tint_col . w ) ; bool out = ImGui :: ImageButton ( user_texture_id , size , uv0 , uv1 , frame_padding , bg_col , tint_col ) ; lua_pushboolean ( L , out ) ; return 1 ; }
<0 frame_padding uses default frame padding settings.
<0 frame_padding uses default frame padding settings .