| 82 | } |
| 83 | |
| 84 | void 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 | |
| 99 | ofVec2f IClickable::GetPosition(bool local /*= false*/) const |
| 100 | { |