Anchor Class Reference

Class for the windows anchors. More...

Inheritance diagram for Anchor:

Inheritance graph
[legend]
Collaboration diagram for Anchor:

Collaboration graph
[legend]

Public Member Functions

 Anchor (intf_thread_t *pIntf, const Position &rPosition, int range, int priority, const Bezier &rCurve, GenericLayout &rLayout)
virtual ~Anchor ()
bool isHanging (const Anchor &rOther) const
 Return true if the given anchor is hanged by this one Two conditions are required:
  • the other anchor must be in position of anchoring (as defined by canHang())
  • the priority of the other anchor must be lower than this one's.

bool canHang (const Anchor &rOther, int &xOffset, int &yOffset) const
 Return true if the other anchor, moved by the (xOffset, yOffset) vector, is "hangable" by this one (i.e.
bool isPoint () const
const PositiongetPosition () const
int getXPosAbs () const
int getYPosAbs () const

Detailed Description

Class for the windows anchors.


Constructor & Destructor Documentation

Anchor::Anchor ( intf_thread_t pIntf,
const Position rPosition,
int  range,
int  priority,
const Bezier rCurve,
GenericLayout rLayout 
) [inline]

virtual Anchor::~Anchor (  )  [inline, virtual]


Member Function Documentation

bool Anchor::isHanging ( const Anchor rOther  )  const

Return true if the given anchor is hanged by this one Two conditions are required:

bool Anchor::canHang ( const Anchor rOther,
int &  xOffset,
int &  yOffset 
) const

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).

bool Anchor::isPoint (  )  const [inline]

const Position& Anchor::getPosition (  )  const [inline]

int Anchor::getXPosAbs (  )  const [inline]

int Anchor::getYPosAbs (  )  const [inline]


The documentation for this class was generated from the following files:
Generated on Wed Aug 13 08:08:41 2008 for VLC by  doxygen 1.5.1