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

Method clip

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

* @brief Sets the current path as the clipping region. */

Source from the content-addressed store, hash-verified

1207 * @brief Sets the current path as the clipping region.
1208 */
1209void Widgets::PainterContext::clip()
1210{
1211 if (!active())
1212 return;
1213
1214 m_painter->setClipPath(m_path, Qt::IntersectClip);
1215}
1216
1217/**
1218 * @brief Returns true if the point lies inside the current path (non-zero winding).

Callers 10

paintFunction · 0.80
IeFunction · 0.80
GnFunction · 0.80
drawMethod · 0.80
faFunction · 0.80
gaFunction · 0.80
maFunction · 0.80
generate_chirp_wavFunction · 0.80
decode_input_to_floatFunction · 0.80
float_to_int16Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected