MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / drawCylinderRule

Function drawCylinderRule

src/gui2/summaryview.cc:121–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121static void drawCylinderRule(unsigned min, unsigned max)
122{
123 ImGui::TableNextRow();
124 ImGui::TableNextColumn();
125 for (int cylinder = min; cylinder <= max; cylinder++)
126 {
127 ImGui::TableNextColumn();
128
129 auto text = fmt::format("c{}", cylinder);
130 ImGui::SetCursorPosX(ImGui::GetCursorPosX() +
131 ImGui::GetColumnWidth() / 2 -
132 ImGui::CalcTextSize(text.c_str()).x / 2);
133 ImGui::Text("%s", text.c_str());
134 }
135}
136
137static void drawPhysicalMap(unsigned minPhysicalCylinder,
138 unsigned maxPhysicalCylinder,

Callers 2

drawPhysicalMapFunction · 0.85
drawLogicalMapFunction · 0.85

Calls 1

TextFunction · 0.85

Tested by

no test coverage detected