| 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; |
no test coverage detected