]> git.lyx.org Git - features.git/blob - src/rowpainter.h
fab612735b47a88ac81f560ea7cbe027b2249451
[features.git] / src / rowpainter.h
1 // -*- C++ -*-
2 /**
3  * \file rowpainter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author various
8  * \author John Levon
9  * \author André Pönitz
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef ROWPAINTER_H
15 #define ROWPAINTER_H
16
17 #include "support/types.h"
18
19 namespace lyx {
20
21 class Text;
22 class BufferView;
23 class PainterInfo;
24 class ViewMetricsInfo;
25
26 namespace frontend { class Painter; }
27
28 /// paint paragraph.
29 void paintPar
30         (PainterInfo & pi, Text const & text, pit_type pit, int x, int y,
31          bool repaintAll);
32
33 /// some space for drawing the 'nested' markers (in pixel)
34 inline int nestMargin() { return 15; }
35
36 /// margin for changebar
37 inline int changebarMargin() { return 12; }
38
39 /// right margin
40 inline int rightMargin() { return 10; }
41
42 } // namespace lyx
43
44 #endif // ROWPAINTER_H