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

Method notifyMousePressed

UnitTests/UnitTest_TreeControl/TreeControl.cpp:413–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411 }
412
413 void TreeControl::notifyMousePressed(Widget* pSender, int nLeft, int nTop, MouseButton nID)
414 {
415 if ((nID == MouseButton::Left || nID == MouseButton::Right) && pSender != mpWidgetScroll)
416 {
417 Node* pSelection = mpSelection;
418 if (pSender == getClientWidget())
419 pSelection = nullptr;
420 else if (pSender->getVisible())
421 pSelection = *pSender->getUserData<Node*>();
422
423 setSelection(pSelection);
424
425 if (nID == MouseButton::Right)
426 eventTreeNodeContextMenu(this, mpSelection);
427 }
428 }
429
430 void TreeControl::notifyMouseWheel(Widget* pSender, int nValue)
431 {

Callers

nothing calls this directly

Calls 1

getVisibleMethod · 0.45

Tested by

no test coverage detected