RichTextPainter

class RichTextPainter

Public Types

  • enum CustomRichTextFlags

    Values:

    • enumerator FlagNone

    • enumerator FlagColor

    • enumerator FlagBackground

    • enumerator FlagAll

  • typedef std::vector<CustomRichText_t> List

Public Static Functions

  • template<typename T = qreal>
    static void paintRichText(QPainter *painter, T x, T y, T w, T h, T xinc, const List &richText, CachedFontMetrics<T> *fontMetrics)

  • static void htmlRichText(const List &richText, QString &textHtml, QString &textPlain)

    RichTextPainter::htmlRichText Convert rich text in x64dbg to HTML, for use by other applications.

    • Parameters

      • richText – The rich text to be converted to HTML format

      • textHtml – The HTML source. Any previous content will be preserved and new content will be appended at the end.

      • textPlain – The plain text. Any previous content will be preserved and new content will be appended at the end.

  • static List fromTextDocument(const QTextDocument &doc)

  • static List cropped(const List &richText, int maxCols, const QString &indicator = nullptr, bool *croppedOut = nullptr)

  • struct CustomRichText_t

    Public Members

    • QString text

    • QColor textColor

    • QColor textBackground

    • CustomRichTextFlags flags

    • bool highlight = false

    • QColor highlightColor

    • int highlightWidth = 2

    • bool highlightConnectPrev = false