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

Method GetPosition

Source/IClickable.cpp:84–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void IClickable::GetPosition(float& x, float& y, bool local /*= false*/) const
85{
86 if (mParent && !local)
87 {
88 mParent->GetPosition(x, y, false);
89 x += mX;
90 y += mY;
91 }
92 else
93 {
94 x = mX;
95 y = mY;
96 }
97}
98
99ofVec2f IClickable::GetPosition(bool local /*= false*/) const
100{

Callers 15

CreateUIControlsMethod · 0.45
DrawModuleMethod · 0.45
ResizeMethod · 0.45
SetModuleGridLightsMethod · 0.45
DrawRoutingDisplayMethod · 0.45
OnMidiNoteMethod · 0.45
OnMidiControlMethod · 0.45
DrawModuleMethod · 0.45
DrawModuleMethod · 0.45
ResizeMethod · 0.45

Calls 1

ofVec2fClass · 0.85

Tested by 4

DrawModuleMethod · 0.36
DrawModuleMethod · 0.36
UpdateVelocityGridPosMethod · 0.36
KeyPressedMethod · 0.36