katerenderer.cpp
152bool KateRenderer::paintTextLineBackground(TQPainter& paint, int line, bool isCurrentLine, int xStart, int xEnd)
253void KateRenderer::paintTextLine(TQPainter& paint, const KateLineRange* range, int xStart, int xEnd, const KateTextCursor* cursor, const KateBracketRange* bracketmark)
269 // Re-write a bracketmark class? put into its own function? add more helper constructors to the range stuff?
435 KateAttribute* curAt = (noAttribs || ((*textAttributes) >= atLen)) ? &attr[0] : &attr[*textAttributes];
437 // X position calculation. Incorrect for fonts with non-zero leftBearing() and rightBearing() results.
462 if (curAt != oldAt || curColor != oldColor || (superRanges.count() && superRanges.currentBoundary() && *(superRanges.currentBoundary()) == currentPos)) {
463 if (superRanges.count() && superRanges.currentBoundary() && *(superRanges.currentBoundary()) == currentPos)
495 || (superRanges.count() && superRanges.currentBoundary() && *(superRanges.currentBoundary()) == KateTextCursor(line, nextCol))
701 if (showSelections() && hasSel && !selectionPainted && xStart >= (int)xPos && m_view->lineEndSelected(line, -1))
773uint KateRenderer::textWidth(const KateTextLine::Ptr &textLine, uint startcol, uint maxwidth, bool *needWrap, int *endX)
937uint KateRenderer::textPos(const KateTextLine::Ptr &textLine, int xPos, uint startCol, bool nearest)
The Attribute class incorporates all text decorations supported by Kate.
Definition kateattribute.h:33
Handles all of the work of rendering the text (used for the views and printing)
Definition katerenderer.h:43
void setShowTabs(bool showTabs)
Set whether a mark should be painted to help identifying tabs.
Definition katerenderer.cpp:87
void setShowSelections(bool showSelections)
Set whether the view's selections should be shown.
Definition katerenderer.cpp:116
KateRenderer::caretStyles caretStyle() const
The style of the caret (text cursor) to be painted.
Definition katerenderer.h:87
void setDrawCaret(bool drawCaret)
Set whether the caret (text cursor) will be drawn.
Definition katerenderer.cpp:77
uint textPos(uint line, int xPos, uint startCol=0, bool nearest=true)
Definition katerenderer.cpp:932
void setPrinterFriendly(bool printerFriendly)
Configure this renderer to paint in a printer-friendly fashion.
Definition katerenderer.cpp:144
bool paintTextLineBackground(TQPainter &paint, int line, bool isCurrentLine, int xStart, int xEnd)
Paint the background of a line.
Definition katerenderer.cpp:152
KateAttribute * attribute(uint pos)
This takes an in index, and returns all the attributes for it.
Definition katerenderer.cpp:69
bool drawCaret() const
Determine whether the caret (text cursor) will be drawn.
Definition katerenderer.h:75
void paintTextLine(TQPainter &paint, const KateLineRange *range, int xStart, int xEnd, const KateTextCursor *cursor=0L, const KateBracketRange *bracketmark=0L)
This is the ultimate function to perform painting of a text line.
Definition katerenderer.cpp:253
void increaseFontSizes()
Change to a different font (soon to be font set?)
Definition katerenderer.cpp:121
void setCaretStyle(KateRenderer::caretStyles style)
Set the style of caret to be painted.
Definition katerenderer.cpp:82
void setShowIndentLines(bool showLines)
Set whether a guide should be painted to help identifying indent lines.
Definition katerenderer.cpp:102
void updateAttributes()
update the highlighting attributes (for example after an hl change or after hl config changed)
Definition katerenderer.cpp:63
const TDEShortcut & end()