4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
17 #include "math_data.h"
20 /// Description of a position
26 explicit CursorPos(MathInset *);
28 /// returns cell corresponding to this position
29 MathArray & cell() const;
30 /// returns cell corresponding to this position
31 MathArray & cell(MathArray::idx_type idx) const;
32 /// gets screen position of the thing
33 void getPos(int & x, int & y) const;
35 void setPos(MathArray::pos_type pos);
38 /// pointer to an inset
40 /// cell index of a position in this inset
41 MathArray::idx_type idx_;
42 /// position in this cell
43 MathArray::pos_type pos_;
47 bool operator==(CursorPos const &, CursorPos const &);
48 /// test for inequality
49 bool operator!=(CursorPos const &, CursorPos const &);
51 bool operator<(CursorPos const &, CursorPos const &);
53 std::ostream & operator<<(std::ostream &, CursorPos const &);