KateTextLayout

Search for usage in LXR

#include <katetextlayout.h>

Public Member Functions

 KateTextLayout (KateLineLayoutPtr line=KateLineLayoutPtr(), int viewLine=0)
 
void debugOutput () const
 
KTextEditor::Cursor end (bool indicateEOL=false) const
 
int endCol (bool indicateEOL=false) const
 
int endX () const
 
bool includesCursor (const KTextEditor::Cursor realCursor) const
 
bool isDirty () const
 
bool isEmpty () const
 
bool isRightToLeft () const
 
bool isValid () const
 
KateLineLayoutPtr kateLineLayout () const
 
int length () const
 
int line () const
 
const QTextLinelineLayout () const
 
bool setDirty (bool dirty=true)
 
KTextEditor::Cursor start () const
 
int startCol () const
 
int startX () const
 
int viewLine () const
 
int virtualLine () const
 
int width () const
 
bool wrap () const
 
int xOffset () const
 

Static Public Member Functions

static KateTextLayout invalid ()
 

Detailed Description

This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be needed to represent one actual line of text (ie.

one KateLineLayout)

Definition at line 20 of file katetextlayout.h.

Member Function Documentation

◆ end()

KTextEditor::Cursor KateTextLayout::end ( bool  indicateEOL = false) const

Return the end position of this text line.

Parameters
indicateEOLset to true to return -1 if this layout is the end of the line, otherwise false to return the end column number

Definition at line 151 of file katetextlayout.cpp.

◆ endCol()

int KateTextLayout::endCol ( bool  indicateEOL = false) const

Return the end column of this text line.

Parameters
indicateEOLset to true to return -1 if this layout is the end of the line, otherwise false to return the end column number

Definition at line 136 of file katetextlayout.cpp.

◆ viewLine()

int KateTextLayout::viewLine ( ) const

Return the index of this visual line inside the document line (KateLineLayout).


Definition at line 103 of file katetextlayout.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Jun 26 2022 03:49:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.