22 #ifndef __KATE_RENDERER_H__
23 #define __KATE_RENDERER_H__
25 #include "katecursor.h"
26 #include "kateattribute.h"
27 #include "katetextline.h"
30 #include <tqfontmetrics.h>
35 class KateRendererConfig;
75 inline bool drawCaret()
const {
return m_drawCaret; }
100 inline bool showTabs()
const {
return m_showTabs; }
149 void decreaseFontSizes();
150 const TQFont* currentFont();
151 const TQFontMetrics* currentFontMetrics();
173 uint textWidth(
const KateTextLine::Ptr &textLine, uint startcol, uint maxwidth,
bool *needWrap,
int *endX = 0);
177 uint textWidth(
KateTextCursor &cursor,
int xPos, uint startCol = 0);
188 uint
textPos(uint line,
int xPos, uint startCol = 0,
bool nearest=
true);
198 uint documentHeight();
201 bool getSelectionBounds(uint line, uint lineLength, uint &start, uint &end);
210 void paintTextLine(TQPainter& paint,
const KateLineRange* range,
int xStart,
int xEnd,
const KateTextCursor* cursor = 0L,
const KateBracketRange* bracketmark = 0L);
238 void paintWhitespaceMarker(TQPainter &paint, uint x, uint y);
241 void paintIndentMarker(TQPainter &paint, uint x, uint y);
254 bool m_showSelections;
256 bool m_printerFriendly;
258 TQMemArray<KateAttribute> *m_attributes;
264 inline KateRendererConfig *
config () {
return m_config; };
266 void updateConfig ();
269 KateRendererConfig *m_config;