| 134 | } |
| 135 | |
| 136 | void CtrlrCustomComponent::mouseDrag (const MouseEvent &e) |
| 137 | { |
| 138 | _DBG("CtrlrCustomComponent::mouseDrag"); |
| 139 | if (isADragAndDropContainer) |
| 140 | { |
| 141 | if (dadStartCbk && !dadStartCbk.wasObjectDeleted()) |
| 142 | { |
| 143 | if (dadStartCbk->isValid()) |
| 144 | { |
| 145 | DragAndDropContainer* const dragContainer = DragAndDropContainer::findParentDragContainerFor (this); |
| 146 | if (dragContainer) |
| 147 | { |
| 148 | DragAndDropSourceDetails details = owner.getOwnerPanel().getCtrlrLuaManager().getMethodManager().callWithRet (dadStartCbk, this, e); |
| 149 | Point<int> offset(details.getImageOffsetX(), details.getImageOffsetY()); |
| 150 | dragContainer->startDragging (details.getDescription(), this, details.getDragImage(), true, &offset); |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | if (mouseDragCbk && !mouseDragCbk.wasObjectDeleted()) |
| 157 | { |
| 158 | if (mouseDragCbk->isValid()) |
| 159 | { |
| 160 | owner.getOwnerPanel().getCtrlrLuaManager().getMethodManager().call (mouseDragCbk, this, e); |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | void CtrlrCustomComponent::mouseEnter (const MouseEvent &e) |
| 166 | { |
nothing calls this directly
no test coverage detected