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

Method GetRowHeight

Source/EffectChain.cpp:275–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275int EffectChain::GetRowHeight(int row) const
276{
277 float max = 0;
278 for (int i = 0; i < mEffects.size(); ++i)
279 {
280 if (i / mNumFXWide == row)
281 {
282 float w, h;
283 mEffects[i]->GetDimensions(w, h);
284 h += IDrawableModule::TitleBarHeight();
285 h += 20;
286 max = MAX(h, max);
287 }
288 }
289
290 return max;
291}
292
293ofVec2f EffectChain::GetEffectPos(int index) const
294{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
GetDimensionsMethod · 0.45

Tested by

no test coverage detected