src/wren-bindings/wrap_imgui_codegen.cpp
/*  create a Tab. Returns true if the Tab is selected. */
create a Tab. Returns true if the Tab is selected.
create a Tab . Returns true if the Tab is selected .
void w_BeginTabItem(WrenVM *vm)
{
	auto label = 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<ImGuiTabItemFlags>(getImGuiTabItemFlagsFromString, vm, 3);
	bool out = ImGui::BeginTabItem(label, p_open, flags);
	wrenSetSlotBool(vm, 0, out);
	if(p_open) { Box::setCPP<bool>(vm, 2, *p_open); }
}
void w_BeginTabItem ( WrenVM * vm ) { auto label = 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 < ImGuiTabItemFlags > ( getImGuiTabItemFlagsFromString , vm , 3 ) ; bool out = ImGui :: BeginTabItem ( label , p_open , flags ) ; wrenSetSlotBool ( vm , 0 , out ) ; if ( p_open ) { Box :: setCPP < bool > ( vm , 2 , * p_open ) ; } }
create a Tab.
create a Tab .