12 /// Description of a position
18 explicit MathCursorPos(MathInset *);
20 /// returns cell corresponding to this position
21 MathArray & cell() const;
22 /// returns cell corresponding to this position
23 MathArray & cell(MathArray::idx_type idx) const;
24 /// gets screen position of the thing
25 void getPos(int & x, int & y) const;
27 void setPos(MathArray::pos_type pos);
30 /// pointer to an inset
32 /// cell index of a position in this inset
33 MathArray::idx_type idx_;
34 /// position in this cell
35 MathArray::pos_type pos_;
39 bool operator==(MathCursorPos const &, MathCursorPos const &);
40 /// test for inequality
41 bool operator!=(MathCursorPos const &, MathCursorPos const &);
43 bool operator<(MathCursorPos const &, MathCursorPos const &);
45 std::ostream & operator<<(std::ostream &, MathCursorPos const &);