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

Function ToScreenPosX

Source/DropdownList.cpp:346–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344namespace
345{
346 float ToScreenPosX(float x, IDrawableModule* parent)
347 {
348 return (x + parent->GetOwningContainer()->GetDrawOffset().x) * parent->GetOwningContainer()->GetDrawScale();
349 }
350
351 float ToScreenPosY(float y, IDrawableModule* parent)
352 {

Callers

nothing calls this directly

Calls 3

GetDrawOffsetMethod · 0.80
GetOwningContainerMethod · 0.80
GetDrawScaleMethod · 0.80

Tested by

no test coverage detected