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

Method getNextWidget

UnitTests/UnitTest_GraphView/BaseGraphView.h:461–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 }
460
461 MyGUI::Widget* getNextWidget()
462 {
463 MyGUI::Widget* result = nullptr;
464
465 if (mCurrentIndexConnection < mConnections.size())
466 {
467 result = mConnections[mCurrentIndexConnection];
468 }
469 else
470 {
471 result =
472 mCanvas->createWidget<MyGUI::Widget>("PolygonalSkin", mCanvas->getCoord(), MyGUI::Align::Default);
473 result->setNeedMouseFocus(false);
474 mConnections.push_back(result);
475 }
476
477 mCurrentIndexConnection++;
478
479 result->setVisible(true);
480 return result;
481 }
482
483 void drawSpline(const ConnectionInfo& _info, int _offset, const MyGUI::Colour& _colour)
484 {

Callers

nothing calls this directly

Calls 4

setNeedMouseFocusMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected