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

Method mouseButtonPressed

MyGUIEngine/src/MyGUI_DDContainer.cpp:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 void DDContainer::mouseButtonPressed(MouseButton _id)
40 {
41 if (MouseButton::Left == _id)
42 {
43 // сбрасываем инфу для дропа
44 mDropResult = false;
45 mOldDrop = nullptr;
46 mDropInfo.reset();
47 mReseiverContainer = nullptr;
48
49 // сбрасываем, чтобы обновился дропный виджет
50 mStartDrop = false;
51 }
52 // если нажата другая клавиша и был дроп то сбрасываем
53 else
54 {
55 endDrop(true);
56 }
57 }
58
59 void DDContainer::mouseButtonReleased(MouseButton _id)
60 {

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected