src/wren-bindings/wrap_imgui_codegen.cpp
/*  return true if the modal is open, and you can start outputting to it. */
return true if the modal is open, and you can start outputting to it.
return true if the modal is open and you can start outputting to it .
void w_BeginPopupModal(WrenVM *vm)
{
	auto name = wrenExGetSlot<const char*>(vm, 1);
	bool* p_open = NULL;
	bool p_open_box;
	if(!wrenExIsSlotDefault(vm, 2)) {
		p_open_box = Box::getCPP<bool>(vm, 2);
		p_open = &p_open_box;
	}
	auto flags = wrenExIsSlotDefault(vm, 3) ? 0 : wrenExGetSlotFlags<ImGuiWindowFlags>(getImGuiWindowFlagsFromString, vm, 3);
	bool out = ImGui::BeginPopupModal(name, p_open, flags);
	wrenSetSlotBool(vm, 0, out);
	if(p_open) { Box::setCPP<bool>(vm, 2, *p_open); }
}
void w_BeginPopupModal ( WrenVM * vm ) { auto name = wrenExGetSlot < const char * > ( vm , 1 ) ; bool * p_open = NULL ; bool p_open_box ; if ( ! wrenExIsSlotDefault ( vm , 2 ) ) { p_open_box = Box :: getCPP < bool > ( vm , 2 ) ; p_open = & p_open_box ; } auto flags = wrenExIsSlotDefault ( vm , 3 ) ? 0 : wrenExGetSlotFlags < ImGuiWindowFlags > ( getImGuiWindowFlagsFromString , vm , 3 ) ; bool out = ImGui :: BeginPopupModal ( name , p_open , flags ) ; wrenSetSlotBool ( vm , 0 , out ) ; if ( p_open ) { Box :: setCPP < bool > ( vm , 2 , * p_open ) ; } }
return true if the modal is open, and you can start outputting to it.
return true if the modal is open and you can start outputting to it .