static void fillRectangle(Scintilla::PRectangle _rc, Scintilla::ColourDesired _color) { const uint32_t abgr = (uint32_t)_color.AsLong(); ImVec2 pos = ImGui::GetCursorScreenPos(); ImDrawList* drawList = ImGui::GetWindowDrawList(); drawList->AddDrawCmd(); drawList->AddRectFilled( ImVec2(_rc.left + pos.x, _rc.top + pos.y) , ImVec2(_rc.right + pos.x, _rc.bottom + pos.y) , abgr ); }