Function highlightedText

Function Documentation

void highlightedText(const std::string &text, std::size_t start, std::size_t end, const ImVec4 &highlightColor)

Utility imgui function for partly highlighted text.

Parameters:
  • text – String which should be displayed.

  • start – Starting index of the highlighted part.

  • end – End index of the highlighted part.

  • highlightColor – Color used for the highlighted part, the remaining text is displayed using the default text color.