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

Function FromScreenPosX

Source/DropdownList.cpp:356–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354 }
355
356 float FromScreenPosX(float x, IDrawableModule* parent)
357 {
358 return (x / parent->GetOwningContainer()->GetDrawScale()) - parent->GetOwningContainer()->GetDrawOffset().x;
359 }
360}
361
362void DropdownList::OnClicked(float x, float y, bool right)

Callers 1

OnClickedMethod · 0.85

Calls 3

GetDrawScaleMethod · 0.80
GetOwningContainerMethod · 0.80
GetDrawOffsetMethod · 0.80

Tested by

no test coverage detected