MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / pt_in_rect

Method pt_in_rect

DSView/pv/view/trace.cpp:315–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315int Trace::pt_in_rect(int y, int right, const QPoint &point)
316{
317 const QRectF color = get_rect("color", y, right);
318 const QRectF name = get_rect("name", y, right);
319 const QRectF label = get_rect("label", get_zero_vpos(), right);
320
321 if (color.contains(point) && enabled())
322 return COLOR;
323 else if (name.contains(point) && enabled())
324 return NAME;
325 else if (label.contains(point) && enabled())
326 return LABEL;
327 else
328 return 0;
329}
330
331void Trace::compute_text_size(QPainter &p)
332{

Callers 1

get_mTraceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected