File indexing completed on 2024-05-05 16:17:46

0001 /*
0002     SPDX-FileCopyrightText: KDE Developers
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "kateabstractinputmode.h"
0008 #include "kateviewinternal.h"
0009 
0010 KateAbstractInputMode::KateAbstractInputMode(KateViewInternal *viewInternal)
0011     : m_viewInternal(viewInternal)
0012     , m_view(viewInternal->view())
0013 {
0014 }
0015 
0016 KateLayoutCache *KateAbstractInputMode::layoutCache() const
0017 {
0018     return m_viewInternal->cache();
0019 }
0020 
0021 void KateAbstractInputMode::updateCursor(const KTextEditor::Cursor c)
0022 {
0023     m_viewInternal->updateCursor(c);
0024 }
0025 
0026 int KateAbstractInputMode::linesDisplayed() const
0027 {
0028     return m_viewInternal->linesDisplayed();
0029 }
0030 
0031 void KateAbstractInputMode::scrollViewLines(int offset)
0032 {
0033     return m_viewInternal->scrollViewLines(offset);
0034 }