MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / optionCheckbox

Function optionCheckbox

TheForceEngine/TFE_Editor/editor.cpp:235–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 void optionCheckbox(const char* name, u32* flags, u32 flagValue, s32 width)
236 {
237 ImGui::SetNextItemWidth(width ? width : ImGui::CalcTextSize(name).x + 16);
238 ImGui::LabelText("##Label", "%s", name); ImGui::SameLine();
239 ImGui::CheckboxFlags(editor_getUniqueLabel(""), flags, flagValue);
240 }
241
242 void optionSliderEditFloat(const char* name, const char* precision, f32* value, f32 minValue, f32 maxValue, f32 step)
243 {

Callers 4

interfacePrefFunction · 0.85
editingPrefFunction · 0.85
inputPrefFunction · 0.85
infoPanelGuidelineFunction · 0.85

Calls 1

editor_getUniqueLabelFunction · 0.85

Tested by

no test coverage detected