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

Method fill

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

* @brief Fills the current path with the active fill style. */

Source from the content-addressed store, hash-verified

1171 * @brief Fills the current path with the active fill style.
1172 */
1173void Widgets::PainterContext::fill()
1174{
1175 if (!active())
1176 return;
1177
1178 if (shadowActive()) {
1179 QPainterPath path = m_path;
1180 QBrush brush = m_state.fillBrush;
1181 renderWithShadow([path, brush](QPainter* p) { p->fillPath(path, brush); }, path.boundingRect());
1182 }
1183
1184 m_painter->fillPath(m_path, m_state.fillBrush);
1185}
1186
1187/**
1188 * @brief Strokes the current path with the active stroke style.

Callers 15

~ZeroOnDestroyMethod · 0.45
generateShadowCornerFunction · 0.45
buildShadowAtlasFunction · 0.45
requestImageMethod · 0.45
renderColorizedSvgMethod · 0.45
configureGpsSeriesMethod · 0.45
renderFallbackTileMethod · 0.45
renderFrameMethod · 0.45
processTextMethod · 0.45
clearHistoryMethod · 0.45
rebuildHistoryImageMethod · 0.45
renderAxisLayerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected