9 /// Description of a position
15 explicit MathCursorPos(MathInset *);
17 /// returns cell corresponding to this position
18 MathArray & cell() const;
19 /// returns cell corresponding to this position
20 MathArray & cell(MathArray::idx_type idx) const;
21 /// gets screen position of the thing
22 void getPos(int & x, int & y) const;
24 void setPos(MathArray::pos_type pos);
27 /// pointer to an inset
29 /// cell index of a position in this inset
30 MathArray::idx_type idx_;
31 /// position in this cell
32 MathArray::pos_type pos_;
36 bool operator==(MathCursorPos const &, MathCursorPos const &);
37 /// test for inequality
38 bool operator!=(MathCursorPos const &, MathCursorPos const &);
40 bool operator<(MathCursorPos const &, MathCursorPos const &);
42 std::ostream & operator<<(std::ostream &, MathCursorPos const &);