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

Method ForcePosition

Source/IDrawableModule.cpp:1027–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027void IDrawableModule::ForcePosition()
1028{
1029 if (TheSynth->GetMoveModule() != this)
1030 {
1031 auto pos = mPinnedPosition - TheSynth->GetDrawOffset();
1032 mX = pos.x;
1033 mY = pos.y;
1034 }
1035 else if (mPinned) // Moved while pinned.
1036 SetPinned(true);
1037}
1038
1039void IDrawableModule::FindClosestSides(float xThis, float yThis, float wThis, float hThis, float xThat, float yThat, float wThat, float hThat, float& startX, float& startY, float& endX, float& endY, bool sidesOnly /*= false*/)
1040{

Callers

nothing calls this directly

Calls 2

GetMoveModuleMethod · 0.80
GetDrawOffsetMethod · 0.80

Tested by

no test coverage detected