| 127 | } |
| 128 | |
| 129 | IDrawableModule* IClickable::GetModuleParent() |
| 130 | { |
| 131 | IClickable* parent = this; |
| 132 | while (parent->GetParent()) //keep going up until there are no parents |
| 133 | { |
| 134 | IDrawableModule* module = dynamic_cast<IDrawableModule*>(parent); |
| 135 | if (module && module->CanMinimize()) //"minimizable" modules doesn't include effects in effectchains, which we want to avoid |
| 136 | return module; |
| 137 | parent = parent->GetParent(); |
| 138 | } |
| 139 | return dynamic_cast<IDrawableModule*>(parent); |
| 140 | } |
| 141 | |
| 142 | std::string IClickable::Path(bool ignoreContext, bool useDisplayName) |
| 143 | { |
no test coverage detected