MCPcopy Create free account
hub / github.com/MyGUI/mygui / getViewSize

Method getViewSize

UnitTests/UnitTest_GraphView/BaseGraphView.h:524–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522 }
523
524 MyGUI::IntSize getViewSize()
525 {
526 MyGUI::IntSize result;
527 for (auto& mNode : mNodes)
528 {
529 const MyGUI::IntCoord& coord = mNode->getCoord();
530 if (coord.right() > result.width)
531 result.width = coord.right();
532 if (coord.bottom() > result.height)
533 result.height = coord.bottom();
534 }
535
536 // для соединений справа
537 result.width += 10;
538 result.height += 10;
539
540 return result;
541 }
542
543 private:
544 VectorGraphNode mNodes;

Callers 2

getLayerItemByPointMethod · 0.45
getPositionMethod · 0.45

Calls 2

rightMethod · 0.80
bottomMethod · 0.80

Tested by

no test coverage detected