KTextEditor

kateabstractinputmode.cpp
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(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}
The Cursor represents a position in a Document.
Definition cursor.h:75
This class handles Kate's caching of layouting information (in KateLineLayout and KateTextLayout).
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.