virtualvoidQwtTextEngine::draw(QPainter*painter,constQRectF&rect,intflags,constQString&text)const[purevirtual]
Draw the text in a clipping rectangle
Parameters:painter Painter
rect Clipping rectangle
flags Bitwise OR of the flags like in for QPainter::drawText()
text Text to be rendered
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
virtualdoubleQwtTextEngine::heightForWidth(constQFont&font,intflags,constQString&text,doublewidth)const[purevirtual]
Find the height for a given width
Parameters:font Font of the text
flags Bitwise OR of the flags used like in QPainter::drawText
text Text to be rendered
width Width
Returns:
Calculated height
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
virtualboolQwtTextEngine::mightRender(constQString&text)const[purevirtual]
Test if a string can be rendered by this text engine
Parameters:text Text to be tested
Returns:
true, if it can be rendered
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
virtualvoidQwtTextEngine::textMargins(constQFont&font,constQString&text,double&left,double&right,double&top,double&bottom)const[purevirtual]
Return margins around the texts
The textSize might include margins around the text, like QFontMetrics::descent(). In situations where
texts need to be aligned in detail, knowing these margins might improve the layout calculations.
Parameters:font Font of the text
text Text to be rendered
left Return value for the left margin
right Return value for the right margin
top Return value for the top margin
bottom Return value for the bottom margin
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
virtualQSizeFQwtTextEngine::textSize(constQFont&font,intflags,constQString&text)const[purevirtual]
Returns the size, that is needed to render text
Parameters:font Font of the text
flags Bitwise OR of the flags like in for QPainter::drawText
text Text to be rendered
Returns:
Calculated size
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.