| 174 | } |
| 175 | |
| 176 | void ModuleContainer::MouseMoved(float x, float y) |
| 177 | { |
| 178 | if (mOwner != nullptr) |
| 179 | return; |
| 180 | |
| 181 | for (int i = (int)mModules.size() - 1; i >= 0; --i) //run this backwards so that we can figure out the top hover control |
| 182 | { |
| 183 | ModuleContainer* subcontainer = mModules[i]->GetContainer(); |
| 184 | if (subcontainer) |
| 185 | { |
| 186 | subcontainer->MouseMoved(x - subcontainer->GetOwnerPosition().x, y - subcontainer->GetOwnerPosition().y); |
| 187 | } |
| 188 | mModules[i]->NotifyMouseMoved(x, y); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | void ModuleContainer::MouseReleased() |
| 193 | { |
nothing calls this directly
no test coverage detected