Changeset View
Changeset View
Standalone View
Standalone View
src/render/katelinelayout.cpp
Show All 30 Lines | |||||
31 | #include "katerenderer.h" | 31 | #include "katerenderer.h" | ||
32 | 32 | | |||
33 | KateLineLayout::KateLineLayout(KateRenderer &renderer) | 33 | KateLineLayout::KateLineLayout(KateRenderer &renderer) | ||
34 | : m_renderer(renderer) | 34 | : m_renderer(renderer) | ||
35 | , m_textLine() | 35 | , m_textLine() | ||
36 | , m_line(-1) | 36 | , m_line(-1) | ||
37 | , m_virtualLine(-1) | 37 | , m_virtualLine(-1) | ||
38 | , m_shiftX(0) | 38 | , m_shiftX(0) | ||
39 | , m_shiftXRightOnly(0) | ||||
39 | , m_layout(nullptr) | 40 | , m_layout(nullptr) | ||
40 | , m_layoutDirty(true) | 41 | , m_layoutDirty(true) | ||
41 | , m_usePlainTextLine(false) | 42 | , m_usePlainTextLine(false) | ||
42 | { | 43 | { | ||
43 | } | 44 | } | ||
44 | 45 | | |||
45 | KateLineLayout::~KateLineLayout() | 46 | KateLineLayout::~KateLineLayout() | ||
46 | { | 47 | { | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 111 | { | |||
111 | return m_shiftX; | 112 | return m_shiftX; | ||
112 | } | 113 | } | ||
113 | 114 | | |||
114 | void KateLineLayout::setShiftX(int shiftX) | 115 | void KateLineLayout::setShiftX(int shiftX) | ||
115 | { | 116 | { | ||
116 | m_shiftX = shiftX; | 117 | m_shiftX = shiftX; | ||
117 | } | 118 | } | ||
118 | 119 | | |||
120 | int KateLineLayout::shiftXRightOnly() const | ||||
121 | { | ||||
122 | return m_shiftXRightOnly; | ||||
123 | } | ||||
124 | | ||||
125 | void KateLineLayout::setShiftXRightOnly(int shiftXRightOnly) | ||||
126 | { | ||||
127 | m_shiftXRightOnly = shiftXRightOnly; | ||||
128 | } | ||||
129 | | ||||
130 | | ||||
119 | KTextEditor::DocumentPrivate *KateLineLayout::doc() const | 131 | KTextEditor::DocumentPrivate *KateLineLayout::doc() const | ||
120 | { | 132 | { | ||
121 | return m_renderer.doc(); | 133 | return m_renderer.doc(); | ||
122 | } | 134 | } | ||
123 | 135 | | |||
124 | bool KateLineLayout::isValid() const | 136 | bool KateLineLayout::isValid() const | ||
125 | { | 137 | { | ||
126 | return line() != -1 && layout() && textLine(); | 138 | return line() != -1 && layout() && textLine(); | ||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |