KateTextLayout

#include <katetextlayout.h>

Public Member Functions

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 ()
 

Friends

bool operator< (const KateLineLayout &r, const KTextEditor::Cursor &c)
 
bool operator<= (const KateLineLayout &r, const KTextEditor::Cursor &c)
 
bool operator> (const KateLineLayout &r, const KTextEditor::Cursor &c)
 
bool operator>= (const KateLineLayout &r, const KTextEditor::Cursor &c)
 

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 34 of file katetextlayout.h.

Member Function Documentation

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 164 of file katetextlayout.cpp.

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 150 of file katetextlayout.cpp.

int KateTextLayout::viewLine ( ) const

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

Definition at line 117 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-2020 The KDE developers.
Generated on Sun Jul 12 2020 22:58:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.