]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.h
256a130e7daa03fa4a43e29a8b460dccdbdbe18d
[lyx.git] / src / lyxcursor.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  * 
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2000 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LYXCURSOR_H
13 #define LYXCURSOR_H
14
15 #include "lyxparagraph.h"
16
17 struct Row;
18
19 /** All these variavles should be explained. Matthias?
20  */
21 struct LyXCursor {
22         ///
23         LyXParagraph * par;
24         ///
25         LyXParagraph::size_type pos;
26         ///
27         int x;
28         ///
29         int x_fix;
30         ///
31         unsigned long y;
32         ///
33         Row * row;
34         ///
35         inline bool operator==(const LyXCursor &a) const
36                 { return (a.par == par) && (a.pos == pos); }
37         inline bool operator!=(const LyXCursor &a) const
38                 { return (a.par != par) || (a.pos != pos); }
39 };
40
41 #endif