MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / withFixedElementPosition

Method withFixedElementPosition

player/NymphCastPlayer/container_qpainter.cpp:1288–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1286}
1287
1288int DocumentContainer::withFixedElementPosition(int y, const std::function<void()> &action)
1289{
1290 const litehtml::element::ptr element = elementForY(y, d->m_document);
1291 action();
1292 if (element)
1293 return element->get_placement().y;
1294 return -1;
1295}
1296
1297QPixmap DocumentContainerPrivate::getPixmap(const QString &imageUrl, const QString &baseUrl)
1298{

Callers 1

withFixedTextPositionMethod · 0.80

Calls 2

elementForYFunction · 0.85
get_placementMethod · 0.80

Tested by

no test coverage detected