5 #include "math_xdata.h"
8 /// Description of a position
14 explicit MathCursorPos(MathInset *);
16 /// returns cell corresponding to this position
17 MathArray & cell() const;
18 /// returns cell corresponding to this position
19 MathArray & cell(MathArray::idx_type idx) const;
20 /// returns xcell corresponding to this position
21 MathXArray & xcell() const;
22 /// returns xcell corresponding to this position
23 MathXArray & xcell(MathArray::idx_type idx) const;
24 /// gets screen position of the thing
25 void getPos(int & x, int & y) const;
28 /// pointer to an inset
30 /// cell index of a position in this inset
31 MathArray::idx_type idx_;
32 /// position in this cell
33 MathArray::pos_type pos_;
37 bool operator==(MathCursorPos const &, MathCursorPos const &);
38 /// test for inequality
39 bool operator!=(MathCursorPos const &, MathCursorPos const &);
41 bool operator<(MathCursorPos const &, MathCursorPos const &);
43 std::ostream & operator<<(std::ostream &, MathCursorPos const &);