edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::TextEditorRenderer Class Reference

#include <texteditorrenderer.h>

+ Collaboration diagram for edbee::TextEditorRenderer:

Public Member Functions

 TextEditorRenderer (TextRenderer *renderer)
 
virtual ~TextEditorRenderer ()
 
virtual int preferedWidth ()
 
virtual void render (QPainter *painter)
 
virtual void renderLineBackground (QPainter *painter, int line)
 
virtual void renderLineSelection (QPainter *painter, int line)
 
virtual void renderLineSeparator (QPainter *painter, int line)
 
virtual void renderLineText (QPainter *painter, int line)
 
virtual void renderCarets (QPainter *painter)
 
virtual void renderShade (QPainter *painter, const QRect &rect)
 
virtual int extraPixelsToUpdateAroundLines ()
 should return the extra pixels to update when updating a line This way it is possible to render margins around the lines More...
 
TextRendererrenderer ()
 

Constructor & Destructor Documentation

◆ TextEditorRenderer()

edbee::TextEditorRenderer::TextEditorRenderer ( TextRenderer renderer)

◆ ~TextEditorRenderer()

edbee::TextEditorRenderer::~TextEditorRenderer ( )
virtual

Member Function Documentation

◆ extraPixelsToUpdateAroundLines()

int edbee::TextEditorRenderer::extraPixelsToUpdateAroundLines ( )
virtual

should return the extra pixels to update when updating a line This way it is possible to render margins around the lines

◆ preferedWidth()

int edbee::TextEditorRenderer::preferedWidth ( )
virtual

◆ render()

void edbee::TextEditorRenderer::render ( QPainter *  painter)
virtual
Todo:
, deze renderShade moet misschien in de viewport render-code gebreuren

◆ renderCarets()

void edbee::TextEditorRenderer::renderCarets ( QPainter *  painter)
virtual

◆ renderer()

TextRenderer* edbee::TextEditorRenderer::renderer ( )
inline

◆ renderLineBackground()

void edbee::TextEditorRenderer::renderLineBackground ( QPainter *  painter,
int  line 
)
virtual

◆ renderLineSelection()

void edbee::TextEditorRenderer::renderLineSelection ( QPainter *  painter,
int  line 
)
virtual
Todo:
: iprove ranges at line by calling rangesForOffsets first for only the visible offsets!

◆ renderLineSeparator()

void edbee::TextEditorRenderer::renderLineSeparator ( QPainter *  painter,
int  line 
)
virtual

◆ renderLineText()

void edbee::TextEditorRenderer::renderLineText ( QPainter *  painter,
int  line 
)
virtual

◆ renderShade()

void edbee::TextEditorRenderer::renderShade ( QPainter *  painter,
const QRect &  rect 
)
virtual

The documentation for this class was generated from the following files: