#include <anchor.hpp>
Inheritance diagram for Anchor:
Public Member Functions | |
bool | isHanging (const Anchor &rOther) const |
bool | canHang (const Anchor &rOther, int &xOffset, int &yOffset) const |
Definition at line 34 of file anchor.hpp.
|
Return true if the other anchor, moved by the (xOffset, yOffset) vector, is "hangable" by this one (i.e. if it is in its range of action), else return false. When the function returns true, the xOffset and yOffset parameters are modified to indicate the position that the other anchor would take if hanged by this one (this position is calculated to minimize the difference with the old xOffset and yOffset, so that the window doesn't "jump" in a strange way). Definition at line 44 of file anchor.cpp. References Bezier::getMinDist(), Bezier::getNearestPercent(), and Bezier::getPoint(). |
|
Return true if the given anchor is hanged by this one Two conditions are required:
Definition at line 28 of file anchor.cpp. References Bezier::getMinDist(), getXPosAbs(), getYPosAbs(), isPoint(), m_priority, and m_rCurve. |