MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / radioButtonOrFixedValue

Function radioButtonOrFixedValue

source/MRViewer/MRUIStyle.cpp:1107–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107bool radioButtonOrFixedValue( const char* label, int* value, int valButton, std::optional<int> valueOverride )
1108{
1109 if ( !valueOverride )
1110 return radioButton( label, value, valButton );
1111
1112 StyleParamHolder sh;
1113 const auto disColor = ImGui::GetStyleColorVec4( ImGuiCol_TextDisabled );
1114 sh.addColor( ImGuiCol_Text, Color( disColor.x, disColor.y, disColor.z, disColor.w ) );
1115
1116 ImGui::PushItemFlag( ImGuiItemFlags_Disabled, true );
1117 radioButton( label, &*valueOverride, valButton );
1118 ImGui::PopItemFlag();
1119 return false;
1120}
1121
1122bool radioButtonOrModifier( const char* label, RadioButtonOrModifierState& value, int valButton, int modifiers, int respectedModifiers, std::optional<int> valueOverride )
1123{

Callers 1

radioButtonOrModifierFunction · 0.85

Calls 3

radioButtonFunction · 0.85
ColorClass · 0.85
addColorMethod · 0.80

Tested by

no test coverage detected