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 /// gets screen position of the thing
21 void getPos(int & x, int & y) const;
24 /// pointer to an inset
26 /// cell index of a position in this inset
27 MathArray::idx_type idx_;
28 /// position in this cell
29 MathArray::pos_type pos_;
33 bool operator==(MathCursorPos const &, MathCursorPos const &);
34 /// test for inequality
35 bool operator!=(MathCursorPos const &, MathCursorPos const &);
37 bool operator<(MathCursorPos const &, MathCursorPos const &);
39 std::ostream & operator<<(std::ostream &, MathCursorPos const &);