src/wren-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 .
void w_ColorButton(WrenVM *vm)
{
	auto desc_id = wrenExGetSlot<const char*>(vm, 1);
	auto col = WrapImVec4::getSlot(vm, 2);
	auto flags = wrenExIsSlotDefault(vm, 3) ? 0 : wrenExGetSlotFlags<ImGuiColorEditFlags>(getImGuiColorEditFlagsFromString, vm, 3);
	auto size = wrenExIsSlotDefault(vm, 4) ? ImVec2(0, 0) : WrapImVec2::getSlot(vm, 4);
	bool out = ImGui::ColorButton(desc_id, col, flags, size);
	wrenSetSlotBool(vm, 0, out);
}
void w_ColorButton ( WrenVM * vm ) { auto desc_id = wrenExGetSlot < const char * > ( vm , 1 ) ; auto col = WrapImVec4 :: getSlot ( vm , 2 ) ; auto flags = wrenExIsSlotDefault ( vm , 3 ) ? 0 : wrenExGetSlotFlags < ImGuiColorEditFlags > ( getImGuiColorEditFlagsFromString , vm , 3 ) ; auto size = wrenExIsSlotDefault ( vm , 4 ) ? ImVec2 ( 0 , 0 ) : WrapImVec2 :: getSlot ( vm , 4 ) ; bool out = ImGui :: ColorButton ( desc_id , col , flags , size ) ; wrenSetSlotBool ( vm , 0 , out ) ; }
display a color square/button, hover for details, return true when pressed.
display a color square / button hover for details return true when pressed .