MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / stroke

Method stroke

app/src/UI/Widgets/PainterContext.cpp:1190–1204  ·  view source on GitHub ↗

* @brief Strokes the current path with the active stroke style. */

Source from the content-addressed store, hash-verified

1188 * @brief Strokes the current path with the active stroke style.
1189 */
1190void Widgets::PainterContext::stroke()
1191{
1192 if (!active())
1193 return;
1194
1195 if (shadowActive()) {
1196 QPainterPath path = m_path;
1197 QPen pen = m_state.strokePen;
1198 renderWithShadow(
1199 [path, pen](QPainter* p) { p->strokePath(path, pen); },
1200 path.boundingRect().adjusted(-pen.widthF(), -pen.widthF(), pen.widthF(), pen.widthF()));
1201 }
1202
1203 m_painter->strokePath(m_path, m_state.strokePen);
1204}
1205
1206/**
1207 * @brief Sets the current path as the clipping region.

Callers 15

drawLineFunction · 0.80
drawMinorFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
trace_pathFunction · 0.80
paintFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected