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

Function ToScreenPosY

Source/DropdownList.cpp:351–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349 }
350
351 float ToScreenPosY(float y, IDrawableModule* parent)
352 {
353 return (y + parent->GetOwningContainer()->GetDrawOffset().y) * parent->GetOwningContainer()->GetDrawScale();
354 }
355
356 float FromScreenPosX(float x, IDrawableModule* parent)
357 {

Callers

nothing calls this directly

Calls 3

GetDrawOffsetMethod · 0.80
GetOwningContainerMethod · 0.80
GetDrawScaleMethod · 0.80

Tested by

no test coverage detected