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

Function eventStartDrag

UnitTests/UnitTest_ItemBox_Info/DemoKeeper.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 static void eventStartDrag(MyGUI::DDContainer* _sender, const MyGUI::DDItemInfo& _info, bool& _result)
54 {
55 MyGUI::ItemBox* sender = _info.sender->castType<MyGUI::ItemBox>();
56 int data = *sender->getItemDataAt<int>(_info.sender_index);
57 _result = (data & 1) == 1;
58 }
59
60 static void eventRequestDrop(MyGUI::DDContainer* _sender, const MyGUI::DDItemInfo& _info, bool& _result)
61 {

Callers 2

notifyStartDropMethod · 0.85
mouseDragMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected