MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / get_close_rect

Method get_close_rect

DSView/pv/view/xcursor.cpp:233–238  ·  view source on GitHub ↗

* Gets the close label rectangle. * @param rect The rectangle of the xcursor area. * @return Returns the close label rectangle. */

Source from the content-addressed store, hash-verified

231 * @return Returns the close label rectangle.
232 */
233QRect XCursor::get_close_rect(const QRect &rect)
234{
235 const int width = 10;
236 const int64_t y = rect.top() + _value1 * rect.height() - width/2;
237 return QRect(rect.right()+1, y, width, width);
238}
239
240/**
241 * Paints the labels to the xcursor.

Callers

nothing calls this directly

Calls 1

QRectClass · 0.70

Tested by

no test coverage detected