Demo: add an option to enable ImGuiSliderFlags_ColorMarkers in Multi-Components section + fixed warnings.

This commit is contained in:
ocornut
2026-03-09 18:01:37 +01:00
parent 512982d0d2
commit 5dd56d4bb5
2 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -2685,7 +2685,7 @@ static bool TempInputIsClampEnabled(ImGuiSliderFlags flags, ImGuiDataType data_t
return ImGui::DataTypeIsZero(data_type, p_min) ? ((flags & ImGuiSliderFlags_ClampZeroRange) != 0) : true;
}
return false;
};
}
// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional.
// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly.