lyx_mirror/src/lyxcursor.h

44 lines
872 B
C
Raw Normal View History

// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#ifndef LYXCURSOR_H
#define LYXCURSOR_H
#include "lyxparagraph.h"
struct Row;
/** All these variables should be explained. Matthias?
*/
struct LyXCursor {
///
LyXParagraph * par;
///
LyXParagraph::size_type pos;
///
bool boundary;
///
int x;
///
int x_fix;
///
unsigned long y;
///
Row * row;
///
inline bool operator==(const LyXCursor &a) const
{ return a.par == par && a.pos == pos && a.boundary == boundary ; }
inline bool operator!=(const LyXCursor &a) const
{ return a.par != par || a.pos != pos || a.boundary != boundary; }
};
#endif