]> git.lyx.org Git - lyx.git/blob - src/lyxcursor.h
e1a8a64ef5eb9e1d97eb7046c39562ba7ea2e291
[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 variables should be explained. Matthias?
20  */
21 struct LyXCursor {
22         ///
23         LyXParagraph * par;
24         ///
25         LyXParagraph::size_type pos;
26         ///
27         bool boundary;
28         ///
29         int x;
30         ///
31         int x_fix;
32         ///
33         unsigned long y;
34         ///
35         Row * row;
36         ///
37         inline bool operator==(const LyXCursor &a) const
38                 { return a.par == par && a.pos == pos && a.boundary == boundary ; }
39         inline bool operator!=(const LyXCursor &a) const
40                 { return a.par != par || a.pos != pos || a.boundary != boundary; }
41 };
42
43 #endif