KTextEditor
katelayoutcache.h
28 void slotEditDone(int fromLine, int toLine, int shiftAmount, std::vector<KateTextLayout> &textLayouts);
100 * Find the view line of the cursor, relative to the display (0 = top line of view, 1 = second line, etc.)
102 * If @p limitToVisible is true, the function can return -2 for lines below the view. The idea is to get extra
103 * information about where the line lies when its out of the view so the clients doesn't have to make second
104 * call of this function with limitToVisible = false and potentionaly rerendering the whole document.
110 * then valid values are only positive, negative values are invalid cursors for -1 and -2 for cursor is
118 void updateViewCache(const KTextEditor::Cursor startPos, int newViewLineCount = -1, int viewLinesScrolled = 0);
134 void insertText(KTextEditor::Document *, const KTextEditor::Cursor position, const QString &text);
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
This class handles Kate's caching of layouting information (in KateLineLayout and KateTextLayout).
Definition katelayoutcache.h:55
KateTextLayout & viewLine(int viewLine)
Returns the layout of the corresponding line in the view.
Definition katelayoutcache.cpp:276
KateLineLayout * line(int realLine, int virtualLine=-1)
Returns the KateLineLayout for the specified line.
Definition katelayoutcache.cpp:210
KateTextLayout textLayout(const KTextEditor::Cursor realCursor)
Returns the layout describing the text line which is occupied by realCursor.
Definition katelayoutcache.cpp:262
int displayViewLine(const KTextEditor::Cursor virtualCursor, bool limitToVisible=false)
Find the view line of the cursor, relative to the display (0 = top line of view, 1 = second line,...
Definition katelayoutcache.cpp:331
Handles all of the work of rendering the text (used for the views and printing)
Definition katerenderer.h:56
This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be ne...
Definition katetextlayout.h:21
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.