3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
7 * \author Matthias Ettrich
11 * Full author contact details are available in file CREDITS.
16 #include "lyxcursor.h"
19 LyXCursor::LyXCursor()
20 : par_(0), pos_(0), boundary_(false), x_(0), y_(0)
24 void LyXCursor::par(lyx::paroffset_type par)
30 lyx::paroffset_type LyXCursor::par() const
36 void LyXCursor::pos(lyx::pos_type p)
42 lyx::pos_type LyXCursor::pos() const
48 void LyXCursor::boundary(bool b)
54 bool LyXCursor::boundary() const
60 void LyXCursor::x(int n)
66 int LyXCursor::x() const
72 void LyXCursor::y(int i)
78 int LyXCursor::y() const
84 bool operator==(LyXCursor const & a, LyXCursor const & b)
86 return a.par() == b.par()
88 && a.boundary() == b.boundary();
92 bool operator!=(LyXCursor const & a, LyXCursor const & b)