MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetModuleParent

Method GetModuleParent

Source/IClickable.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129IDrawableModule* 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
142std::string IClickable::Path(bool ignoreContext, bool useDisplayName)
143{

Callers 15

CanvasScrollbarMethod · 0.80
DrawControlsMethod · 0.80
CanvasTimelineMethod · 0.80
ShouldConsumeKeyMethod · 0.80
DeleteModuleMethod · 0.80
RenderMethod · 0.80
FindControlInfoMethod · 0.80
DrawMethod · 0.80
MouseMovedMethod · 0.80
MousePressedMethod · 0.80
ShouldDimModuleMethod · 0.80

Calls 2

GetParentMethod · 0.80
CanMinimizeMethod · 0.45

Tested by

no test coverage detected