src/wren-bindings/wrap_imgui_codegen.cpp
/*  adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. */
adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display.
adjust format to decorate the value with a prefix or a suffix for in - slider labels or unit display .
void w_SliderFloat(WrenVM *vm)
{
	auto label = wrenExGetSlot<const char*>(vm, 1);
	auto v_box = static_cast<float>(Box::getCPP<double>(vm, 2));
	float* v = &v_box;
	auto v_min = wrenExGetSlot<float>(vm, 3);
	auto v_max = wrenExGetSlot<float>(vm, 4);
	auto format = wrenExIsSlotDefault(vm, 5) ? "%.3f" : wrenExGetSlot<const char*>(vm, 5);
	auto flags = wrenExIsSlotDefault(vm, 6) ? 0 : wrenExGetSlotFlags<ImGuiSliderFlags>(getImGuiSliderFlagsFromString, vm, 6);
	bool out = ImGui::SliderFloat(label, v, v_min, v_max, format, flags);
	wrenSetSlotBool(vm, 0, out);
	Box::setCPP<double>(vm, 2, *v);
}
void w_SliderFloat ( WrenVM * vm ) { auto label = wrenExGetSlot < const char * > ( vm , 1 ) ; auto v_box = static_cast < float > ( Box :: getCPP < double > ( vm , 2 ) ) ; float * v = & v_box ; auto v_min = wrenExGetSlot < float > ( vm , 3 ) ; auto v_max = wrenExGetSlot < float > ( vm , 4 ) ; auto format = wrenExIsSlotDefault ( vm , 5 ) ? " " : wrenExGetSlot < const char * > ( vm , 5 ) ; auto flags = wrenExIsSlotDefault ( vm , 6 ) ? 0 : wrenExGetSlotFlags < ImGuiSliderFlags > ( getImGuiSliderFlagsFromString , vm , 6 ) ; bool out = ImGui :: SliderFloat ( label , v , v_min , v_max , format , flags ) ; wrenSetSlotBool ( vm , 0 , out ) ; Box :: setCPP < double > ( vm , 2 , * v ) ; }
adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display.
adjust format to decorate the value with a prefix or a suffix for in - slider labels or unit display .