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

This clas represents a text buffer change and is used to pass around between events This is a shareddata object so the data can be thrown between different threads (delayed emit-support)_. More...

#include <textbuffer.h>

+ Collaboration diagram for edbee::TextBufferChange:

Public Member Functions

 TextBufferChange ()
 
 TextBufferChange (TextBuffer *buffer, int off, int len, const QChar *text, int textlen)
 
 TextBufferChange (LineOffsetVector *lineOffsets, int off, int len, const QChar *text, int textlen)
 
 TextBufferChange (const TextBufferChange &other)
 
int offset () const
 
int length () const
 
const QChar * newText () const
 
int newTextLength () const
 
int line () const
 
int lineCount () const
 
int newLineCount () const
 
const QVector< int > & newLineOffsets () const
 

Detailed Description

This clas represents a text buffer change and is used to pass around between events This is a shareddata object so the data can be thrown between different threads (delayed emit-support)_.

Todo:
: Still problematic maybe the QChar* text pointer. It is possible that this pointer is being freed.

Constructor & Destructor Documentation

◆ TextBufferChange() [1/4]

edbee::TextBufferChange::TextBufferChange ( )

◆ TextBufferChange() [2/4]

edbee::TextBufferChange::TextBufferChange ( TextBuffer buffer,
int  off,
int  len,
const QChar *  text,
int  textlen 
)

◆ TextBufferChange() [3/4]

edbee::TextBufferChange::TextBufferChange ( LineOffsetVector lineOffsets,
int  off,
int  len,
const QChar *  text,
int  textlen 
)

◆ TextBufferChange() [4/4]

edbee::TextBufferChange::TextBufferChange ( const TextBufferChange other)

Member Function Documentation

◆ length()

int edbee::TextBufferChange::length ( ) const
inline

◆ line()

int edbee::TextBufferChange::line ( ) const
inline

◆ lineCount()

int edbee::TextBufferChange::lineCount ( ) const
inline

◆ newLineCount()

int edbee::TextBufferChange::newLineCount ( ) const
inline

◆ newLineOffsets()

const QVector<int>& edbee::TextBufferChange::newLineOffsets ( ) const
inline

◆ newText()

const QChar* edbee::TextBufferChange::newText ( ) const
inline

◆ newTextLength()

int edbee::TextBufferChange::newTextLength ( ) const
inline

◆ offset()

int edbee::TextBufferChange::offset ( ) const
inline

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