MCPcopy Create free account
hub / github.com/chrxh/alien / processSelectionRect

Method processSelectionRect

source/Gui/SimulationInteractionController.cpp:425–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void SimulationInteractionController::processSelectionRect()
426{
427 if (_selectionRect) {
428 ImDrawList* draw_list = ImGui::GetBackgroundDrawList();
429 auto startPos = _selectionRect->topLeft;
430 auto endPos = _selectionRect->bottomRight;
431 draw_list->AddRectFilled({startPos.x, startPos.y}, {endPos.x, endPos.y}, Const::SelectionAreaFillColor);
432 draw_list->AddRect({startPos.x, startPos.y}, {endPos.x, endPos.y}, Const::SelectionAreaBorderColor, 0, 0, 1.0f);
433 }
434}
435
436float SimulationInteractionController::calcZoomFactor(std::chrono::steady_clock::time_point const& lastTimepoint)
437{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected