1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "kateabstractinputmode.h"
8#include "kateviewinternal.h"
9
10KateAbstractInputMode::KateAbstractInputMode(KateViewInternal *viewInternal)
11 : m_viewInternal(viewInternal)
12 , m_view(viewInternal->view())
13{
14}
15
16KateLayoutCache *KateAbstractInputMode::layoutCache() const
17{
18 return m_viewInternal->cache();
19}
20
21void KateAbstractInputMode::updateCursor(const KTextEditor::Cursor c)
22{
23 m_viewInternal->updateCursor(newCursor: c);
24}
25
26int KateAbstractInputMode::linesDisplayed() const
27{
28 return m_viewInternal->linesDisplayed();
29}
30
31void KateAbstractInputMode::scrollViewLines(int offset)
32{
33 return m_viewInternal->scrollViewLines(offset);
34}
35

source code of ktexteditor/src/inputmode/kateabstractinputmode.cpp