20#ifndef LIBREPCB_CORE_OVERLINEMARKUPPARSER_H
21#define LIBREPCB_CORE_OVERLINEMARKUPPARSER_H
64 static QVector<std::pair<int, int>>
extract(
const QString& input,
65 QString& output)
noexcept;
66 static QVector<QLineF>
calculate(
const QString& text,
const QFontMetricsF& fm,
68 const QVector<std::pair<int, int>>& spans,
69 QRectF& boundingRect)
noexcept;
70 static void process(
const QString& input,
const QFontMetricsF& fm,
int flags,
71 QString& output, QVector<QLineF>& overlines,
72 QRectF& boundingRect)
noexcept;
Extract overlines of text with markup.
Definition: overlinemarkupparser.h:55
static qreal getLineWidth(qreal heightPx) noexcept
Definition: overlinemarkupparser.cpp:120
static void process(const QString &input, const QFontMetricsF &fm, int flags, QString &output, QVector< QLineF > &overlines, QRectF &boundingRect) noexcept
Definition: overlinemarkupparser.cpp:112
static QVector< QLineF > calculate(const QString &text, const QFontMetricsF &fm, int flags, const QVector< std::pair< int, int > > &spans, QRectF &boundingRect) noexcept
Definition: overlinemarkupparser.cpp:92
static QVector< std::pair< int, int > > extract(const QString &input, QString &output) noexcept
Definition: overlinemarkupparser.cpp:36
OverlineMarkupParser & operator=(const OverlineMarkupParser &rhs)=delete
OverlineMarkupParser()=delete
OverlineMarkupParser(const OverlineMarkupParser &other)=delete
Definition: occmodel.cpp:77