]> git.lyx.org Git - lyx.git/blob - src/rowpainter.h
- Transfer rowpainter.cpp:paintTextInset() to TextMetrics::draw()
[lyx.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 visible paragraph of main text
29 void paintText(BufferView & bv, frontend::Painter & painter);
30
31 /// paint paragraph.
32 void paintPar
33         (PainterInfo & pi, Text const & text, pit_type pit, int x, int y,
34          bool repaintAll);
35
36 /// some space for drawing the 'nested' markers (in pixel)
37 inline int nestMargin() { return 15; }
38
39 /// margin for changebar
40 inline int changebarMargin() { return 12; }
41
42 /// right margin
43 inline int rightMargin() { return 10; }
44
45 } // namespace lyx
46
47 #endif // ROWPAINTER_H