mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Forgot this.
This commit is contained in:
parent
1b3ffa6627
commit
8673c5ac28
52
src/frontends/CaretGeometry.h
Normal file
52
src/frontends/CaretGeometry.h
Normal file
@ -0,0 +1,52 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file CaretGeometry.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Jean-Marc Lasgouttes
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#ifndef CARETGEOMETRY_H
|
||||
#define CARETGEOMETRY_H
|
||||
|
||||
#include "Dimension.h"
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
namespace lyx {
|
||||
|
||||
namespace frontend {
|
||||
|
||||
/**
|
||||
* CaretGeometry - Data for painting the caret
|
||||
*/
|
||||
struct CaretGeometry {
|
||||
///
|
||||
int height() const { return bottom - top; }
|
||||
///
|
||||
int width() const { return right - left; }
|
||||
|
||||
// A polygon
|
||||
typedef std::vector<Point> Shape;
|
||||
// several polygons
|
||||
typedef std::list<Shape> Shapes;
|
||||
// data for pointer
|
||||
Shapes shapes;
|
||||
// left-most abcissa
|
||||
int left = 0;
|
||||
// right-most abcissa
|
||||
int right = 0;
|
||||
// top value
|
||||
int top = 0;
|
||||
// bottom value
|
||||
int bottom = 0;
|
||||
};
|
||||
|
||||
} // namespace frontend
|
||||
} // namespace lyx
|
||||
|
||||
#endif // CARETGEOMETRY_H
|
Loading…
Reference in New Issue
Block a user